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.
Theodotos Andreou 0b9f69f28d Initial Commit 2 years ago
LICENSE Initial Commit 2 years ago
README.md Initial Commit 2 years ago
rewrite_from.py Initial Commit 2 years ago

README.md

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.