詳解/etc/postfix下 main.cf 配置文件
postconf -n
#別名數(shù)據(jù)庫(kù)(postalias/newaliases 命令生成) alias_database = hash:/etc/postfix/aliases #別名表,列出local mda 所使用的別名數(shù)據(jù)庫(kù) alias_maps = hash:/etc/postfix/aliases #退回的郵件重新投遞的最長(zhǎng)時(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 #限制單封郵件的最大長(zhǎng)度,單位字節(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ù)庫(kù)的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)識(shí)符 setgid_group = postdrop # show_user_unknown_table_name = no #smtp 問候信息 smtpd_banner = $myhostname ESMTP $mail_name #當(dāng)客戶端引發(fā)錯(cuò)誤時(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 #啟動(dòng)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登錄身份的對(duì)應(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í)際收件地址”對(duì)應(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ù)庫(kù))
postalias /etc/postfix/aliases (創(chuàng)建或查詢別名數(shù)據(jù)庫(kù))
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 配置文件,希望對(duì)大家有所幫助,如果大家有任何疑問請(qǐng)給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對(duì)腳本之家網(wǎng)站的支持!
相關(guān)文章
Linux Crontab 獲取環(huán)境變量配置解析
這篇文章主要介紹了Linux Crontab 獲取環(huán)境變量的配置實(shí)例解析,需要的朋友可以參考下2018-02-02
RedHat linux 8.0下內(nèi)核編譯步驟和說明
RedHat linux 8.0下內(nèi)核編譯步驟和說明...2006-10-10
學(xué)習(xí)手冊(cè)--Linux基礎(chǔ)篇
Linux是一個(gè)非常優(yōu)秀的操作系統(tǒng),與MS-WINDOWS相比具有可靠、 穩(wěn)定、速度快等優(yōu)點(diǎn),且擁有豐富的根據(jù)UNIX版本改進(jìn)的強(qiáng)大功能。下面,作為一個(gè)典型的DOS 和WINDOWS用戶,讓我們一起來學(xué)習(xí)Linux的一些主要命令2021-07-07
詳解Ubuntu18.04下配置Nginx+RTMP+HLS+HTTPFLV服務(wù)器實(shí)現(xiàn)點(diǎn)播/直播/錄制功能
這篇文章主要介紹了Ubuntu18.04下配置Nginx+RTMP+HLS+HTTPFLV服務(wù)器實(shí)現(xiàn)點(diǎn)播/直播/錄制功能,本文給大家介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2020-07-07
Linux上搭建C/C++IDE開發(fā)環(huán)境
Linux上搭建C/C++IDE開發(fā)環(huán)境...2006-10-10
ubuntu16.04登錄后無dash,無啟動(dòng)欄launch,無menu bar只有桌面背景的快速解決辦法
今天打開電腦,與往常一樣輸入用戶名密碼登錄后,發(fā)現(xiàn)桌面上空空如也,啟動(dòng)欄launch,menu bar什么的都消失了,桌面上文件可以打開,但是無法拖動(dòng)位置,無法關(guān)閉,下面給大家分享ubuntu16.04登錄后無dash,無啟動(dòng)欄launch,無menu bar只有桌面背景解決辦法2017-04-04

