台灣最大程式設計社群網站
線上人數
2752
 
會員總數:246575
討論主題:190032
歡迎您免費加入會員
討論區列表 >> Linux / Unix >> 如何關閉postfix open relay 避免被relay 呢
[]  
[我要回覆]
1
回應主題 加入我的關注話題 檢舉此篇討論 將提問者加入個人黑名單
如何關閉postfix open relay 避免被relay 呢
價值 : 30 QP  點閱數:7082 回應數:2
樓主

小島上的男人
初學者
92 79
1527 152
發送站內信

Dear 各位大大

小弟的postfix mail server 的main.cf 把註解殺掉後的設定如下

請問出了什麼問題

怎麼還是會被relay 呢

而且還被列為黑名單

拜託各位大大指導一下

感恩



command_directory = /usr/sbin

daemon_directory = /usr/libexec/postfix

mydomain = xxx.yyy.com.tw


inet_interfaces = all



mydestination = $myhostname, localhost.$mydomain ,localhost , yyy.com.tw

unknown_local_recipient_reject_code = 550

mynetworks_style = host

mynetworks = 192.168.7.0/24, 127.0.0.0/8,yyy.com.tw,


alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases

debug_peer_level = 2

debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5


sendmail_path = /usr/sbin/sendmail.postfix

newaliases_path = /usr/bin/newaliases.postfix

mailq_path = /usr/bin/mailq.postfix

setgid_group = postdrop

html_directory = no

manpage_directory = /usr/share/man

sample_directory = /usr/share/doc/postfix-2.4.5/samples smtpd_client_restrictions = hash:/etc/postfix/access, reject_rbl_client relays.ordb.org, reject_rhsbl_client dsn.rfc-ignorant.org permit

smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes


smtpd_recipient_restrictions =permit_mynetworks, permit_sasl_authenticated
smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated



smtpd_recipient_restrictions =

reject_unknown_sender_domain,

permit_mynetworks,
reject_unauth_destination,
permit_sasl_authenticated
smtpd_client_restrictions = permit_mynetworks, reject

smtpd_sender_restrictions = reject_unknow_sender_domain

smtpd_helo_restrictions = reject_unknown_helo_hostname


reject_rbl_client cbl.abuseat.org,
reject_rbl_client sbl.spamhaus.org,
reject_rbl_client pbl.spamhaus.org

smtpd_data_restrictions = reject_unauth_pipelining,



queue_run_delay=5m
message_size_limit=15000000
mailbox_size_limit=100000000

readme_directory = no
queue_directory = /var/spool/postfix
mail_owner = postfix
data_directory = /var/lib/postfix


本篇文章發表於2009-05-07 17:43
1樓
不錯的參考

那顆爛蔥
捐贈 VP 給 那顆爛蔥 檢舉此回應
http://phorum.study-area.org/index.php?topic=40443.30
http://linux.vbird.org/linux_server/0390postfix.php
http://www.postfix.org/SMTPD_ACCESS_README.html
本篇文章回覆於2009-05-08 01:38
== 簽名檔 ==
--未登入的會員無法查看對方簽名檔--
2樓
最有價值解答

towns
捐贈 VP 給 towns 檢舉此回應
你的確有關閉open relay的功能
mynetworks = 192.168.7.0/24, 127.0.0.0/8, yyy.com.tw
smtpd_recipient_restrictions =permit_mynetworks, permit_sasl_authenticated

先確定一下,relay的原因吧!
1.看看/var/log/maillog,有什麼異常寄送的情形
2.mailq 一下,看看是誰在寄信,是不是內部的人哦!

relay的原因不少,並不是說限制了relay的功能後,就不會被亂發信哦!
本篇文章回覆於2009-05-08 16:44
== 簽名檔 ==
--未登入的會員無法查看對方簽名檔--
   
1

回覆
如要回應,請先登入.