вообщем отвечу, получается, сам себе. Пришлось поправить скрипт /etc/postfix/disclaimer
#!/bin/sh
# Localize these.
INSPECT_DIR=/var/spool/filter
SENDMAIL=/usr/sbin/sendmail
# Exit codes from <sysexits.h>
EX_TEMPFAIL=75
EX_UNAVAILABLE=69
KOI8R="koi8-r"
UTF8="utf-8"
WIN1251="windows-1251"
# 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; }
myVariable=$(grep "charset=" in.$$)
if echo $myVariable | grep -q $KOI8R ; then
######################
/usr/local/bin/altermime --input=in.$$ \
--disclaimer=/etc/postfix/disclaimer-koi.txt \
--disclaimer-html=/etc/postfix/disclaimer-koi.txt \
--disclaimer-b64=/etc/postfix/disclaimer-koi.txt \
--xheader="X-Copyrighted-Material: Please visit http://www.company.com/privacy.htm" || \
{ echo Message content rejected; exit $EX_UNAVAILABLE; }
#####################
else
if echo $myVariable | grep -q $UTF8 ; then
######################
/usr/local/bin/altermime --input=in.$$ \
--disclaimer=/etc/postfix/disclaimer-utf.txt \
--disclaimer-html=/etc/postfix/disclaimer-utf.txt \
--disclaimer-b64=/etc/postfix/disclaimer-utf.txt \
--xheader="X-Copyrighted-Material: Please visit http://www.company.com/privacy.htm" || \
{ echo Message content rejected; exit $EX_UNAVAILABLE; }
#####################
else
if echo $myVariable | grep -q $WIN1251 ; then
######################
/usr/local/bin/altermime --input=in.$$ \
--disclaimer=/etc/postfix/disclaimer-win.txt \
--disclaimer-html=/etc/postfix/disclaimer-win.txt \
--disclaimer-b64=/etc/postfix/disclaimer-win.txt \
--xheader="X-Copyrighted-Material: Please visit http://www.company.com/privacy.htm" || \
{ echo Message content rejected; exit $EX_UNAVAILABLE; }
#####################
fi
fi
fi
$SENDMAIL -oi "$@" <in.$$
exit $?