Thursday, 29 May 2025

postfix

# Monitor postfix mail log
journalctl -u postfix -f

# list queue
postqueue -p

# Flush queue
postqueue -f

# Postfix rewrite from

  • cat /etc/postfix/sender_canonical_maps /.+/ email@yandex.com
  • cat /etc/postfix/header_check /From:.*/ REPLACE From: email@yandex.com
  • add to /etc/postfix/main.cf
    	sender_canonical_classes = envelope_sender, header_sender
    	sender_canonical_maps =  regexp:/etc/postfix/sender_canonical_maps
    	smtp_header_checks = regexp:/etc/postfix/header_check
    


TermRecord

TermRecord is a simple terminal session recorder with easy-to-share self-contained HTML output! TermRecord -o /tmp/session.html