這是本文件的舊版!
http://www.postfix.org/postconf.5.html
debian 範例設定檔放在 /usr/share/postfix 中。
引用的變數不需要事先定義
myhostname = host.domain.com mydestination = $myhostname
mydestination = $myhostname myhostname = host.domain.com
所以上面兩種設定方式皆可
以空白、逗號、Tab區隔
可將設定值擺在外部檔案
mydestination = /etc/postfix/file
# 開頭為註解,只可放在每一行第一個字:
# 這是註解 hostname = test.test.com # 這是不合法的註解
inet_interfaces = all
myhostname = mail.abc.orz
mydomain = abc.orz
預設只接收和主機名稱相同的信件
mydestination = $myhostname, abc.orz, mail.abc.orz
message_size_limit = xxxx
單位為 byte 5120000 = 5MB
優先權大於 mynetworks_style
mynetworks = 1.2.3.4 5.6.7.8 mynetworks = 7.8.9.0/24 mynetworks = abc.orz # *.abc.orz
透過 dovecot 來認證使用者。
smtpd_sasl_type = dovecot smtpd_sasl_path = /var/run/dovecot/auth-client smtpd_sasl_auth_enable = yes smtpd_sasl_authenticated_header = yes smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_tls_cert_file=/etc/ssl/certs/dovecot.pem smtpd_tls_key_file=/etc/ssl/private/dovecot.pem smtpd_use_tls=yes smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
查詢尚未寄出的郵件
postqueue -p
queue_run_delay = 1000s # 5m, 1h, 7d, etc (5 min, 1 hour, 7day)
取得 postfix 原始檔,修改其中 src/bounce/bounce_notify_util.c 檔,然後重新編譯
/etc/postifx /etc/passwd /etc/shadow /etc/group /etc/gshadow /var/spool/mail
Postfix 技術手冊:http://books.google.com/books?id=H9yrO841raoC