Skip to content

Rage Against the Shell

Linux tips and other things…

  • Home
  • Contact
  • Privacy Policy

Show subject in postfix logs

Posted on October 4, 2015 - September 18, 2016 by Mr. Reboot

To show the subject of the emails in the postfix log you can use the header_checks parameter.

In the main.cf file add:

header_checks = regexp:/etc/postfix/header_checks

And in the file /etc/postfix/header_checks add:

/^Subject:/ WARN

Then restart postfix:

~ $ /etc/init.d/postfix restart
Posted in Postfix

Post navigation

Restore mysql master-master replication
Generate a self-signed SSL cert

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

Calendar

October 2015
M T W T F S S
 1234
567891011
12131415161718
19202122232425
262728293031  
« Sep   Nov »

Categories

  • Apache
  • Cisco
  • Command line
  • Distros
  • Dovecot
  • File systems
  • Gadgets
  • GlusterFS
  • MySQL
  • Nginx
  • NTP
  • Opendkim
  • Pacemaker + Corosync
  • Postfix
  • Raspberrypi
  • SSH
  • SSL
  • Varnish

RSS RSS

  • Using qrencode January 16, 2022
  • Compile varnish module vmod_vsthrottle April 22, 2020
  • SSH vpn with sshuttle April 9, 2020
  • Disable swap in systemd December 16, 2019
  • Getting the parent process pid October 12, 2018
Proudly powered by WordPress | Theme: micro, developed by DevriX.