#1  
Old 5th March 2007, 15:11
namit namit is offline
Member
 
Join Date: Jan 2006
Posts: 47
Thanks: 0
Thanked 1 Time in 1 Post
Default Sendmail Mail Routing

So i have sendmail running kind of and want to do the following.

I was looking around for mail routing tutorials/howtos but all i was getting was bits and bobs so if anyone can clear this up for me I would be really happy or point me in the right direction.

I have 2 servers and i want all the mail to come into 1st server then want it to forward a copy onto server 2 so that i can setup pop3 on server1 and imap on server2.

revise:
Server1 = pop3, receives all email
Server2 = imap, receives a copy threw mail routing

I know this is not the common practise but am mainly doing it to learn how mail routing works.

Thanks
Reply With Quote
Sponsored Links
  #2  
Old 6th March 2007, 12:39
alxgomz alxgomz is offline
Junior Member
 
Join Date: Nov 2006
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

lo

I'm not very familiar with sendmail (not at all in fact: I use postfix) but I know you can reroute mail to another machine using the percent hack (%) so I think on the first server you have a .forward file that reroute the mail to something like user%domain.tld@<IP of the second server> (maybe hostname instead of IP works).
I have it working on postfix and communigate pro mail servers but I know this is considered to be a mess (and it really is) but may help. If I were you I would use a shared storage device with 2 mail servers connected on it.

I Hope it will help
Reply With Quote
  #3  
Old 6th March 2007, 18:31
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,748 Times in 2,579 Posts
Default

Maybe you can do it with Postfix transports. Take a look at
Code:
man 5 transport
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 6th March 2007, 20:35
namit namit is offline
Member
 
Join Date: Jan 2006
Posts: 47
Thanks: 0
Thanked 1 Time in 1 Post
Default

alxgomz thanks for that

can you give me an example of what your config file looks like?
__________________
##############
Quicktips
*******************
Reply With Quote
  #5  
Old 6th March 2007, 21:55
alxgomz alxgomz is offline
Junior Member
 
Join Date: Nov 2006
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Well I'm sorry but I can't acces the conf files anymore...
But It was something like (It's for Postfix not Sendmail OK?!):
##########################
In /etc/postfix/main.cf
##########################
...
allow_percent_hack = yes
...
##########################

and in each home directory of your users (on the "master server") you have to put a .forward file wich look like this (let's say the user is toto, the domain titi.fr and the ip of your second server is 1.2.3.4):

##########################
in $HOME/.forward
##########################
toto%titi.fr@1.2.3.4
...
##########################

If I remember well this work (should work with sendmail using a similar syntax if only sendmail accept % notation)!
Check your mail.log
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 & mail forwarding loop varnik Server Operation 21 9th December 2008 16:13
Postfix reject connections gabrix Server Operation 27 25th January 2007 09:37
postfix-tls sasl2 mysql courier-authmysql gabrix Server Operation 4 12th January 2007 23:09
Core 4: Error Messages on Fresh Install re CTX/SSL jjw Installation/Configuration 30 6th September 2006 13:16
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs ebbay Installation/Configuration 9 4th March 2006 12:47


All times are GMT +2. The time now is 04:25.


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