最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

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

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

postconf -n

#別名數(shù)據(jù)庫(postalias/newaliases 命令生成) 
alias_database = hash:/etc/postfix/aliases
#別名表,列出local mda 所使用的別名數(shù)據(jù)庫 
alias_maps = hash:/etc/postfix/aliases
#退回的郵件重新投遞的最長時間 
bounce_queue_lifetime = 1d
#支持非標準驗證規(guī)定的行為 
broken_sasl_auth_clients = yes
#postfix命令目錄 
command_directory = /usr/sbin
#postfix配置文檔目錄 
config_directory = /etc/postfix
#配置內容過濾 amavis 
content_filter = smtp-amavis:[127.0.0.1]:10024
#postfix 的各個服務器程序目錄 
daemon_directory = /usr/libexec/postfix 
# 
data_directory = /var/lib/postfix 
# 
debug_peer_level = 2
#重復郵件 
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)賬戶,作為隊列文件的擁有者以及postfix daemon 進程的運行身份 
mail_owner = postfix
#單封郵件大小限制,單位字節(jié) 
mailbox_size_limit = 150242880
# 
mailq_path = /usr/bin/mailq.postfi
#manpage 目錄 
manpage_directory = /usr/share/man
#postfix在放棄投遞而返回不可投遞信息前,被延遲郵件再deferred郵件隊列中的生存時間 
maximal_queue_lifetime = 1d
#限制單封郵件的最大長度,單位字節(jié) 
message_size_limit = 150242880
#設置”本地網(wǎng)域” 
mydestination = $mynetworks $myhostname
#完整主機名稱(主機名稱+網(wǎng)域名稱) 
myhostname = mail.xmall.com
#郵件系統(tǒng)的網(wǎng)域名稱 
mydomain = xmall.com
#附加到只含人名部分的,不完整郵件地址的網(wǎng)域名稱 
myorigin
#列出可通過本郵件系統(tǒng)寄出郵件的網(wǎng)絡地址或ip地址 
mynetworks = 127.0.0.1
#兼容sendmail,用于重建別名數(shù)據(jù)庫的newaliases程序路徑 
newaliases_path = /usr/bin/newaliases.postfix
#postfix 隊列的主目錄 
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
#用來提交郵件或管理隊列的組標識符 
setgid_group = postdrop
# 
show_user_unknown_table_name = no
#smtp 問候信息 
smtpd_banner = $myhostname ESMTP $mail_name
#當客戶端引發(fā)錯誤時,postfix 的初始等待時間 
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 驗證 
smtpd_sasl_auth_enable = yes
# 
smtpd_sasl_local_domain = $myhostname
#指定密碼驗證機制(除noanonymous) 所有可用機制 
smtpd_sasl_security_options = noanonymous
#設定寄件地址與sasl登錄身份的對應關系,只能使用本域地址避免使用其他寄件地址! 
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
#指向含有“虛擬別名地址”與“實際收件地址”對應關系的查詢表 
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
#用于投遞郵件到虛擬郵箱地址的默認傳輸服務(虛擬mda) 

virtual_transport = maildrop:

維護 postfix 的命令

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

postconf命令常用參數(shù)

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

postconf -d:查看默認配置;

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

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

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

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

總結

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

相關文章

最新評論

玉屏| 霞浦县| 福泉市| 本溪| 阳原县| 江源县| 吕梁市| 青川县| 衡东县| 临清市| 馆陶县| 安龙县| 云南省| 方正县| 灵山县| 隆林| 龙岩市| 贡嘎县| 宣武区| 宜春市| 永福县| 咸阳市| 阳曲县| 阜平县| 汽车| 农安县| 永清县| 彩票| 花莲县| 尖扎县| 奉节县| 蕲春县| 武城县| 江都市| 城步| 永德县| 正安县| 临桂县| 高碑店市| 岢岚县| 福海县|