[Esd-l] Sanitizing on Outgoing Mail
paul at cuenet.com
Fri Dec 7 12:39:01 PST 2001
On Sat, 8 Dec 2001, Howard Lowndes wrote:
> Now this is interesting. Does this work then if the alias is handling
> email coming in from an outside address and then causing the email to be
> sent on to another outside address. How does it know what address to send
> the email on to.
> On Fri, 7 Dec 2001, Paul Thomas wrote:
> > somealias: "|exec /usr/bin/procmail -m /etc/procmailrc"
Good eye, good eye! I forgot, as is, this does not cover forwarding.
The only forwarding I have in /etc/aliases doesn't care if it is
So the solution would be to have a .procmailrc in the home directory
of the recipient with a forwarding recipe (or whatever else might work
there), or, in /etc/aliases for forwarding, have a
'/etc/procmailrc.forwarding' file with something like the following
at the bottom of the recipe:
* ^From \/.*
|$SENDMAIL -oem -odq -oi -f "$MATCH" forward at address.com
You have to season to taste, YMMV. Maybe someone else has a variation
on this theme that makes it more straight forward, but as is, has worked
great for me so far and is easily extensible.
Calvin and Hobbes (Bill Watterson): "The surest sign that intelligent
life exists elsewhere in the universe is that it has never tried to contact
More information about the esd-l