Часть первая
Часть вторая
по первой части поставил, всё гуд, почта ходит и туда и обратно, вообщем всё работает.
далее ставлю по второй статье.
Почта не уходит, блочится на amavisd
Но это пока не так важно. Важно следующее.
Там почта из postfix-а отправляется в amavisd для проверки и оттуда уже в clamav
там есть такая настройка:
Теперь внесем изменения в файл master.cf. В самый конец добавим следующие строчкиКод: Выделить всё
smtp-amavis unix - - n - 2 smtp -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=yes -o disable_dns_lookups=yes -o max_use=20 127.0.0.1:10025 inet n - n - - smtpd -o content_filter= -o local_recipient_maps= -o relay_recipient_maps= -o smtpd_restriction_classes= -o smtpd_delay_reject=no -o smtpd_client_restrictions=permit_mynetworks,reject -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o mynetworks_style=host -o mynetworks=127.0.0.0/8 -o strict_rfc821_envelopes=yes -o smtpd_error_sleep_time=0 -o smtpd_soft_error_limit=1001 -o smtpd_hard_error_limit=1000 -o smtpd_client_connection_count_limit=0 -o smtpd_client_connection_rate_limit=0 -o receive_override_options=no_header_body_checks,no_unknown_recipient_checks
Перезапуститься postfix перезапустился. а далее, когда конекчусь по телнету на локалхост на порт 10025 вот такая ошибка:Перезапускаем postfix. И снова проверяем amavisdКод: Выделить всё
# /usr/local/etc/rc.d/postfix restart postfix/postfix-script: stopping the Postfix mail system postfix/postfix-script: starting the Postfix mail system # telnet localhost 10025 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 mail.sys-adm.org.ua ESMTP Postfix quit 221 2.0.0 Bye Connection closed by foreign host. # telnet localhost 10024 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 [127.0.0.1] ESMTP amavisd-new service ready mail from:<alex@sys-adm.org.ua> 250 2.1.0 Sender <alex@sys-adm.org.ua> OK rcpt to:<quota@sys-adm.org.ua> 250 2.1.5 Recipient <quota@sys-adm.org.ua< OK Data 354 End data with . Subject: Test1 - Clean message Hello world . 250 2.0.0 Ok: queued as E66F743 mail from: 250 2.1.0 Sender OK rcpt to: 250 2.1.5 Recipient OK data 354 End data with <CR><LF>.<CR><LF> Subject: Test 2 - Virus test pattern X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H* . 250 2.7.0 Ok, discarded, id=00950-02 - VIRUS: Eicar-Test-Signature quit 221 2.0.0 [127.0.0.1] amavisd-new closing transmission channel Connection closed by foreign host.
Код: Выделить всё
[root@novour /]# telnet localhost 10025
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
[root@novour /]#
на порт 10024 соединение проходит нормально:Код: Выделить всё
# telnet localhost 10025 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 mail.sys-adm.org.ua ESMTP Postfix quit 221 2.0.0 Bye Connection closed by foreign host.
Код: Выделить всё
[root@novour /]# telnet localhost 10024
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 [127.0.0.1] ESMTP amavisd-new service ready
quit
221 2.0.0 [127.0.0.1] amavisd-new closing transmission channel
Connection closed by foreign host.
[root@novour /]#
Подскажите, что за фигня. В чём грабли?
Пробовал переустановить и перезаписать заного конфиги. НЕ ПОМОГЛО!!!