[olug] Postfix issue

Lou Duchez lou at paprikash.com
Fri Apr 12 22:43:30 UTC 2013


You probably have a line like this in main.cf:

smtpd_recipient_restrictions = permit_mynetworks 
permit_sasl_authenticated reject_unauth_destination permit

That's what mine looks like, anyway.  It's defining the rules by which 
Postfix will decide whether to accept an E-Mail and take responsibility 
for delivering it.  The rules are applied in this order, the first 
matching rule wins:

-    Accept the E-Mail if it is coming from an address defined as one of 
"my networks"
-    Accept the E-Mail if the sender was able to authenticate (login & 
password)
-    Reject the E-Mail if the destination requires relaying to another 
server
-    Accept the E-Mail

Do you have an smtpd_recipient_restrictions line?  If you don't have 
one, use mine.  If yours doesn't look quite like mine, be sure all the 
rules are sensible and are in the right order.




> when trying to send email through postfix, i get this error:
>
> Message not sent. Server replied:
> Transaction failed
> 554 5.7.1 <harmonicnm7h at gmail.com>: Relay access denied
>
> Any ideas on how to fix it?
>
> Sam
>




More information about the OLUG mailing list