I finally gave up on sendmail for relay to smtp external MTA and installed postfix. Still have not figured out how to reliably configure so the relay host will accept the message and send on.
My test message is a simple
Quote:
echo "blah blah"|mailx -s Server_Test me@my_mail_destination
|
The log for the test looks like this:
Quote:
Apr 29 10:00:12 bog-sas-02 postfix/cleanup[6564]: DE64B5AA28: message-id=<20100429140012.DE64B5AA28@bog-sas-02.here.org>
Apr 29 10:00:12 bog-sas-02 postfix/qmgr[21393]: DE64B5AA28: from=<sas_do_not_reply@here.net>, size=365, nrcpt=1 (queue active)
Apr 29 10:00:13 bog-sas-02 postfix/smtp[6566]: DE64B5AA28: to=<me@my_mail_destination>, relay=smtp.emailsrvr.com[98.129.185.2], delay=1, status=bounced (host smtp.emailsrvr.com[98.129.185.2] said: 554 5.7.1 <sas_do_not_reply@here.net>: Sender address rejected: Access denied (in reply to RCPT TO command))
Apr 29 10:00:13 bog-sas-02 postfix/qmgr[21393]: DE64B5AA28: removed
|
The user sending the message is "sas"
The postfix configuration has a canonical.db:
There is a sasl_passwd.db file that is correct.
The postfix configuration includes:
Quote:
sender_canonical_maps = hash:/etc/postfix/canonical
myhostname = bog-sas-02.here.org
mydomain = here.org
myorigin = $mydomain
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
relayhost = smtp.emailsrvr.com
smtp_sasl__auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =
|
The relay mail support folks tell me:
Quote:
My best guess is that during the SMTP transaction the postfix server is using something else when sending.
During the SMTP transaction the server will issue the following command.
mail from:<user@address.tld>
This is the address that our servers check against. If the script is running as root it's most likely coming from root@ or apache@ or something along those lines. I would add those as aliases in our system so that when your server connects and issues the mail from command it's not being bounced.
What you are telling postfix to do is to send as an address and it would change the FROM: "Name here <user@domain.tld>" Which will make the display, and reply to change in most email clients. However our system runs strictly off of the "mail from:<user@domain.tld>" command during telnet.
|
Which I do not understand!
Can anyone explain what I am missing here and what I should do differently?
Thanks.