View previous topic :: View next topic |
Author |
Message |
tobr Guru
Joined: 29 May 2006 Posts: 330
|
Posted: Tue Aug 14, 2007 3:19 pm Post subject: Config. MTA to relay e-mails based on "From"-heade |
|
|
Hello,
Ive got a bit of an unusual problem. Id like my MTA (exim at the moment, but I dont insist on using it) to deliver mail in my LAN in the usual way but as soon as a "From"-header like "foobar@gmail.com" is used Id like it to send the e-mail via "smtp.gmail.com". Id prefer this because then I didnt have to configure every MUA I happen to use at the moment (I cant decide ) for all my e-mail addresses.
Is something like that even possible? Is the MTA the wrong "layer" to do it?
Thanks in advance for any answers/thoughts/ideas. Links to docs would also be appreciated, I didnt really know what to search for. _________________ Please add [SOLVED] to your message title if your problem is solved.
Death to all blobs!
Last edited by tobr on Wed Aug 15, 2007 9:23 am; edited 1 time in total |
|
Back to top |
|
|
overkll Veteran
Joined: 21 Sep 2004 Posts: 1249 Location: Austin, Texas
|
Posted: Tue Aug 14, 2007 5:23 pm Post subject: |
|
|
Postfix can do it. IMHO its the best SMTP server out there. You may not find an EXACT howto, but there are many howtos for this type of config with postfix on the net. I've combined at least 10 howtos into my postfix config over the years.
Try googling:
"postfix transport isp gmail password"
or
"postfix password maps"
One can map multiple domains and/or users to differnent smtp servers/relays with postfix.
Here's a couple of example howto's
http://linuxgazette.net/115/chirico1.html
http://wiki.slicehost.com/doku.php?id=authenticate_postfix_to_upstream_relay
They may not be exactly what you are looking for, but they do cover the gmail mapping/authentication part. |
|
Back to top |
|
|
tobr Guru
Joined: 29 May 2006 Posts: 330
|
|
Back to top |
|
|
GNUix n00b
Joined: 06 Aug 2007 Posts: 35 Location: South Korea
|
Posted: Wed Aug 15, 2007 9:27 am Post subject: |
|
|
It could be accomplished relatively easy using Exim's ACL system. |
|
Back to top |
|
|
|