Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-17-2006, 12:12 PM   #1
LQ Newbie
Registered: Jan 2006
Posts: 13

Rep: Reputation: 0
postfix - Relay access denied 554


i have installed postfix and it is working fine within the office premisses (LAN). But when i try sending mails from outside office premisses (WAN), i get the error message "554 <>: Relay access denied; in my postfix mail log file. I think there is a setting i have to add in, can u help me on this issue. or is it the dns settings i have to check ?

the is this.....

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
delay_warning_time = 4h

content_filter = scan:
receive_override_options = no_address_mappings

myhostname =
# myhostname = localhost
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
# myorigin = /etc/mailname
# myorigin = $myhostname
mydestination =, localhost.localdomain, localhost.localdomain, localhost
relayhost =
home_mailbox = Maildir/
mynetworks =,,
#mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0

# message_size_limit = 20480000

virtual_mailbox_domains = /etc/postfix/vhosts
virtual_mailbox_base = /home/vmail
virtual_mailbox_maps = hash:/etc/postfix/vmaps
virtual_minimum_uid = 1000
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000

recipient_delimiter = +
inet_interfaces = all

Old 06-18-2006, 02:30 PM   #2
Registered: May 2004
Distribution: redhat, trustix, debian
Posts: 103

Rep: Reputation: 15
You are sending message to someone in your destiantion?, or to somebody outside your destination
mails from outside will be accepted for delivery only for domains after mydestination statement
Old 06-18-2006, 08:00 PM   #3
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Rep: Reputation: 30
Afaik Postfix only allows smtp relaying from users in your "mynetworks" parameter. You can configure relay access by using smtpd_recipient_restrictions.

More here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix "554 Relay access denied" alexpopescu Linux - Software 1 10-17-2005 03:22 AM
Postfix as a mail relay (getting relay access denied) hypexr Linux - Software 3 09-13-2005 07:15 PM
554 <>: Relay access denied linuxkid Linux - Networking 1 03-30-2005 01:06 AM
Postfix and Relay access denied jamiguel77 Linux - Software 3 03-12-2005 10:53 AM
postfix: Relay access denied SolidSnake Linux - Networking 4 02-20-2004 09:05 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:45 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration