[Esd-l] Sanitizing on Outgoing Mail

Paul Thomas 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
sanitized.

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:

        :0:
        * ^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.

Thanks,

--Paul T.

--
Calvin and Hobbes (Bill Watterson): "The surest sign that intelligent
life exists elsewhere in the universe is that it has never tried to contact
us."



More information about the esd-l mailing list