| /Q0901 /Q0902 /Q0903 /Q0904 /Q0905 /Q0906 |
Q0901
Question
I would like add some custom headers to selected outgoing mail based on a specific domain and the subject line.
Answer
To the remote_smtp transport, add something like
headers_add = ${if and{\
{eq{$domain}{spec.dom}}\
{matches{$h_subject:}{whatever}} }\
{Content-Type: text/html; charset="us-ascii"} fail }This example shows a Content-Type: header, but you can have anything you like, and multiple headers can be inserted by using \n to separate them.
| /Q0901 /Q0902 /Q0903 /Q0904 /Q0905 /Q0906 |
