1

How can I configure exim header rewriting to take care of forgotten Reply-To: headers in emails leaving our company?

We want to have certain Reply-To: headers added to all official emails leaving the company. E.g. Reply-To: [email protected], Reply-To: [email protected], ...

A single person might get sick, take a day off, go on a vacation or something like this. The addresses mentioned as example Reply-To: addresses above are aliases which distribute the incoming replies from clients to a group of colleagues in order to make sure that somebody will read and act on them in a timely manner.

I've studied the filter section of the exim documentation but I still feel unable to apply this to my particular problem. A working example would be fine.

Our mail server is debian based and uses the so called split configuration scheme if this matters.

1
  • Headers can be added in the ACLs and routers by directive headers_add (ch.15 Exim spec). May be you have to check sender_address against some lists and then add the header.
    – Kondybas
    Feb 8, 2014 at 13:56

1 Answer 1

3
    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]
. . . . .

Lists are plaintext files with one email address per line

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .