NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: help with "SMTP error: 454 4.7.1 <name@localhost>: Relay access denied"



Henry <nbsd4ever%gmail.com@localhost> writes:

> More than a decade too late, but I am finally moving from sendmail to
> postfix.  Unfortunately, fetchmail doesn't work anymore; I get the
> following error (translated from Japanese):
>
> fetchmail: SMTP error: 454 4.7.1 <name@localhost>: Relay access denied
> Reading first message addressed to
> lower.upper%axel.knet.ne.jp%lfknet-pop.xspmail.jp@localhost (22114 bytes)
> Messages not deleted from server.

Why is fetchmail sending mail?

Why do you have addresses with user%domain1@domain2?  I haven't seen
that in use since the days of CHAOSnet/UUCP/BITNET/ARPANET mail
gateways.

> I've tried MANY variations of the following without luck.
> In /etc/postfix/main.cf, add:
> smtpd_recipient_restrictions =
>     permit_mynetworks,
>     check_recipient_access hash:/etc/postfix/recipient_access,
>     permit_sasl_authenticated,
>     reject_unauth_destination
> Add "name@my.domain OK" to recipient_access;
>  then, `postmap /etc/postfix/recipient_access`
> Stop and start postfix.

That is usually right, and usually/always 127.0.0.1 is in mynetworks.

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index