From: Magnus Bäck (no email)
Date: Mon Jul 12 2004 - 12:00:22 EDT
On Monday, July 12, 2004 at 17:33 CEST,
Laurence Moughan <> wrote:
> master.cf
> serverml1:smtp inet n - n - - smtpd
> -o content_filter=dfilt:
>
> dfilt unix - n n - - pipe
> flags=Rq user=filter argv=/etc/postfix/footer.sh -f ${sender} --
> ${recipient}
>
> using altermime
>
> to
>
> /usr/local/bin/altermime --input=in.$$
> --disclaimer=/etc/postfix/footer.txt |
>
> to append txt to end of outbound mails
>
> Now this appends the footer to ALL outbound mails.
Note: Postfix has no concept of "inbound" and "outbound" mail.
> is it possible to restrict this to certain outbound mails by thier
> mail from: or reply to: address ?
Use the FILTER action in an access map (e.g. check_sender_access)
or in header_checks.
main.cf:
header_checks = pcre:/path/to/file
/path/to/file:
/^Reply-To: blah blah/ FILTER dfilt:
-- Magnus Bäck
|
|
|