A python script to get mail from info@example.com and re-write the 'From"' Header as "From: John Doe via info at example.com '"
Go to file
2018-06-07 05:29:38 -07:00
LICENSE Initial Commit 2018-06-07 05:29:38 -07:00
README.md Initial Commit 2018-06-07 05:29:38 -07:00
rewrite_from.py Initial Commit 2018-06-07 05:29:38 -07:00

Rewrite 'From' Header

Description

A script to get mail from info@example.com and re-write the 'From"' Header as "From: John Doe via info at example.com noreply@example.com'"

Installation Instuctions

  • Place the script under /usr/local/sbin/rewrite_from.py.

  • Edit /etc/aliases:

info: "|/usr/local/sbin/rewrite_from.py"
  • Run the newaliases command.