Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 06-20-2012, 03:43 PM   #1
LQ Newbie
Registered: Jun 2012
Posts: 1

Rep: Reputation: Disabled
Postfix mynetwork open relay


We have just setup a new postfix server to act as an antispam gateway in our network.
Under smtpd_recipient_restrictions, we have the following configuration:

smtpd_recipient_restrictions =











mynetwork has the following values and which is the network subnet for the LAN.

According to this settings, the computer on the LAN, would be able to send emails even if they type an invalid

domain on RCPT TO as permit_mynetworks is before reject_unknown_recipient_domain.
But the thing is that with this settings, the server is acting as an open relay and all the computers out on the

Internet are able to relay mail through it (to domains that are not listed inside /etc/postfix/relay_domains).

If we remove the network segment for the LAN on mynetwork, then no computer is able to send email to the server.

I donīt know if is relevant, but we have a firewall with NAT to redirect the traffic on port 25 to the private IP of the server.

It would be great if someone could give us a hand or correct the configuration of the if there is something wrong

Thanks very much in advance
Old 06-21-2012, 09:09 AM   #2
Senior Member
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217

I'm not any expert or anything about Postfix, but maybe this simple guide could help you set
or maybe here you could find explanation of some settings to check out.

Good luck

Last edited by lithos; 06-21-2012 at 09:11 AM.


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 Getting Spammed Bad -- But no open relay... ihod2008 Linux - Server 1 07-26-2008 08:24 PM
Postfix, open relay vimal Linux - Networking 3 09-01-2006 12:35 PM
postfix - mynetwork option doronunu Linux - Software 3 08-04-2006 08:55 PM
closing a postfix open relay behind a NAT mishunimi Linux - Networking 2 02-05-2004 06:32 PM
Postfix - Open relay or not? darklogik_org Linux - Software 2 01-29-2004 05:30 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:23 AM.

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
Open Source Consulting | Domain Registration