Tutorial - Add List-Unsubcribe Header on Postfix | Vevioz Developers

Tutorial Add List-Unsubcribe Header on Postfix

DevOps

Linux Systems Engineer
Joined
Oct 18, 2019
Messages
211
Reaction score
20
Points
18
Location
Novosibirsk, Russia
Website
addons.vevioz.com
Offline
Add unsubscribe header to postfix

Edit the file /etc/postfix/main.cf , then add header_checks or edit if it already exists.

Code:
nano /etc/postfix/main.cf

header_checks = regexp:/etc/postfix/list_unsub_header

list-unsubcribe-header-postfix.png

Create a file /etc/postfix/list_unsub_header , then add the following line:
Code:
nano /etc/postfix/list_unsub_header

/^Content-Transfer-Encoding:/i PREPEND List-Unsubscribe: mailto:?subject=unsubscribe>"

Restart postfix service
Code:
service postfix restart

Check with mail-tester.com
list-unsubcribe-header-postfix-with-mail-tester-1024x271.png
 
Top Bottom