SMTPのポートの変更 †
BINDするIPアドレスの指定 †
clamavに対応 †clamsmtpを使う /etc/postfix/master.cfに以下を追加 †# for clamsmtp scan unix - - n - 16 smtp -o smtp_send_xforward_command=yes 192.168.10.1: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_style=host -o smtpd_authorized_xforward_hosts=192.168.10.0/24 /etc/postfix/main.cfに以下を追加 †content_filter = scan:192.168.10.1:10025 (clamsmtpdのポート) receive_override_options = no_address_mappings /etc/clamsmtpd.confの以下の項目を編集 †OutAddress: 192.168.10.1:10026 (スキャン後に送りつけるsmtpサーバ) Listen: 192.168.10.1:10025 (スキャンするメールを待ち受けるポート) メッセージキューの最大サイズの変更 †main.cfに以下を記述(デフォルトは10MB) message_size_limit = 10240000 |