Darvin Denmian wrote:
> Ralf,
> 
> I'm testing this using:
> 
> master.cf :
> 
> # Inbound
> 
> smtp      inet  n       -       -       -       -       smtpd -v
>    -o content_filter=filter:dummy
> 
> filter    unix  -       n       n       -       10      pipe
>     flags=Rq user=filter null_sender=
>     argv=/usr/bin/filter.sh -f ${sender} -- ${recipient}
> 
> 
> How can I apply something like this for outbound?
> 

unless you use a specific smtpd for outbound, the above applies to all
mail submitted via smtp. if you want this to apply to all mail,
including mail submitted via the sendmail command, just put the
content_filter= statement in main.cf. however, you can't do this if your
filter.sh resubmits mail via sendmail because you'd get an infinite loop.

Reply via email to