Группа :: Работа с файлами
Пакет: clamsmtp
Главная Изменения Спек Патчи Исходники Загрузить Gear Bugs and FR Repocop
п²п╟я│я┌я─п╬п╧п╨п╟ postfix
п▓ я└п╟п╧п╩ main.cf п╫п╣п╬п╠я┘п╬п╢п╦п╪п╬ п╢п╬п╠п╟п╡п╦я┌я▄ п╢п╡п╣ я│я┌я─п╬я┤п╨п╦:
content_filter = clamsmtp:127.0.0.1:10026
receive_override_options = no_address_mappings
п÷п╣я─п╡п╟я▐ пЁп╬п╡п╬я─п╦я┌ postfix'я┐ п╬ я┌п╬п╪, я┤я┌п╬ п╫п╣п╬п╠я┘п╬п╢п╦п╪п╬ п©п╣я─п╣я│я▀п╩п╟я┌я▄ п╡я│я▌ п©п╬я┤я┌я┐ я┤п╣я─п╣п╥
я│п╣я─п╡п╦я│ (я└п╦п╩я▄я┌я─) "clamsmtp" п╫п╟ 10026-я▀п╧ п©п╬я─я┌, п╨п╬я┌п╬я─я▀п╧, п╨п╟п╨ я─п╟п╥, п╬я┌п╨я─я▀я┌ clamsmtpd.
п▓я┌п╬я─п╟я▐ я│я┌я─п╬я┤п╨п╟ пЁп╬п╡п╬я─п╦я┌ п╬ я┌п╬п╪, я┤я┌п╬п╠я▀ postfix п╫п╣ п╢п╣п╩п╟п╩ п╫п╦п╨п╟п╨п╦я┘ п╪п╟п╫п╦п©я┐п╩я▐я├п╦п╧
я│ п╟п╢я─п╣я│п╟п╪п╦ п╢п╬ я┌п╬пЁп╬, п╨п╟п╨ п╬п╫п╦ п╢п╬п╧п╢я┐я┌ п╢п╬ content_filter.
п▓ я└п╟п╧п╩ master.cf п╫п╣п╬п╠я┘п╬п╢п╦п╪п╬ п╢п╬п╠п╟п╡п╦я┌я▄ я│п╩п╣п╢я┐я▌я┴п╦п╣ я│я┌я─п╬п╨п╦:
# AV scan filter (used by content_filter)
clamsmtp unix - - n - 16 smtp
-o smtp_send_xforward_command=yes
# For injecting mail back into postfix from the filter
localhost:10025 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_style=host
-o smtpd_authorized_xforward_hosts=127.0.0.0/8