postfix

========== ========== ========== ========== ==========
/etc/postfix/aliases
========== ========== ========== ========== ==========
cd /etc/postfix/aliases
vi aliases

# Put your local aliases here.
->
# Put your local aliases here.
virusalert:     root
spamalert:      root

保存したら、
newaliases
を実行。

個人的な好みから言うと、
cd /etc/
mv aliases.db postfix
ln -s postfix/aliases.db .

といった感じ。次は、master.cfの編集。

========== ========== ========== ========== ==========
vi /etc/postfix/master.cf
========== ========== ========== ========== ==========
以下を最後の行の次に追加。それだけ。
保存できたら、
postfix reload

#
#
smtp-amavis unix –      –       y       –       2       smtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes
-o disable_dns_lookups=yes
#
127.0.0.1:10025 inet n  –       y       –       –       smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
-o smtpd_enforce_tls=no
-o strict_rfc821_envelopes=yes
-o smtpd_error_sleep_time=0
-o smtpd_soft_error_limit=1001
-o smtpd_hard_error_limit=1000
-o receive_override_options=no_header_body_checks

Author: Kumecchi

コメントを残す