Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-28-2009, 01:05 PM
|
#1
|
Member
Registered: Jun 2008
Posts: 405
Rep:
|
Sendmail won't send outside my subnet
Doesn't seem like anyone here knows sendmail, but I guess I'll take another crack at it.
Sendmail won't send outside my subnet, but I don't think it's a DNS problem. The DNS lookups work fine and if I use the -bv option to verify the target address, that comes up fine.
If I connect in verbose mode, the attempt at connection freezes up like so:
Code:
david@myserver:~/work$ /usr/sbin/sendmail -v me@yahoo.com <zendstuff
me@yahoo.com... Connecting to [127.0.0.1] via relay...
220 myserver.xxx.edu ESMTP Sendmail 8.14.3/8.14.3; Fri, 28 Aug 2009 12:50:10 -0500
>>> EHLO myserver.xxx.edu
250-myserver.xxx.edu Hello localhost.localdomain [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
>>> VERB
250 2.0.0 Verbose mode
>>> MAIL From:<david@myserver.xxx.edu> SIZE=27
250 2.1.0 <david@myserver.xxx.edu>... Sender ok
>>> RCPT To:<me@yahoo.com>
>>> DATA
250 2.1.5 <me@yahoo.com>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
Then it hangs.
If I connect to a server on the same subnet I get the following additional lines indicating success:
Code:
050 250 2.0.0 n7SHxgJN006118 Message accepted for delivery
050 <david@otherserver.xxx.edu>... Sent (n7SHxgJN006118 Message accepted for delivery)
250 2.0.0 n7SHvkLU023481 Message accepted for delivery
david@otherserver.xxx.edu... Sent (n7SHvkLU023481 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 myserver.xxx.edu closing connection
The mail log file shows the following for the error case:
Code:
Aug 28 11:14:50 csc sendmail[22339]: n7SGEoIe022339: from=me, size=27, class=0, nrcpts=1, msgid=<200908281614.n7SGEoIe022339@myserver.xxx.edu>, relay=david@localhost
Aug 28 11:14:50 csc sm-mta[22341]: n7SGEoLw022341: from=<david@myserver.xxx.edu>, size=341, class=0, nrcpts=1, msgid=<200908281614.n7SGEoIe022339@myserver.xxx.edu>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
And the following for a server on the same subnet (two additional lines).
Code:
Aug 28 11:19:18 csc sendmail[22378]: n7SGJImd022378: from=david, size=27, class=0, nrcpts=1, msgid=<200908281619.n7SGJImd022378@myserver.xxx.edu>, relay=david@localhost
Aug 28 11:19:18 csc sm-mta[22380]: n7SGJIuw022380: from=<david@myserver.xxx.edu>, size=334, class=0, nrcpts=1, msgid=<200908281619.n7SGJImd022378@myserver.xxx.edu>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Aug 28 11:19:18 csc sm-mta[22380]: n7SGJIuw022380: to=<david@otherserver.xxx.edu>, ctladdr=<david@myserver.xxx.edu> (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=30334, relay=otherserver.xxx.edu. [130.39.224.91], dsn=2.0.0, stat=Sent (n7SGLDcx002371 Message accepted for delivery)
Aug 28 11:19:18 csc sendmail[22378]: n7SGJImd022378: to=david@otherserver.xxx.edu, ctladdr=david (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30027, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (n7SGJIuw022380 Message accepted for delivery)
Any ideas?
|
|
|
08-28-2009, 07:38 PM
|
#2
|
Member
Registered: Apr 2009
Location: Largo, Florida
Distribution: Slackware
Posts: 208
Rep:
|
Quote:
Originally Posted by davidstvz
Doesn't seem like anyone here knows sendmail, but I guess I'll take another crack at it.
|
For fear of facilitating spammers, as am I....
Quote:
Originally Posted by davidstvz
The mail log file shows the following for the error case:
Code:
Aug 28 11:14:50 csc sendmail[22339]: n7SGEoIe022339: from=me, size=27, class=0, nrcpts=1, msgid=200908281614.n7SGEoIe022339@myserver.xxx.edu>, relay=david@localhost
Aug 28 11:14:50 csc sm-mta[22341]: n7SGEoLw022341: from=<david@myserver.xxx.edu>, size=341, class=0, nrcpts=1, msgid=<200908281614.n7SGEoIe022339@myserver.xxx.edu>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
|
This is incomplete. And I don't see any errors listed here. Where is the rest of the log for jobs 22339 and 22341?
Here you have a complete log, 2 job entries for job 22380. The second entry lists the status as "stat=Sent"
Code:
Aug 28 11:19:18 csc sm-mta[22380]: n7SGJIuw022380: from=<david@myserver.xxx.edu>, size=334, class=0, nrcpts=1, msgid=<200908281619.n7SGJImd022378@myserver.xxx.edu>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Aug 28 11:19:18 csc sm-mta[22380]: n7SGJIuw022380: to=<david@otherserver.xxx.edu>, ctladdr=<david@myserver.xxx.edu> (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=30334, relay=otherserver.xxx.edu. [130.39.224.91], dsn=2.0.0, stat=Sent (n7SGLDcx002371 Message accepted for delivery)
Are these jobs stuck in your queue? Use the command mailq or mqueue to look at your mail queues.
Without seeing the errors, there's no way to help you. The error may seem unrelated, but will have the same job number in the log.
|
|
|
09-01-2009, 06:16 PM
|
#3
|
Member
Registered: Jun 2008
Posts: 405
Original Poster
Rep:
|
Just an update. If you have a sendmail problem, try the usenet group for sendmail (you can access via Google easily). With their help it quickly became apparent that my problem was a firewall between my subnet and the rest of the world that was blocking outgoing communication on port 25 as a preemptive measure against spam.
Thanks for trying to help here despite the lack of info.
|
|
|
All times are GMT -5. The time now is 10:37 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|