?
Solved

Relay access denied in post fix

Posted on 2014-09-21
1
Medium Priority
?
5,030 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 12

Accepted Solution

by:
Ganesh Kumar A earned 2000 total points
ID: 40335199
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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Create high volume marketing opportunities using email signatures with these top 10 DOs and DON'Ts of email signature marketing.
We aren’t perfect, just like everyone else.  Check out the email errors our community caught and learn the top errors every email marketer should avoid.
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: …
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month9 days, 11 hours left to enroll

762 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