[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Solved] One postfix queue for mail sent via different accounts?



On Sat, Jan 29, 2005 at 10:41:49PM +0100, Andreas Rippl wrote:
> Hi list,
> 
> I have played around with this for a bit and have not come up with a
> satisfying solution:
> 
> I have a Debian Sarge snapshot (from last Dec.) which is used
> by User A (me) and User B (my girlfriend). I am using
> mutt+fetchmail+postfix+procmail to do my mailing while she is using
> evolution (local mbox for retrieval, comes together with my mail over
> fetchmail and smtp to the mail provider for sending). 
> Now, I would like to be able to use postfix with both my mailqueue 
> (which I already do) and with her queue (which currently goes out 
> directly from within evolution).
> 
> The problem is that we are both with the same mail provider, and using
> postfix-tls, I don't seem to be able set up two accounts with the same 
> provider. Googling around, I read that this is not possible at all, 
> as postfix as an MTA is not the right place to separate the different 
> origins. I also tried cutting out the relayhost altogether, but as I am
> on dialup, mail is (understandably) always rejected by the recipient.
> 
> To recap: I would like to two local users, who both use a mail account 
> with the same freemail provider, to use the same mail queue. This wish 
> is due to dialup, as I want to avoid having to actively send/receive mail 
> (from within evolution - the mutt way already works). Also, I am open to
> different solutions altogether. For example, I have not looked at exim,
> as I found the documentation not intuitive at all last time I looked.
> 
> Thanks for any hints,
> 
> Andreas

To follow myself up a little bit, I got the above problem solved - not
with postfix, but with masqmail. Masqmail is able to to send mail to
different mail providers depending on the sender. This is achieved via
routing files for each separate user. See 'man 5 masqmail.route' and
also 'man 5 masqmail.conf'. 

As a sidenote, using sendmail from evolution directly does not work, it
only results in a popup (Broken pipe). The way around here is to send 
mail via smtp to localhost.

Andreas



Reply to: