Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-23-2008, 01:20 PM   #1
LQ Newbie
Registered: Apr 2008
Location: Los Angeles
Distribution: FeDoRa CoRe 6 and 8, Ubuntu 7.10
Posts: 13

Rep: Reputation: 0
Problems with outgoing sendmail

hi all:

very new to the linux world and even newer to LQ. I have recently been setting up my first web/email server with apache and sendmail. My current issue is with sendmail not handling outgoing messages properly (or rather, sendmail not understanding my novice configuration.)

yesterday i had the problem of the localhost ( refusing connections for outgoing mail. which i remedied by commenting out

daemon_options ('port=smtp, addr=, name=mta')dnl

in the

this allowed me to send mails to external servers and it worked... for a few hours. Then i tried to enable masquerading so mail would not appear to come from user@localhost.localdomain. (i have now learned that this is the not the best way to do this) i edited the following lines:

local_domain ('localhost.localdomain')dnl --> local_domain ('my url')dnl (which i think was an incorrect edit)

uncommented masquerade options to make them active:

masquerade_as ('')dnl
feature (masquerade_envelope)dnl
feature (masquerade_entire_domain)dnl
masquerade_domain (localhost.localdomain)dnl

now i did not make any edits to the values in parentheses so im sure this is why masquerading did not work for me.. help on that will be appreciated as well.

however, after i tested masq and it failed i returned to it's original config and outgoing test messages do not get received by the external address. however i checked maillog and:

Apr 22 19:03:35 localhost sendmail[23470]: m3N23VX5023468: to=<>, ctladdr=<user@localhost.localdomain> (501/0), delay=00:00:04, xdelay=00:00:04, mailer=esmtp, pri=150479, [], dsn=2.0.0, stat=Sent (OK 1208928821 b37si10590989ana.23)
Apr 22 19:03:37 localhost sendmail[23470]: m3N23VX5023468: to=<>, ctladdr=<user@localhost.localdomain> (501/0), delay=00:00:06, xdelay=00:00:02, mailer=esmtp, pri=150479, [], dsn=2.0.0, stat=Sent (m3N5WZ0J003955 Message accepted for delivery)
Apr 23 04:02:10 localhost sendmail[24848]: m3NB23ES024848: from=root, size=72835, class=0, nrcpts=1, msgid=<200804231102.m3NB23ES024848@localhost.localdomain>, relay=root@localhost
Apr 23 04:02:10 localhost sendmail[25128]: m3NB2AOS025128: from=<root@localhost.localdomain>, size=73115, class=0, nrcpts=1, msgid=<200804231102.m3NB23ES024848@localhost.localdomain>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain []

so it seems that sendmail IS sending the messages correctly, and i know some servers reject mail coming from localhost.localdomain.. but these same recipient addresses worked only a few hours before i started messing with masquerading. thus, i'm utterly confused.

any help with masquerading or this outgoing mail issue will be greatly appreciated. thank you in advance


Systematic Arsenal Running Society, the Algorithm Eats Oc48 Lines
Old 04-23-2008, 06:55 PM   #2
LQ Newbie
Registered: Apr 2008
Location: Los Angeles
Distribution: FeDoRa CoRe 6 and 8, Ubuntu 7.10
Posts: 13

Original Poster
Rep: Reputation: 0
anybody wanna help me?
Old 04-24-2008, 05:39 PM   #3
Registered: Feb 2005
Distribution: Ubuntu, CentOS
Posts: 585

Rep: Reputation: 35
Possible Answer For One Problem

It is just my opinion, but I would tackle your problems by taking one at a time.

Basically, I use sendmail in a very restricted way, so I am not sure how much help I can be.

I have a masquerade_as statement, and it looks like this:


I did not have the feature sub-statements.

I have found "the bat book", O'Reilly's sendmail, to be quite valuable, and was well worth the price. I would suggest investing in it.
Old 04-24-2008, 10:14 PM   #4
LQ Newbie
Registered: Apr 2008
Location: Los Angeles
Distribution: FeDoRa CoRe 6 and 8, Ubuntu 7.10
Posts: 13

Original Poster
Rep: Reputation: 0
Thank you, having a bit of trouble keeping it all straight in this crazy world. i'm still doing my homework and greatly appreciate the book recommendation, which i now have next to me opened to page 19 (i love the los angeles library.) ONWARD!



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 and outgoing mail shafey Linux - Networking 1 11-16-2005 05:57 AM
Sendmail Outgoing Issues Sillysoft Linux - Newbie 1 11-08-2004 02:30 PM
sendmail outgoing pbm unome1 Linux - Networking 1 08-01-2004 01:38 PM
sendmail outgoing mail karunesh Linux - General 0 11-17-2003 03:19 PM
Sendmail and outgoing dns mylde Linux - Networking 0 01-26-2003 03:46 PM

All times are GMT -5. The time now is 07:04 PM.

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