John Bossert writes:

I want to strip the machine name for a specific user's email address, effectively changing

From: [EMAIL PROTECTED] to
From: [EMAIL PROTECTED]

leaving all other addresses alone.

maildropfilter(5) says (and empirical data seems to confirm) that any changes to the FROM variable within a mailfilter are not passed back to maildrop.

The FROM variable has nothing to do with the From: mail header.

Is there some other way I can accomplish this rewriting?

Generally, the sending mail client has complete control of the sender's return address. For mail submitted from a shell application, via the sendmail wrapper, some environment variables are available to set the From: header. See the sendmail man page for more info.


Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to