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 (127.0.0.1) refusing connections for outgoing mail. which i remedied by commenting out
daemon_options ('port=smtp, addr=127.0.0.1, name=mta')dnl
in the sendmail.mc...
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 firstname.lastname@example.org
ldomain. (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:
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 sendmail.mc 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: m3N23VX5023468: to=<email@example.com>, ctladdr=<firstname.lastname@example.org> (501/0), delay=00:00:04, xdelay=00:00:04, mailer=esmtp, pri=150479, relay=gmail-smtp-in.l.google.com. [220.127.116.11], dsn=2.0.0, stat=Sent (OK 1208928821 b37si10590989ana.23)
Apr 22 19:03:37 localhost sendmail: m3N23VX5023468: to=<email@example.com>, ctladdr=<firstname.lastname@example.org> (501/0), delay=00:00:06, xdelay=00:00:02, mailer=esmtp, pri=150479, relay=postoffice.xxxxx.com. [xxx.xxx.x.xx], dsn=2.0.0, stat=Sent (m3N5WZ0J003955 Message accepted for delivery)
Apr 23 04:02:10 localhost sendmail: m3NB23ES024848: from=root, size=72835, class=0, nrcpts=1, msgid=<200804231102.m3NB23ES024848@localhost.localdomain>, relay=root@localhost
Apr 23 04:02:10 localhost sendmail: m3NB2AOS025128: from=<email@example.com>, size=73115, class=0, nrcpts=1, msgid=<200804231102.m3NB23ES024848@localhost.localdomain>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
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