View previous topic :: View next topic |
Author |
Message |
urbanskater n00b
Joined: 28 Jul 2005 Posts: 3 Location: Nürnberg, Germany
|
Posted: Thu Jul 28, 2005 10:28 pm Post subject: How to forward (outgoing) mail to different smtp-servers? |
|
|
Ok, here's my problem: I'm trying to install a local mailserver for me and some of my friends, who all have different webmail accounts at different webmail providers with different smtp-servers. We'll use courier-imap, IMP, fetchmail and some mta (not yet decided which).
It's apparently pretty easy to collect incoming mail from different pop3-accounts via fetchmail, but is there a way to do the reverse, i.e. to sort the outgoing mailqueue by sender adress and send the mails to the appropriate smtp-server. Some kind of reverse-fetchmail.
Ok, that was confusing I guess. Here's an example:
I have 3 users: user1, user2 and user3. Each of them has a local IMAP account (where fetchmail-ed messages go) and a webmail account with different webmail providers, say user1@xmail.com, user2@ymail.com and user3@zmail.com.
Here's how outgoing mail is supposed to go:
From
user1 -> local mta -> smtp.xmail.com (U:user1, PW:foo)
user2 -> local mta -> mail.ymail.com (U:user2, PW:bar)
user1 -> local mta -> smtpserver.zmail.com (U:user3, PW:stuff)
The tricky part is that I have different smtp-servers to relay mail to (with different usernames and pwds). All mtas I've looked into had only a setting for one smtp host to send mail to, anyone knows how I can do this?
Thanks!
Urbanskater
P.S.: I know this is more complicated than it needs to be, but I'm looking for a way so that my friends won't need to get new email adresses. _________________ Mac Mini 1,42 Ghz G4 / Mac OS X 10.4.2 (Tiger)
Powerbook G4 667 MHz / Mac OS X 10.4.2 (Tiger)
PowerMac G3 233 MHz / Mac OS X 10.2.8 (Jaguar)
PIII-450-Box / Gentoo Linux (2.6.12-r4) |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4735 Location: Angra do Heroísmo (PT)
|
Posted: Fri Jul 29, 2005 12:53 am Post subject: Re: How to forward (outgoing) mail to different smtp-servers |
|
|
urbanskater wrote: | P.S.: I know this is more complicated than it needs to be, but I'm looking for a way so that my friends won't need to get new email adresses. |
Hi.
Why do you think that sending the mail from your smtp server will force them to have more email addresses? If they already fetch the mail from your server, they just have to configure their MUA or the webmail cliente to use their old e-mail address for the from or better yet reply-to field, and when people reply, it will get to their old e-mail address.
Does this make sense?
PS - I didn't addressed your particular question, because I admit that I don't know the answer. _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
kashani Advocate
Joined: 02 Sep 2002 Posts: 2032 Location: San Francisco
|
Posted: Fri Jul 29, 2005 5:17 am Post subject: |
|
|
This might be what you're looking for. You will need to modify things a bit to get it to work... though I'm exactly sure that filter: is that powerful.
http://sbserv.stahl.bau.tu-bs.de/~hildeb/postfix/forward_selectively.shtml
I do however agree with jmbsvicetto that there doesn't appear to be any need to do it. The local mail server should be able to send the mails where they're supposed go regardless of the sender's address.
kashani _________________ Will personally fix your server in exchange for motorcycle related shop tools in good shape. |
|
Back to top |
|
|
|
|
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
|
|