Download presentation
Presentation is loading. Please wait.
Published byRichard Wilkinson Modified over 9 years ago
1
CNL lab 4 Group 10
2
B97902059 資工三 趙祈鈞 Requirement p.1 ◦ Allow localhost and intranet sending email ◦ Reject unknown sender ◦ Allow internet sending email to the host && Email aliasing ◦ Email forwarding Bonus p.last ◦ Control sending rate and limit mail size ◦ Virus scanning of email
3
Allow localhost and intranet sending email /etc/bind/db.cnl2011-10.csie.org( 正解 ) @ IN MX 10 ms.cnl2011-10.csie.org. ms IN A 140.112.30.110 /etc/bind/db.140.112.30( 反解 ) 110 IN PTR ms.cnl2011-10.csie.org. 安裝 postfix & popa3d
4
Allow localhost and intranet sending email ( Cont. ) /etc/postfix/main.cf myhostname = ms.cnl2011-10.csie.org mydomain = cnl2011-10.csie.org mydestination = $myhostname,localhost,$mydomain, www.cnl2011-10.csie.org www.cnl2011-10.csie.org inet_interfaces = all $/etc/init.d/postfix reload ( 改完 /etc/postfix/main.cf 都要 postfix reload!)
5
Reject unknown sender /etc/postfix/main.cf smtpd_sender_restrictions = reject_unknown_sender_domain => 拒絕未知 domain name 寄來的信
6
Allow internet sending email to the host && Email aliasing /etc/aliases lab: cnl10 收信人寫 lab@cnl2011-10.csie.org 的信 收信人寫 lab@cnl2011-10.csie.org 會寄給 cnl10@cnl2011-10.csie.org@cnl2011-10.csie.org
7
Email forwarding cnl10: cnl10, b97902059@ntu.edu.tw, b97902xxx@ntu.edu.tw... b97902xxx@ntu.edu.tw => 寄給 cnl10 的信, b97902059… 等人 也會收到 改過 /etc/aliases 後 記得要 $newaliases
8
Bonus Part Bonus Part
9
Control the sending rate and limit the mail size of your mail agent 1.size:( 設為 5MB) /etc/postfix/main.cf message_size_limit = 5000000 如果信件大小超過 5MB 的話 : Mail Delivery SystemMail Delivery System: Undelivered Mail Returned to Sender Diagnostic-Code: X-Postfix; message size 9105690 exceeds size limit 5000000 of server ms.cnl2011-10.csie.org[140.112.30.110]
10
Control the sending rate and limit the mail size of your mail agent 2.rate: http://www.cyberciti.biz/faq/postfix-limit- incoming-or-receiving-email-rate/ /etc/postfix/main.cf 放下一頁好了 @~@
11
slow_destination_rate_delay = 2s # 讓 queue manager 在每個 individual delivery to the same destination 之間加入 delay 2 秒 smtp_destination_concurrency_limit = 1 smtp_destination_rate_delay = 1s #never more than one at a time and never faster than 1 per second # to each unique domain 1 秒不要超過一封 !
12
Virus scanning of email ClamAV http://www.debianadmin.com/clamav- installation-and-configuration.html ※ correct /etc/sources.list to /etc/apt/sources.list 使用指令 : $clamscan /
13
Virus scanning of email(Cont.)
14
Thank you Thank you
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.