found a soulution for forwarding email to multiple smtp providers
(depending on your From: address)

assuming sendmail as mta and 2/more smtp hosts

1. everyone use pine/mozilla!
2. hack sendmail.cf
3. u tell me...

personally prefer mutt.. so i'll explain 2.
as php tellis pointed, use mailertable/relaying turned on. 
use relay_mail_from FEATURE and add the provider domains into access db
prb with them is rcpt based redirection.. we need sender based.
dont forget adding smtp server addr map in  mailertable
finally uglify sendmail.cf further by modifying the following lines in
ruleset Parse1 (the bottom half of ruleset 0) to:

# not local -- try mailer table lookup
R$+                             $: $1 | $&f
R$* <@ $+ > $* | $* @ $+        $: < $5 > $1 < @ $2 > $3        extract host name
# R$* <@ $+ > $*        $: < $2 > $1 < @ $2 > $3        extract host name

the 1st line is adds envelope from addr (remeber to set option in email
prog) to whatever addr is being parsed for mailertable lookup
2nd is modification of original 3rd line saying use sender host in place
of recipient host.

simple no?
flip side is actual relaying is funked! use ONLY in case ALL email is
forwarded to fixed smtp hosts.

--
the future is virtual



-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to