Народ подскажите.в связке postfix clamsmtpd clamd на выходе текстовое письмо с Content-Transfer-Encoding: 8bit в почтовый ящик попадает письмо как Content-Transfer-Encoding: quoted-printable, где указать чтоб не трогали Content-Transfer-Encoding?
master.cf
# For injecting mail back into postfix from the filter
localhost:10026
inet n - n - 16 smtpd
-o content_filter=
-o receive_override_options = no_unknown_recipient_checks,no_header_body_checks
-o smtpd_helo_restrictions=
-o smtpd_client_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
-o smtpd_authorized_xforward_hosts=127.0.0.0/8
>Народ подскажите.
>
>в связке postfix clamsmtpd clamd на выходе текстовое письмо с Content-Transfer-Encoding: 8bit
>в почтовый ящик попадает письмо как Content-Transfer-Encoding: quoted-printable, где указать чтоб
>не трогали Content-Transfer-Encoding?
>
>master.cf
>
># For injecting mail back into postfix from the filter
>localhost:10026
> inet n
> -
> n -
> 16 smtpd
> -o content_filter=
> -o receive_override_options = no_unknown_recipient_checks,no_header_body_checks
>
> -o smtpd_helo_restrictions=
> -o smtpd_client_restrictions=
> -o smtpd_sender_restrictions=
> -o smtpd_recipient_restrictions=permit_mynetworks,reject
> -o mynetworks=127.0.0.0/8
> -o smtpd_authorized_xforward_hosts=127.0.0.0/8
-o strict_rfc821_envelopes=yesПопробуй это добавить. У меня с этой позицией проблем нет такого плана.
>Народ подскажите.
>
>в связке postfix clamsmtpd clamd на выходе текстовое письмо с Content-Transfer-Encoding: 8bit
>в почтовый ящик попадает письмо как Content-Transfer-Encoding: quoted-printable, где указать чтоб
>не трогали Content-Transfer-Encoding?
>
>master.cf
>
># For injecting mail back into postfix from the filter
>localhost:10026
> inet n
> -
> n -
> 16 smtpd
> -o content_filter=
> -o receive_override_options = no_unknown_recipient_checks,no_header_body_checks
>
> -o smtpd_helo_restrictions=
> -o smtpd_client_restrictions=
> -o smtpd_sender_restrictions=
> -o smtpd_recipient_restrictions=permit_mynetworks,reject
> -o mynetworks=127.0.0.0/8
> -o smtpd_authorized_xforward_hosts=127.0.0.0/8-o strict_rfc821_envelopes=yes
попробуй сей ключ - у меня с ним проблем не было
P.S.: че-то форум глючитб повторому кругу отправляю
>> -o content_filter=
>> -o receive_override_options = no_unknown_recipient_checks,no_header_body_checks
>>
>> -o smtpd_helo_restrictions=
>> -o smtpd_client_restrictions=
>> -o smtpd_sender_restrictions=
>> -o smtpd_recipient_restrictions=permit_mynetworks,reject
>> -o mynetworks=127.0.0.0/8
>> -o smtpd_authorized_xforward_hosts=127.0.0.0/8
>
> -o strict_rfc821_envelopes=yes
>
>попробуй сей ключ - у меня с ним проблем не было
>P.S.: че-то форум глючитб повторому кругу отправляюдобавил, не помогает, также:
Content-Transfer-Encoding: quoted-printable
X-AV-Checked: ClamAV using ClamSMTP
>=FA=C4=D2=C1=D7=D3=D4=D7=D5=CA=D4=C5
[...]
>Народ подскажите.
>
>в связке postfix clamsmtpd clamd на выходе текстовое письмо с Content-Transfer-Encoding: 8bit
>в почтовый ящик попадает письмо как Content-Transfer-Encoding: quoted-printable, где указать чтоб
>не трогали Content-Transfer-Encoding?
>
>master.cf
>
># For injecting mail back into postfix from the filter
>localhost:10026
> inet n
> -
> n -
> 16 smtpd
> -o content_filter=
> -o receive_override_options = no_unknown_recipient_checks,no_header_body_checks
>
> -o smtpd_helo_restrictions=
> -o smtpd_client_restrictions=
> -o smtpd_sender_restrictions=
> -o smtpd_recipient_restrictions=permit_mynetworks,reject
> -o mynetworks=127.0.0.0/8
> -o smtpd_authorized_xforward_hosts=127.0.0.0/8-o strict_rfc821_envelopes=yes
попробуй сей ключ - у меня с ним проблем не было
P.S.: че-то форум глючитб повторому кругу отправляю
#!/bin/sh
#
# ClamAV script;
#
# original by Deives Michellis "thefallen" - dmichellis@yahoo.com | thefallen@unitednerds.org
# report like DrWEB by gonza@techline.ru
#
# set "ScanMail no" in clamav.conf
#
# chmod 0755 clamav-filter.sh
# mkdir /var/spool/clamav/queue
# chown clamav:clamav /var/spool/clamav/queue
#
# master.cf
# smtp inet n - n - - smtpd
# -o content_filter=clamav:clamav
#
#clamav unix - n n - - pipe
# flags=Rq user=clamav argv=/usr/local/bin/clamav-filter.sh -f ${sender} -- ${recipient}
#
#
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
#
# Config
#
MYHOSTNAME="techline.ru"
INSPECT_DIR=/var/spool/clamav/queue
SENDMAIL="/usr/sbin/sendmail -i "
AVCMD="/usr/local/bin/clamdscan --disable-summary --stdout"
#
NOTIFY_RCPT=yes
NOTIFY_POSTMASTER=yes
NOTIFY_SENDER=no
#
# Exit codes <sysexits.h>
#
EX_TEMPFAIL=75
EX_UNAVAILABLE=69
EX_DENIED=77
#
# Definicoes dos nomes temporarios
#
nome_arquivo=`date +%Y%m%d%H%M%S`
nome_arquivo=in.$$.$nome_arquivoviruscan() {
VIRUS=`$AVCMD $nome_arquivo`
SAIDA=$?VIRUS=`echo $VIRUS | cut -d" " -f2-`
if [ $SAIDA -eq 1 ]; then
postlog -t postfix/clamav-filter message-id=$msgid reject: VIRUS $VIRUS from=\<$from\> to=\<$rcpts\> 2>/dev/nullif [ "$NOTIFY_RCPT" = "yes" ]; then
echo "From: ClamAV-DAEMON <MAILER-DAEMON@$MYHOSTNAME>
Subject: Undelivered mail:$subj
To: $rcptsDear User,
the message sent to you by $from (may be forged) with following
attributes has not been delivered, because contains an infected object.Antivirus filter report:
--- ClamAV report ---
VIRUS $VIRUS
--- ClamAV report ------
Antivirus service provided by Clam AntiVirus Daemon for Unix
http://www.clamav.net/" | $SENDMAIL -f MAILER-DAEMON -- $rcpts
fiif [ "$NOTIFY_SENDER" = "yes" ]; then
echo "From: ClamAV-DAEMON <MAILER-DAEMON@$MYHOSTNAME>
Subject: Undelivered mail:$subj
To: $fromDear User,
the message with following attributes has not been delivered,
because contains an infected object.Sender = $from (may be forged)
Recipients = $rcpts
Subject =$subj
Message-ID = $msgidAntivirus filter report:
--- ClamAV report ---
VIRUS $VIRUS
--- ClamAV report ------
Antivirus service provided by Clam AntiVirus Daemon for Unix
http://www.clamav.net/" | $SENDMAIL -f MAILER-DAEMON -- $from
fiif [ "$NOTIFY_POSTMASTER" = "yes" ]; then
echo "From: ClamAV-DAEMON <MAILER-DAEMON@$MYHOSTNAME>
Subject: A VIRUS HAS BEEN DETECTED !!!
To: "AV-Administrator" <postmaster@$MYHOSTNAME>Dear Postmaster,
the message with following attributes has not been delivered,
because contains an infected object.Sender = $from (may be forged)
Recipients = $rcpts
Subject =$subj
Message-ID = $msgidAntivirus filter report:
--- ClamAV report ---
VIRUS $VIRUS
--- ClamAV report ------
Antivirus service provided by Clam AntiVirus Daemon for Unix
http://www.clamav.net/" | $SENDMAIL -f MAILER-DAEMON -- postmaster@$MYHOSTNAME
fiexit 0;
fi
}
#
# Clean up when done or when aborting.
#
trap "rm -rf $nome_arquivo*" 0 1 2 3 15
#
# Start processing.
#
cd $INSPECT_DIR || { echo $INSPECT_DIR does not exist; exit $EX_TEMPFAIL; }cat >$nome_arquivo || { echo Cannot save mail to file; exit $EX_TEMPFAIL; }
from=$2
if [ "$from" != "--" ]; then
shift
else
$from=""
fishift ; shift
dominio=`echo $from | cut -d"@" -f2`
email=`echo $from | cut -d"@" -f1`
subj=`head -n 200 $nome_arquivo | grep -i "^Subject:" | cut -d":" -f2- | head -n 1`
msgid=`head -n 200 $nome_arquivo | grep -i "^message-id" | cut -d: -f 2- | sed 's/^ *//' | head -n 1`saida="-f $from -- $@"
rcpts=$@viruscan
$SENDMAIL $saida < $nome_arquivo
exit 0
INTEGRANDO O POSTFIX COM O CLAMAV