Re: Multiple e-mail personalities
On Thu, Oct 26, 2000 at 11:11:54PM -0500, Ryan Claycamp wrote:
> The problem is that I have several e-mail addresses that I want to use
> to send and receive mail with my home computer. I currently use mutt
> as my reader and exim as my transport. Does anyone know how to
> configure mutt to use multiple names and how to configure exim so it
> sees how the message is addressed and uses the smarthost for the right
> from address?
I've had this same problem but have always been putting off finding the
solution. I figured I needed to feed my From: address directly into
exim using the -f switch, and configure mutt to use -f when calling
sendmail (changing its sendmail line using folder hooks). However, the
address rewriting feature of exim proved a stumbling block, since it
rewrote it every time in my testing, despite using -f. Perhaps it's
possible and I simply wasn't approaching it in the right way.
In the end, I realised it was much simpler to go with merely what Brian
May posted, with the addition of a single line to your exim rewriting
rules. Previously I had just the following:
*@hoop ${lookup{$1}lsearch{/etc/email-addresses}\
{$value}fail} bcfrF
as my rewriting rule. Supposing you want to send sometimes as
pied@piper.com, I'd put something like:
pied@piper.com * bcfrF
before the generic rule, which tells exim not to rewrite addresses
matching the first field.
Using folder hooks as in Brian May's mail, just make sure your From:
header is set to pied@piper.com when you change to the appropriate
folders. Seems to work for me now,
--
loki
eloki/at/dingoblue.net.au
Dare I disturb the universe? You bet I do! :)
Reply to: