欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

詳解/etc/postfix下 main.cf 配置文件

 更新時(shí)間:2018年07月10日 09:59:58   作者:feiquan  
這篇文章主要介紹了linux下/etc/postfix下 main.cf 配置文件,非常不錯,具有一定的參考借鑒價(jià)值,需要的朋友可以參考下

postconf -n

#別名數(shù)據(jù)庫(postalias/newaliases 命令生成) 
alias_database = hash:/etc/postfix/aliases
#別名表,列出local mda 所使用的別名數(shù)據(jù)庫 
alias_maps = hash:/etc/postfix/aliases
#退回的郵件重新投遞的最長時(shí)間 
bounce_queue_lifetime = 1d
#支持非標(biāo)準(zhǔn)驗(yàn)證規(guī)定的行為 
broken_sasl_auth_clients = yes
#postfix命令目錄 
command_directory = /usr/sbin
#postfix配置文檔目錄 
config_directory = /etc/postfix
#配置內(nèi)容過濾 amavis 
content_filter = smtp-amavis:[127.0.0.1]:10024
#postfix 的各個(gè)服務(wù)器程序目錄 
daemon_directory = /usr/libexec/postfix 
# 
data_directory = /var/lib/postfix 
# 
debug_peer_level = 2
#重復(fù)郵件 
enable_original_recipient = no 
# 
html_directory = /usr/share/doc/postfix-2.6.2-documentation/html 
# 
mail_name = Postfix – welcome mail.xmall.com
#以此參數(shù)指定的系統(tǒng)賬戶,作為隊(duì)列文件的擁有者以及postfix daemon 進(jìn)程的運(yùn)行身份 
mail_owner = postfix
#單封郵件大小限制,單位字節(jié) 
mailbox_size_limit = 150242880
# 
mailq_path = /usr/bin/mailq.postfi
#manpage 目錄 
manpage_directory = /usr/share/man
#postfix在放棄投遞而返回不可投遞信息前,被延遲郵件再deferred郵件隊(duì)列中的生存時(shí)間 
maximal_queue_lifetime = 1d
#限制單封郵件的最大長度,單位字節(jié) 
message_size_limit = 150242880
#設(shè)置”本地網(wǎng)域” 
mydestination = $mynetworks $myhostname
#完整主機(jī)名稱(主機(jī)名稱+網(wǎng)域名稱) 
myhostname = mail.xmall.com
#郵件系統(tǒng)的網(wǎng)域名稱 
mydomain = xmall.com
#附加到只含人名部分的,不完整郵件地址的網(wǎng)域名稱 
myorigin
#列出可通過本郵件系統(tǒng)寄出郵件的網(wǎng)絡(luò)地址或ip地址 
mynetworks = 127.0.0.1
#兼容sendmail,用于重建別名數(shù)據(jù)庫的newaliases程序路徑 
newaliases_path = /usr/bin/newaliases.postfix
#postfix 隊(duì)列的主目錄 
queue_directory = /var/spool/postfix 
# 
readme_directory = /usr/share/doc/postfix-2.6.2-documentation/readme 
# 
receive_override_options = no_address_mappings
#樣本配置文件目錄 
sample_directory = /etc/postfix
#供腳本或命令行用來寄送郵件 
sendmail_path = /usr/sbin/sendmail.postfix
#用來提交郵件或管理隊(duì)列的組標(biāo)識符 
setgid_group = postdrop
# 
show_user_unknown_table_name = no
#smtp 問候信息 
smtpd_banner = $myhostname ESMTP $mail_name
#當(dāng)客戶端引發(fā)錯誤時(shí),postfix 的初始等待時(shí)間 
smtpd_error_sleep_time = 0s
#收件人限制條件 
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unauth_destination, reject_unauth_pipelining, reject_invalid_hostname, check_policy_service inet:127.0.0.1:10030
#啟動sasl 驗(yàn)證 
smtpd_sasl_auth_enable = yes
# 
smtpd_sasl_local_domain = $myhostname
#指定密碼驗(yàn)證機(jī)制(除noanonymous) 所有可用機(jī)制 
smtpd_sasl_security_options = noanonymous
#設(shè)定寄件地址與sasl登錄身份的對應(yīng)關(guān)系,只能使用本域地址避免使用其他寄件地址! 
smtpd_sender_login_maps = mysql:/etc/postfix/mysql_virtual_sender_maps.cf, mysql:/etc/postfix/mysql_virtual_alias_maps.cf
#發(fā)件人限制條件 
smtpd_sender_restrictions = permit_mynetworks, reject_sender_login_mismatch, reject_authenticated_sender_login_mismatch, reject_unauthenticated_sender_login_mismatch
# 
unknown_local_recipient_reject_code = 550
#指向含有“虛擬別名地址”與“實(shí)際收件地址”對應(yīng)關(guān)系的查詢表 
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
#虛擬網(wǎng)域查詢表 
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
#虛擬郵箱查詢表 
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
#用于投遞郵件到虛擬郵箱地址的默認(rèn)傳輸服務(wù)(虛擬mda) 

virtual_transport = maildrop:

維護(hù) postfix 的命令

newaliases (重建別名數(shù)據(jù)庫)
postalias /etc/postfix/aliases (創(chuàng)建或查詢別名數(shù)據(jù)庫)
postconf (修改 main.cf 配置文檔 )
postqueue (査看postfix隊(duì)列)
postsuper (管理員管理 postfix 隊(duì)列)

postconf命令常用參數(shù)

postfix的main.cf配置文件一般不直接編輯,而多使用postconf命令來配置‘

postconf -d:查看默認(rèn)配置;

postconf -n:查看當(dāng)前配置(即當(dāng)前生效的配置);

postconf -e mydomain=mail.baidu.com:配置某一參數(shù)

------------------------------------

postconf -m:查詢出 postfix 支持哪些類型的查詢表

總結(jié)

以上所述是小編給大家介紹的/etc/postfix下 main.cf 配置文件,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時(shí)回復(fù)大家的。在此也非常感謝大家對腳本之家網(wǎng)站的支持!

相關(guān)文章

最新評論