LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 02-10-2007, 12:52 PM   #1
spadesmaster
LQ Newbie
 
Registered: Dec 2001
Posts: 8

Rep: Reputation: 0
Postfix how to set outgoing interface/IP?


I am trying to get postfix to send outgoing mail on a specific interface / IP address. I can find lots of info on how to set the outgoing domain, but that is working fine.

Our system hosts 2 domains, dqzone.com on 72.18.192.214 and dqsoft.com on 72.18.192.215. When I send mail using postfix -f it uses the first interface available which is the 214 address. Unfortunately, I want outgoing mail to all be from dqsoft.com which uses the 215 address, not the default 214 address.

Since the reverse IP lookup for 214 is not dqsoft.com, this causes us to get flagged by some spam programs causing delivery issues.

I have searched the docs and can find a mydomainname= directive for main.cf, but the only interface information I can find is for proxy server stuff which is not what I need.

To clarify, an email header from something I send currently shows:

Quote:
Received: from dqsoft.com (72.18.192.214)
by mailgate.cesmail.net with SMTP; 10 Feb 2007 18:43:47 -0000
Received: from dqsoft.com (localhost.localdomain [127.0.0.1])
(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
(No client certificate requested)
by dqsoft.com (Postfix) with ESMTP id 9EF8F8207
for <chrisw@spamcop.net>; Sat, 10 Feb 2007 11:43:46 -0700 (MST)
Message-Id: <200702101843.l1AIhj46020450@dqsoft.com>
I want it to show:

Quote:
Recieved: from dqsoft.com (72.18.192.215)
...
Blitzkrieg ('tanks in advance!)
Christopher
 
Old 02-10-2007, 01:50 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you need to explain your network topology really. if you're doing things correctly, then this is nothing to do with postfix or the server it is running on, it's down to your internet edge device - hopefully a firewall, where these IP addresses live. if for some unholy reason those internet ip's are on the server themselves [shudder] then you should be able to do some postrouting natting on the box with iptables without too much trouble.
 
Old 02-10-2007, 02:05 PM   #3
spadesmaster
LQ Newbie
 
Registered: Dec 2001
Posts: 8

Original Poster
Rep: Reputation: 0
Both 214 and 215 IPs are both on the same server. It looks like this:

eth0 Ethernet 72.18.192.214 255.255.255.0
eth0:1 Ethernet (Virtual) 72.18.192.215 255.255.255.0

I suppose I could swap the IPs on the virtual and default, but that scares me a bit when all I really need is for the outgoing mail to go out on 215 instead of 214? I know we have some other custom servers that run on 214 that I would then have to reconfigure to listen on 215 instead...

Are you saying ALL outbound traffic is from 214 since 215 is only a virtual port and it is impossible to get mails to show as coming from 215 instead of 214?

Last edited by spadesmaster; 02-10-2007 at 02:07 PM.
 
  


Reply

Tags
fedora, interface, postfix



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
Outgoing connections on port 25 => refused, postfix? kingfisher Linux - Networking 8 01-25-2007 01:53 AM
postfix outgoing port ? taiwf Linux - Software 4 07-06-2006 10:59 AM
Outgoing Only mail server using Postfix opnsrc Linux - Networking 0 06-15-2006 10:37 AM
Postfix - Don't masquerade Local only Outgoing mail... Help please... Vince0000 Linux - General 2 11-27-2003 09:08 AM
Routing outgoing mail on a dual external interface system with sendmail Dewar Linux - Networking 5 11-19-2003 03:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration