You are not logged in.

#1 2004-10-08 20:22:19

hcman
Member
From: Missoula, MT/Zaandam, Netherla
Registered: 2003-06-10
Posts: 66

Exim4 rewrite rule for multiple email addresses

Hello,

I have Exim set up to handle my outgoing mail through my isp. This works great for a single user with one emailaddress. But now I want to use multiple accounts, i.e. send mail from Mutt using different From-addresses.

I can set almost all headers with folder-hooks from Mutt. Exim however, keeps rewriting the Return-Path hdr to the same address. Is there a way to have Exim use a different Return-Path depending on which address (account) I want to use?

My exim.conf:

*@hostname    ${lookup{$1}lsearch{/etc/email-addresses}
                                                                            {$value}fail} Ffs                                                                                                                                                                                                                                                            

My /etc/email-addresses:

user:           user@domain.com

(The values above are examples of course)

Arjan

Offline

#2 2004-11-01 07:44:20

hcman
Member
From: Missoula, MT/Zaandam, Netherla
Registered: 2003-06-10
Posts: 66

Re: Exim4 rewrite rule for multiple email addresses

Figured this out a while ago and I thought I'd post back.

Simply use exim with the -f option to set the return-path.
I do this from Mutt on a per folder basis using folder hooks., e.g. add this yo your muttrc:

folder-hook     example-folder      'set sendmail="/usr/sbin/exim -f example@domain.com"'

Arjan

Offline

Board footer

Powered by FluxBB