Solved

Relay access denied in post fix

Posted on 2014-09-21
1
4,897 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 500 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
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

691 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