pw wrote:
> Hello,
>
> I am wondering if someone would be so kind as to
> step me through the process of setting up main.cf
> to send all mail via a single user account on a relay host.
>
> I have a specific account on the relay host that
> I wish to use.
>
> It appears that the relay host is just bouncing the
> emails due to a "failed 550 Sender verify" error.
> I am not sure if this has to do with the way I have
> set up SASL in main.cf or if there is a DNS problem.
>
> See below for main.cf and syslog output.
> Thanks for any pointers.
>
> Pete
>
>
> I set up main.cf as follows:

Please reference 'postconf -n' instead of posting main.cf because your
eyes can deceive you.

>
> smtp_sasl_auth_enable = yes
> smtp_sasl_password_maps = hash:/etc/postfix/sasl/sasl_passwd
> smtp_sasl_type = cyrus
> smtp_sasl_security_options = noanonymous
Good
>
> myhostname = ocelot
> alias_maps = hash:/etc/aliases
> alias_database = hash:/etc/aliases
> mydestination = ocelot, localhost.localdomain, localhost
> relayhost = [mail.island.com]
> mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
> mailbox_command = procmail -a "$EXTENSION"
> mailbox_size_limit = 0
> recipient_delimiter = +
> inet_interfaces = all
>
> /*...................................................................*/
>
> Output to syslog, on failed email, is as follows:
>
> Oct 15 08:31:12 ocelot postfix/pickup[12917]: 9705D3EEE54: uid=0
> from=<greg>
> Oct 15 08:31:12 ocelot postfix/cleanup[13343]: 9705D3EEE54:
> message-id=<[EMAIL PROTECTED]>
> Oct 15 08:31:12 ocelot postfix/qmgr[11429]: 9705D3EEE54:
> from=<[EMAIL PROTECTED]>, size=282, nrcpt=1 (queue active)
> Oct 15 08:31:13 ocelot postfix/smtp[13345]: 9705D3EEE54:
> to=<[EMAIL PROTECTED]>, relay=mail.island.com[xxx.xxx.xxx.xxx]:25,
> delay=1.3, delays=0.07/0.04/0.98/0.18, dsn=5.0.0, status=bounced (host
> mail.island.com[xxx.xxx.xxx.xxx] said: 550-Verification failed for
> <[EMAIL PROTECTED]> 550-DNS lookups for "ocelot" failed 550 Sender verify
> failed (in reply to MAIL FROM command))

Your relayhost is complaining it cannot resolve ocelot (which you set as
myhostname).

To fix this, set a FQDN in myhostname first. 
Then, fix whatever fed the sendmail command to use a fully qualified
address instead of just the user. (the -f switch, 'man 1 sendmail')
Postfix will append myorigin to non-qualified addresses.  Use 'postconf
myorigin' to see what that currently is.

Brian

Reply via email to