• Recent blogs

    How to Fix Postfix' 'Relay Access Denied'?

    How to Fix Postfix' 'Relay Access Denied'?


    Apr  8 13:12:20 ip-xxxxxxpostfix/smtpd[21163]: NOQUEUE: reject: RCPT from xxx-ap-south-1.compute.internal[xxxxx]: 454 4.7.1 <email@gmail.com>: Relay access denied; from=<email@gmail.com> to=<email@gmail.com> proto=ESMTP helo=<server-6f8d85756-xp6hp>



    This will permit hosts by IP address that match IP ranges specified in $mynetworks. In the main.cf you need to  change the network ranges which can send e-mail through Postfix. If its mentioned as, it will only relay emails generated by the server itself.

    1. To Open e-mail from all network , just add "" in "/etc/postfix/main.cf". If you want restrict it to certain network please mention it explicitly.

    mynetworks =,

    2. Reload the postfix.

    systemctl reload postfix

    No comments