sendmail configuration over a cable modem
I have a CentOS system running. I want to get mail off it to my yahoo account.
I did a test mailx command and it goes out of the queue but never gets to my yahoo mail. I am using a cable modem. I can go out to the Internet so I know I have a valid connection. I am guessing I need to set something up so the cable company will relay my mail for me. I know i can pull pop mail down and sen it using my account. Do I need to configure something in the sendmail.cf file to do this? I just went into my email and say this ...patial msg included... (reason: 553 5.7.1 [BL21] Connections will not be accepted from 98.249.136.1 9, because the ip is in Spamhaus's list; see http://postmaster.yahoo.com/550-bl2 3.html) |
so i tried to send to another account and get this:
Return-Path: <me@localhost.localdomain> Received: from localhost.localdomain (system1 [127.0.0.1]) by localhost.localdomain (8.13.8/8.13.8) with ESMTP id o1K0qLxu004896 for <me@gmail.com>; Fri, 19 Feb 2010 19:52:21 -0500 Received: (from me@localhost) by localhost.localdomain (8.13.8/8.13.8/Submit) id o1K0qL0e004895 for me@gmail.com; Fri, 19 Feb 2010 19:52:21 -0500 Date: Fri, 19 Feb 2010 19:52:21 -0500 From: System Admin <me@localhost.localdomain> Message-Id: <201002200052.o1K0qL0e004895@localhost.localdomain> To: me@gmail.com Subject: test2 test --o1K0qMxu004898.1266627142/localhost.localdomain-- |
ok i guess no one has tried this before.
i tried several configuration changes but still the mail goes off the server into never never land or gets bounced back. |
maybe i need to open a new topic b ut i just saw this in my log file. ... also all the mail i sent is in my /var/spool/mqueue dir
sendmail[7069]: o21CduY7007069: SYSERR(root): savemail: cannot save rejected email anywhere I thought it would save to deadletter under root? edit: Ok so i just realized the error in this. Its trying to send to root so its a circular reference. I changed postmaster to be another id for now. |
Well I am still not able to get the info I need. I tried several Google searches and the links lead me to dead ends so i still dont know what I am missing with this sendmail stuff going out from my server to a yahoo account.
I really dont want to set up a full blown smtp mail server to do this. Most document i find are telling me how to set up a mail server. |
mail -v me@yahoo.com
Subject: test mail test mail . Cc: me@yahoo.com... Connecting to [127.0.0.1] via relay... me@yahoo.com... Deferred: Connection refused by [127.0.0.1] |
I tried 2 different domains. Mind you i edited them so the bots dont spam me. One is to my private domain and one is to my yahoo account.
Message 10: From MAILER-DAEMON@localhost.localdomain Tue Mar 2 10:36:34 2010 Date: Tue, 2 Mar 2010 10:36:34 -0500 From: Mail Delivery Subsystem <MAILER-DAEMON@localhost.localdomain> To: <root@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/report; report-type=delivery-status; boundary="o22FaYMm022137.1267544194/localhost.localdomain" Subject: Returned mail: see transcript for details Auto-Submitted: auto-generated (failure) This is a MIME-encapsulated message --o22FaYMm022137.1267544194/localhost.localdomain The original message was received at Tue, 2 Mar 2010 10:36:33 -0500 from flipper [127.0.0.1] ----- The following addresses had permanent fatal errors ----- <me@mydomain.com> (reason: 550 5.1.0 Sender Refused - Address <root@localhost.localdomain> - Sending Domain Name Invalid or Non-Existent A or MX Record) ----- Transcript of session follows ----- ... while talking to mx01.register.com.: >>> MAIL From:<root@localhost.localdomain> SIZE=579 <<< 550 5.1.0 Sender Refused - Address <root@localhost.localdomain> - Sending Domain Name Invalid or Non-Existent A or MX Rec ord 554 5.0.0 Service unavailable --o22FaYMm022137.1267544194/localhost.localdomain Content-Type: message/delivery-status Reporting-MTA: dns; localhost.localdomain Received-From-MTA: DNS; flipper Arrival-Date: Tue, 2 Mar 2010 10:36:33 -0500 Final-Recipient: RFC822; me@mydomain.com Action: failed Status: 5.1.0 Diagnostic-Code: SMTP; 550 5.1.0 Sender Refused - Address <root@localhost.localdomain> - Sending Domain Name Invalid or Non-E xistent A or MX Record Last-Attempt-Date: Tue, 2 Mar 2010 10:36:34 -0500 --o22FaYMm022137.1267544194/localhost.localdomain Content-Type: message/rfc822 Return-Path: <root@localhost.localdomain> Received: from localhost.localdomain (flipper [127.0.0.1]) by localhost.localdomain (8.13.8/8.13.8) with ESMTP id o22FaXMm022135 for <me@mydomain.com>; Tue, 2 Mar 2010 10:36:33 -0500 Received: (from root@localhost) by localhost.localdomain (8.13.8/8.13.8/Submit) id o22FaXJf022134 for me@mydomain.com; Tue, 2 Mar 2010 10:36:33 -0500 Date: Tue, 2 Mar 2010 10:36:33 -0500 From: root <root@localhost.localdomain> Message-Id: <201003021536.o22FaXJf022134@localhost.localdomain> To: me@mydomain.com Subject: test test --o22FaYMm022137.1267544194/localhost.localdomain-- & yahoo mail Message 7: From MAILER-DAEMON@localhost.localdomain Tue Mar 2 10:34:32 2010 Date: Tue, 2 Mar 2010 10:34:32 -0500 From: Mail Delivery Subsystem <MAILER-DAEMON@localhost.localdomain> To: <root@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/report; report-type=delivery-status; boundary="o22FYWOa022086.1267544072/localhost.localdomain" Subject: Returned mail: see transcript for details Auto-Submitted: auto-generated (failure) This is a MIME-encapsulated message --o22FYWOa022086.1267544072/localhost.localdomain The original message was received at Tue, 2 Mar 2010 10:34:27 -0500 from flipper [127.0.0.1] ----- The following addresses had permanent fatal errors ----- <me@yahoo.com> (reason: 553 5.7.1 [BL21] Connections will not be accepted from 98.249.136.34, because the ip is in Spamhaus's list; see http://postmaster.yahoo.com/550-bl23.html) ----- Transcript of session follows ----- ... while talking to e.mx.mail.yahoo.com.: <<< 553 Mail from 98.249.136.34 not allowed - 5.7.1 [BL21] Connections not accepted from IP addresses on Spamhaus PBL; see ht tp://postmaster.yahoo.com/550-bl21.html [550] ... while talking to c.mx.mail.yahoo.com.: <<< 553 5.7.1 [BL21] Connections will not be accepted from 98.249.136.34, because the ip is in Spamhaus's list; see http://po stmaster.yahoo.com/550-bl23.html ... while talking to a.mx.mail.yahoo.com.: <<< 553 5.7.1 [BL21] Connections not accepted from 98.249.136.34 due to being on Spamhaus; see http://postmaster.yahoo.com/55 0-bl23.html ... while talking to f.mx.mail.yahoo.com.: <<< 553 5.7.1 [BL21] Connections will not be accepted from 98.249.136.34, because the ip is in Spamhaus's list; see http://po stmaster.yahoo.com/550-bl23.html ... while talking to h.mx.mail.yahoo.com.: <<< 553 5.7.1 [BL21] Connections not accepted from 98.249.136.34 due to being on Spamhaus; see http://postmaster.yahoo.com/55 0-bl23.html ... while talking to g.mx.mail.yahoo.com.: <<< 553 5.7.1 [BL21] Connections not accepted from 98.249.136.34 due to being on Spamhaus; see http://postmaster.yahoo.com/55 0-bl23.html ... while talking to b.mx.mail.yahoo.com.: <<< 553 5.7.1 [BL21] Connections will not be accepted from 98.249.136.34, because the ip is in Spamhaus's list; see http://po stmaster.yahoo.com/550-bl23.html ... while talking to d.mx.mail.yahoo.com.: <<< 553 5.7.1 [BL21] Connections will not be accepted from 98.249.136.34, because the ip is in Spamhaus's list; see http://po stmaster.yahoo.com/550-bl23.html 554 5.0.0 Service unavailable --o22FYWOa022086.1267544072/localhost.localdomain Content-Type: message/delivery-status Reporting-MTA: dns; localhost.localdomain Received-From-MTA: DNS; flipper Arrival-Date: Tue, 2 Mar 2010 10:34:27 -0500 Final-Recipient: RFC822; me@yahoo.com Action: failed Status: 5.5.0 Diagnostic-Code: SMTP; 553 5.7.1 [BL21] Connections will not be accepted from 98.249.136.34, because the ip is in Spamhaus's list; see http://postmaster.yahoo.com/550-bl23.html Last-Attempt-Date: Tue, 2 Mar 2010 10:34:32 -0500 --o22FYWOa022086.1267544072/localhost.localdomain Content-Type: message/rfc822 Return-Path: <root@localhost.localdomain> Received: from localhost.localdomain (flipper [127.0.0.1]) by localhost.localdomain (8.13.8/8.13.8) with ESMTP id o22FYROc022082 for <me@yahoo.com>; Tue, 2 Mar 2010 10:34:27 -0500 Received: (from root@localhost) by localhost.localdomain (8.13.8/8.13.8/Submit) id o22FKkcc022019 for me@yahoo.com; Tue, 2 Mar 2010 10:20:46 -0500 Date: Tue, 2 Mar 2010 10:20:46 -0500 From: root <root@localhost.localdomain> Message-Id: <201003021520.o22FKkcc022019@localhost.localdomain> To: me@yahoo.com Subject: test maiul test mail --o22FYWOa022086.1267544072/localhost.localdomain-- |
solve dit with help from another forum... Here is the answer if anyone wants to know
Make an entry in /etc/mail/sendmail.mc, such as: define(`SMART_HOST',`your.ISPs.mail.server') might help? That way, your ISP will relay the mail for you (especially useful if they don't allow the use of port 25). Be sure to do a: make -C /etc/mail service sendmail restart |
Well i get tis email bounced back to my account. I found out yahoo is blocking my isp ip so i sent to my personal account and get a bounce back msg.
This i understand because its trying to bounce the mail back to my server root@localhost.localdomain and thats not valid. But what I dont understand is why is it not just accepting the mail and not trying to send it back. The original message was received at Wed, 3 Mar 2010 04:02:03 -0500 from centos [127.0.0.1] ----- The following addresses had permanent fatal errors ----- me@mydomain.com (reason: 550 5.1.0 Sender Refused - Address <root@localhost.localdomain>; - Sending Domain Name Invalid or Non-Existent A or MX Record) (expanded from: <root@localhost.localdomain>;) ----- Transcript of session follows ----- ... while talking to mx01.register.com.: >>> MAIL From:<root@localhost.localdomain>; SIZE=9817 <<< 550 5.1.0 Sender Refused - Address <root@localhost.localdomain>; - Sending Domain Name Invalid or Non-Existent A or MX Record 554 5.0.0 Service unavailable May be I need to "spoof" my system to look like its coming from my domain? Not sure how or if thats the right thing to do. All i want to do is get logwatch off my system so I dont have to login to review it. |
I got this resolved in case any need this info
/etc/sysconfig more network NETWORKING=yes NETWORKING_IPV6=no HOSTNAME=centos GATEWAY=192.168.1.1 Looks OK I modified host file to be 192.168.1.100 centos centos.mydomain.com I get this: mailx -v -s "test" root test . Cc: root... Connecting to [127.0.0.1] via relay... 220 localhost.localdomain ESMTP Sendmail 8.13.8/8.13.8; Wed, 3 Mar 2010 11:36:34 -0500 >>> EHLO centos.mydomain.com 250-localhost.localdomain Hello localhost.localdomain [127.0.0.1], pleased to meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-8BITMIME 250-SIZE 250-DSN 250-ETRN 250-AUTH DIGEST-MD5 CRAM-MD5 250-DELIVERBY 250 HELP >>> MAIL From:<root@centos.mydomain.com> SIZE=30 AUTH=root@centos.mydomain.com 250 2.1.0 <root@centos.mydomain.com>... Sender ok >>> RCPT To:<root@centos.mydomain.com> >>> DATA 250 2.1.5 <root@centos.mydomain.com>... Recipient ok 354 Enter mail, end with "." on a line by itself >>> . 250 2.0.0 o23GaYFv026440 Message accepted for delivery root... Sent (o23GaYFv026440 Message accepted for delivery) Closing connection to [127.0.0.1] >>> QUIT 221 2.0.0 localhost.localdomain closing connection [root@centos etc]# mailq /var/spool/mqueue (1 request) -----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient----------- o23GaYFv026440* 6 Wed Mar 3 11:36 <root@centos.mydomain.com> <root@centos.mydomain.com> Total requests: 1 so i changed my host file to read # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 centos centos.mydomain.com localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 hostname centos so based on the other document I changed the host like yet again 192.168.1.100 centos.mydomain.com centos Still the mail gets hung on the server. This is not dhcp by the way but fixed IP. i put this in the /etc/aliases file root: myid@mydomain.com newaliases I also did a service sendmail restart |
All times are GMT -5. The time now is 08:31 AM. |