Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-27-2004, 05:22 AM   #1
LQ Newbie
Registered: Aug 2003
Posts: 19

Rep: Reputation: 0
Postfix error - Recipient address rejected: Relay access denied

Hi all,

I've set up Postfix on Debian with virtual domains. Receiving mail works fine and I can download my e-mail into Outlook no problem. However, when I try to send mail from outlook to an address at a domain which I don't host, i.e., I get the error:

Recipient address rejected: Relay access denied



command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
program_directory = /usr/lib/postfix

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

append_dot_mydomain = no
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination =, localhost
mynetworks =
mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +

virtual_maps = hash:/etc/postfix/virtual
inet_interfaces =,



----------- virtual robmydomaincom


Where 'robmydomaincom' is a valid linux user account.

Any ideas what I need to do to get things working?

Thanks in advance,

Old 10-01-2004, 03:57 AM   #2
Registered: Jul 2001
Location: india
Distribution: RedHat 7.1,7.2,7.3, 8.0,9.0,Fedora,EL2.1,EL3.0
Posts: 103

Rep: Reputation: 16
Hi Rob,

Since you are not sending mail from the localhost, relaying is denied by default. You can open relaying for specific machines(the ones that run outlookexpress and are used to send mail). BEWARE: do not open relaying for every machine on the internet, else your mail server might get marked as an open relay and most domains will stop accessing mails from you.

I dont recall the exact command used to configure postfix to relay for specific domains, but a google on "postfix relaying" will through up some usable results.




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 Relay Access Denied dwpondscum Linux - Networking 2 09-20-2007 04:37 AM
Postfix as a mail relay (getting relay access denied) hypexr Linux - Software 3 09-13-2005 07:15 PM
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
Email Error - "Recipient address rejected: Relay access denied" ripcord Linux - Newbie 1 10-31-2002 03:00 PM

All times are GMT -5. The time now is 09:24 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