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 '"
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

381B

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.