Page 1 of 1

Set Reply-To Header

Posted: Fri Sep 07, 2018 1:34 pm
by beli
Hello VestaCP-lovers!

How can i set a Reply-To-Header for a mail-account?

What i want to do is simulate a simple mailing-list like this:

1. setting up an e-mail account
2. adding members for the list to the forward-to section
3. todo: setting the reply-to header to the e-mail-account

without step 3 the reply will go to the original sender of the mail, of course ;-)


I found a solution on the web using exim ACL:
-----------------------------------
acl_smtp_rcpt = acl_rcpt
begin acl
acl_rcpt:
warn domains = !+local_domains
condition = ${lookup{$sender_address}lsearch{/path/salesmen.list}{yes}}
remove_header = Reply-to
add_header = Reply-to: [email protected]

warn domains = !+local_domains
condition = ${lookup{$sender_address}lsearch{/path/servicemen.list}{yes}}
remove_header = Reply-to
add_header = Reply-to: [email protected]
-------------------------------------


Looks well for me, but i don't want to break VestaCP's global exim config.
Is it possible to adopt this ACL under subdomain conf/mail/subdomain/?


Or any other ideas?

Greetings
Bernd