Solved

Relay access denied in post fix

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

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Are you having trouble connecting or getting your iPhone / Samsung device(s) to sync with Microsoft Exchange Server?   What have you tried?   What haven't you tried?
Check out this infographic on what you need to make a good email signature that will work perfectly for your organization.
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: …
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…

813 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

11 Experts available now in Live!

Get 1:1 Help Now