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 5 年之前
LICENSE Initial Commit 5 年之前
README.md Initial Commit 5 年之前
rewrite_from.py Initial Commit 5 年之前

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.