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.
Reply
 
Thread Tools Display Modes
  #1  
Old 9th August 2009, 14: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 10.0.0.10. 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 10.0.0.1.

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

Alexander

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

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

smtpd_recipient_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_invalid_hostname,
reject_unknown_recipient_domain,
reject_pipelining,
reject_unauth_destination,
reject_rbl_client zen.spamhaus.org,
permit

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
Reply

Bookmarks

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 05:39
Undelivered Mail Returned to Sender Error202 General 5 7th May 2009 11:14
localhost postfix/master: fatal: bind 127.0.0.1 port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 17:39
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 15:36


All times are GMT +2. The time now is 22:41.


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