> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Benedict White
> Sent: Tuesday, June 20, 2006 12:01 PM
> To: [email protected]
> Subject: [AMaViS-user] Disclaimers.
> 
> 
> Hi, I found some information on disclaimers, (thanks Gary V 
> for the pointer)
> 
>
If you haven't set it up, try this:
(postfix: master.cf  you can set up different ip addresses, aliases, and
send 'local' email to one of them:

In this case, the default is to filter.
But, if coming in through 127.0.0.1 (already filtered, amavis->postfix
and back) no filter.

smtp      inet  n       -       n       -       -       smtpd
   -o content_filter=dfilt:
127.0.0.1:smtp inet n   -       n       -       -       smtpd

dfilt     unix    -       n       n       -       -       pipe
    flags=Rq user=filter argv=/usr/local/etc/postfix/disclaimer -f
${sender} -- ${recipient}

---/usr/local/etc/postfix/disclaimer is:
# Localize these.
INSPECT_DIR=/var/spool/filter
SENDMAIL=/usr/sbin/sendmail

# Exit codes from <sysexits.h>
EX_TEMPFAIL=75
EX_UNAVAILABLE=69

# Clean up when done or when aborting.
trap "rm -f in.$$" 0 1 2 3 15

# Start processing.
cd $INSPECT_DIR || { echo $INSPECT_DIR does not exist; exit
$EX_TEMPFAIL; }

cat >in.$$ || { echo Cannot save mail to file; exit $EX_TEMPFAIL; }

/usr/local/bin/altermime --input=in.$$ --htmltoo \
                   --disclaimer=/var/amavis/etc/disclaimer.txt \
                   --xheader="X-Confidential-Material: Please visit
http://www.secnap.com"; || \
                     { echo Message content rejected; exit
$EX_UNAVAILABLE; }

$SENDMAIL "$@" <in.$$

exit $?

-- 
Michael Scheidell, CTO
561-999-5000, ext 1131
SECNAP Network Security Corporation
Keep up to date with latest information on IT security: Real time
security alerts: http://www.secnap.com/news
 


_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to