Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Config. MTA to relay e-mails based on "From"-header [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
tobr
Guru
Guru


Joined: 29 May 2006
Posts: 330

PostPosted: Tue Aug 14, 2007 3:19 pm    Post subject: Config. MTA to relay e-mails based on "From"-heade Reply with quote

Hello,

I’ve got a bit of an unusual problem. I’d like my MTA (exim at the moment, but I don’t 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 I’d like it to send the e-mail via "smtp.gmail.com". I’d prefer this because then I didn’t have to configure every MUA I happen to use at the moment (I can’t decide :D ) 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 didn’t 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
View user's profile Send private message
overkll
Veteran
Veteran


Joined: 21 Sep 2004
Posts: 1249
Location: Austin, Texas

PostPosted: Tue Aug 14, 2007 5:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
tobr
Guru
Guru


Joined: 29 May 2006
Posts: 330

PostPosted: Wed Aug 15, 2007 9:23 am    Post subject: Reply with quote

I also found the following on the postfix web site: http://www.postfix.org/postconf.5.html#sender_dependent_relayhost_maps, which seems to be exactly what I want.

Thank you!
_________________
Please add [SOLVED] to your message title if your problem is solved.

Death to all blobs!
Back to top
View user's profile Send private message
GNUix
n00b
n00b


Joined: 06 Aug 2007
Posts: 35
Location: South Korea

PostPosted: Wed Aug 15, 2007 9:27 am    Post subject: Reply with quote

It could be accomplished relatively easy using Exim's ACL system.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum