LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 06-03-2009, 07:04 AM   #1
r.bhange
LQ Newbie
 
Registered: Mar 2009
Posts: 18

Rep: Reputation: 0
forward outgoing smtp traffic from linux mail server to window machine using iptables


hello all,

In my sendmail setup, i have linux mail server and windows antivirus server. I am able to send mail directly to Internet. but i want the mail should go first to windows antivirus server and then outer world.

my basic problem to make communication from mail server smtp traffic with windows machine.

basically the mail path would be mail server ---> antivirus server----> firewall---> Internet.
i have done all the setting but unable to use iptables rule for doing this.

i dont want to use SMART_HOST feature from sendmail it create some problem.

I want to used iptable forwarding or output rule for that.
I dont know how to set that rule.

kindly give me hint.

I am expecting lot from this forum.

thanks
 
Old 06-03-2009, 07:17 AM   #2
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
I'd suggest that you're asking for trouble - if it would work at all. The problem is you'd be interfering with higher level protocols that may have some expected responsed that would be inaccurate. If the local system is trying to connect directly to a host with a specific FQDN, and your local mail server is intercepting that transaction, wierd things might happen. I'm speculating, but it just doesn't sound like a good idea.

A Smarthost is the RFC compliant and best practice for this requirement. Perhaps you should explain what problems you expect from using this method so we can help you resolve that issue and give you a solid solution.

Last edited by JulianTosh; 06-03-2009 at 07:18 AM.
 
Old 06-04-2009, 12:39 AM   #3
r.bhange
LQ Newbie
 
Registered: Mar 2009
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Admiral Beotch View Post
I'd suggest that you're asking for trouble - if it would work at all. The problem is you'd be interfering with higher level protocols that may have some expected responsed that would be inaccurate. If the local system is trying to connect directly to a host with a specific FQDN, and your local mail server is intercepting that transaction, wierd things might happen. I'm speculating, but it just doesn't sound like a good idea.

A Smarthost is the RFC compliant and best practice for this requirement. Perhaps you should explain what problems you expect from using this method so we can help you resolve that issue and give you a solid solution.

Thanks for your reply.

My basic problem is with sendmail server, in the smart host feature i use xyz ; is hostname of other pc. while sending email to other at that time it keep this xyz as hostname of the mail server i.e helo xyz.

I want to change it .Instead of this xyz it should display my real domain name like abc.a.in.

so think if i am able to send my smtp traffic to other pc without using smart host feature
the xyz is mail scanner system.
i test using sending mail to this id check-auth@verifier.port25.com.

it show different hostname.

if send email without using smarthost then it show correct hostname.

i hope u understand my problem.

thanks
 
  


Reply


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
iptables to forward mysql traffic to another server mycoolwater Linux - Newbie 5 02-20-2009 01:22 AM
iptables: forward traffic through server Swakoo Linux - Networking 3 03-30-2008 11:59 PM
Forward SMTP to another server (SuSE with iptables) baetmaen Linux - Security 2 02-11-2006 02:05 PM
Iptables - Redirecting Outgoing Traffic Frankablu Linux - Networking 1 06-12-2005 01:18 PM
How to implement a SMTP server for outgoing mail? Nerox Programming 1 07-02-2004 03:43 AM


All times are GMT -5. The time now is 03:42 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration