Solved

Relay access denied in post fix

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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?
Are you irritated by repeating emails issue in Microsoft Outlook 2016 after recent update ?  Lets’ see how to resolve and prevent duplicate emails in the Outlook 2016 using some simple techniques.
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

730 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