List-Unsubscribe header

BillyS

Verified User
Joined
Jul 17, 2021
Messages
464
I would like to add a List-Unsubscribe header to outgoing emails. If someone could point me to the instructions, I would appreciated it. I did try searching both this forum and Google for this information.

I believe this is added to exim config and produces something of the form:

List-Unsubscribe: mailto:<sender-email-address>?subject=unsubscribe>"
 
Last edited:
Hello,

While I don't have a ready guide for this, I suggest starting from reading this https://www.exim.org/exim-html-curr...l/ch-access_control_lists.html#SECTaddheadacl and putting a add_header directive in /etc/exim.acl_check_message.pre.conf (as an example) using a correct syntax and format.

See an example from exim.conf:

Code:
#EDIT#46.1#T9653
  warn    condition       = ${if !def:h_Message-ID: {yes}{no}}
          message         = Adding Message-ID header because it is missing!
          add_header      = Message-ID: <GENERATED-WASMISSING-$message_exim_id@$primary_hostname>


So, that's up to you to make a working setup from these.
 
Back
Top