Mailinglist Archive: opensuse (3531 mails)

< Previous Next >
Re: [opensuse] Sending mail via my ISP relay using sendmail
  • From: Sandy Drobic <suse-linux-e@xxxxxxxxxxxxxxxxxxxxxxx>
  • Date: Fri, 05 Jan 2007 18:31:02 +0100
  • Message-id: <459E8B56.8060408@xxxxxxxxxxxxxxxxxxxxxxx>
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=<abrahams@xxxxxxx>,[]:25, delay=7.1, delays=6.5/0.02/0.42/0.16, dsn=5.0.0, status=bounced (host[] said: 550 [PERMFAIL] 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: <mbox@xxxxxxxxxxx>
To: <mbox@xxxxxxxxxxx>
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
relayhost =

followed by

postfix reload

John Andersen suggested that I didn't need to fiddle with 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 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:

[] username:password

Then execute "postmap /etc/postfix/smtp_relayhost_auth"

# square brackets around hostname to suppress mx lookup of relayhost
relayhost = []
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.

List replies only please!
Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups