Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 9th August 2009, 15:54
akunz akunz is offline
Junior Member
Join Date: Jan 2008
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
Default Postfix behind NAT / Real IP

Hello Community,

i have a problem with my Postfix setup. The Postfix Server is connected to my local network, with a private address On my gateway Server i use a iptables DNAT rule for Port 25. Everything works fine, but i can not see the Source IPs in the Postfix Logfile. So it looks like all emails come from the internal gateway server with the address

What is the best Setup for an internal Postfix Server behind a Firewall wich have no public address? I will see the real client addresses in my Postfix log. (and for fight spam)

Thanks for your help.

Kind regards


Last edited by akunz; 10th August 2009 at 00:05. Reason: ...
Reply With Quote
Sponsored Links
Old 9th August 2009, 19:11
av1611 av1611 is offline
Join Date: Jun 2007
Posts: 49
Thanks: 0
Thanked 1 Time in 1 Post

Make sure this is in /etc/postfix/main.cf:

smtpd_recipient_restrictions =
reject_rbl_client zen.spamhaus.org,

there are many rbl clients but I think this is adequate for most of what I deal with.

If I get a particularly bothersome spammer, I block his IP block at the firewall/gateway.
Reply With Quote


Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix not responding to telnet CarbonCopy Server Operation 6 8th May 2009 06:39
Undelivered Mail Returned to Sender Error202 General 5 7th May 2009 12:14
localhost postfix/master: fatal: bind port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 18:39
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 16:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 16:36

All times are GMT +2. The time now is 23:19.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.