Solved

Relay access denied in post fix

Posted on 2014-09-21
1
4,485 Views
Last Modified: 2014-09-21
Hi,

We have setup postfix, dovecot on our new server and have no issues sending or receiving e-mails from the server directly. However, when we try to send mails out
from outlook/thunderbird, it fails with the following error message(s):

## postfix/smtpd[6786]: NOQUEUE: reject: RCPT from abc.domain.net[<ip_address>]: 454 4.7.1 <testedr@gmail.com>: Relay access denied; from=<tony@abc360.com> to=<testedr@gmail.com> proto=ESMTP helo=<mydel>

I have added domain.net to mynetworks, but still I get the same error.
0
Comment
Question by:Starquest321
1 Comment
 
LVL 10

Accepted Solution

by:
Ganesh Kumar A earned 500 total points
Comment Utility
You need to  add the relay restriction as below.


# With Postfix 2.10 and later, the mail relay policy is
# preferably specified under smtpd_relay_restrictions.
/etc/postfix/main.cf:
    smtpd_relay_restrictions =
    permit_mynetworks
    permit_sasl_authenticated
    reject_unauth_destination

# Older configurations combine relay control and spam control under
# smtpd_recipient_restrictions. To use this example with Postfix ≥
# 2.10 specify "smtpd_relay_restrictions=".
/etc/postfix/main.cf:
    smtpd_recipient_restrictions =
    permit_mynetworks
    permit_sasl_authenticated
    reject_unauth_destination
        ...other rules...


Also check in configuration file main.cf if following line was commented, if yes remove the comment.

smtpd_recipient_restrictions = permit_sasl_authenticated
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

This article is essential to make secure Yahoo Mail connection without facing any issue. It is providing simple steps to configure your Yahoo Mailbox to Hard drive using Microsoft Outlook.
This story has been written with permission from the scammed victim, a valued client of mine – identity protected by request.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now