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 5th September 2008, 03:48
Noodles25 Noodles25 is offline
Junior Member
 
Join Date: Sep 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Force postfix to send on specific IP

I have a server with multiple IPs, I can't work out how to force postfix to send via one of our virtual IPs rather than the main IP. (For example main IP is 1.2.3.4, virtual IP is 4.3.2.1)

I've tried this in main.cf:
inet_interfaces = 4.3.2.1

I've tried this in master.cf
Code:
4.3.2.1:smtp      inet  n       -       n       -       -       smtpd
Using Postfix 2.3.3 on RHEL5

Can anyone tell me how to force postfix to send on 4.3.2.1 ?
Reply With Quote
Sponsored Links
  #2  
Old 5th September 2008, 12:52
kalinix kalinix is offline
Junior Member
 
Join Date: Sep 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Force postfix to send on specific IP

you may want to use smtp_bind_address. man 5 postconf and look for it
Reply With Quote
  #3  
Old 7th September 2008, 23:47
Noodles25 Noodles25 is offline
Junior Member
 
Join Date: Sep 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I've tried that and it looks like it should bind to inet_interfaces. Neither of which seem to work.
Reply With Quote
  #4  
Old 8th September 2008, 08:58
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 148 Times in 145 Posts
Default

If it does not work then use NAT to rewrite the source address of the smtp packets before they leave your server.
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
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
Undelivered Mail Returned to Sender Error202 General 5 7th May 2009 11:14
Mail System Error - Returned Mail tristanlee85 General 16 16th March 2008 09:40
Send problems (postfix) danielvm Server Operation 4 16th September 2007 23:06
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 12:53.


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