DevOps
Linux Systems Engineer
- Joined
- Oct 18, 2019
- Messages
- 192
- Reaction score
- 17
- 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.
Create a file /etc/postfix/list_unsub_header , then add the following line:
Restart postfix service
Check with mail-tester.com
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
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