LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 08-28-2009, 01:05 PM   #1
davidstvz
Member
 
Registered: Jun 2008
Posts: 405

Rep: Reputation: 31
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?
 
Old 08-28-2009, 07:38 PM   #2
Suncoast
Member
 
Registered: Apr 2009
Location: Largo, Florida
Distribution: Slackware
Posts: 208

Rep: Reputation: 35
Quote:
Originally Posted by davidstvz View Post
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 View Post

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.
 
Old 09-01-2009, 06:16 PM   #3
davidstvz
Member
 
Registered: Jun 2008
Posts: 405

Original Poster
Rep: Reputation: 31
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sendmail access file ip subnet slackamp Linux - Server 0 06-14-2007 10:09 AM
Sendmail: relay denied from a different subnet _MD_ Linux - Newbie 8 04-20-2007 08:20 AM
Sendmail can send not receive abettertomorrow Slackware 6 01-22-2005 01:54 PM
Can't send mail with Sendmail familyman Linux - Software 3 09-15-2004 10:30 AM
sendmail won't send locally! Red Squirrel Linux - Software 5 04-14-2004 04:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration