Paul Abrahams wrote:
On Friday 05 January 2007 6:32 am, Carlos E. R. wrote:
The Friday 2007-01-05 at 00:28 -0500, Paul Abrahams wrote:
I'm trying to send mail through my ISP using sendmail (postfix under the
covers). I have to use sendmail because the actual application is the
PHP5 "mail" command, and that command uses sendmail. My ISP requires a
username and password to accept the relay; this protocol goes under the
name of SMTP AUTH.
How can I track down the reason the mail isn't arriving?
Aha! The log contains this:
Jan 5 10:46:59 suillus postfix/smtp[7947]: 15FEE9CE00: to=<[EMAIL PROTECTED]>,
relay=smtp.comcast.net[206.18.177.17]:25, delay=7.1,
delays=6.5/0.02/0.42/0.16, dsn=5.0.0, status=bounced (host
smtp.comcast.net[206.18.177.17] said: 550 [PERMFAIL] acm.org requires valid
sender domain (in reply to RCPT TO command))
I took the suggestions of several other people and still get this result:
Joachim Schrod suggested changing the sendmail call to something like this:
sendmail -t -v
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: test
He also noted that mail uses sendmail -- and in fact, mail works perfectly for
the relay on my box.
Patrick Shanahan suggested adding this to main.cf:
relayhost = smtp.comcast.net
followed by
postfix reload
John Andersen suggested that I didn't need to fiddle with main.cf at all, but
could just do the configuration through Yast (Mail Transfer Agent).
I took all of those suggestions, but still get the message above in the mail
log.
So the real problem seems to lie with the sender domain.
It depends. Does the server smtp.comcast.net require authentication for
you to relay or does it simply check your ip and allows relaying based on
that?
The sender address must be a real existing address. Use the address you
expect others to answer to as the sender address, and you should not have
a problem.
It is still possible that you will have to authenticate to the relayserver
to be able to relay.
To use smtp auth with postfix:
/etc/postfix/smtp_relayhost_auth:
[smtp.comcast.net] username:password
Then execute "postmap /etc/postfix/smtp_relayhost_auth"
/etcp/postfix/main.cf:
# square brackets around hostname to suppress mx lookup of relayhost
relayhost = [smtp.comcast.net]
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/smtp_relayhost_auth
smtp_sasl_security_options = noanonymous
After you have inserted these options, verify with the output of "postconf
-n" that these options are active.
Then execute "postfix reload" to refresh the changed configuration.
Now send a testmail with valid sender address and recipient address.
Sandy
--
List replies only please!
Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]