Homework 04 Mail System Computer Center CS NCTU

  • Slides: 8
Download presentation
Homework 04 Mail System

Homework 04 Mail System

Computer Center, CS, NCTU Architecture Mail Server domain. tld Users sub. domain. tld Internet

Computer Center, CS, NCTU Architecture Mail Server domain. tld Users sub. domain. tld Internet SMTP POP 3/IMAP 2

Computer Center, CS, NCTU Requirement (1/4) q Get you own domain • http: //nctucs.

Computer Center, CS, NCTU Requirement (1/4) q Get you own domain • http: //nctucs. net • Add a MX record for your mail server q Build a mail system • Anti-spam • Anti-virus q SMTP Server • Postfix • SASL Authentication • SSL and TLS support Ø SMTPs 3

Computer Center, CS, NCTU Requirement (2/4) q POP 3/IMAP Server • Dovecot • SSL

Computer Center, CS, NCTU Requirement (2/4) q POP 3/IMAP Server • Dovecot • SSL and TLS support Ø POP 3 s/IMAPs q MTA filter • Amavisd-new Ø Spam. Assassin Ø Clam. AV q MDA filter • Procmail • Record all log to /var/log/procmail. log • Drop the mail whose subject contains keyword “ 安安你好” 4

Computer Center, CS, NCTU Requirement (3/4) q Greylisting • An anti-spam measure • Postgrey

Computer Center, CS, NCTU Requirement (3/4) q Greylisting • An anti-spam measure • Postgrey q Transport • The next-hop destination of nasa. cs. nctu. edu. tw would be nahw 4. nctucs. net q Alias • demo@nasa. cs. nctu. edu. tw q Rewriting • Redirect user+XYZ@domain. tld to user@domain. tld q Address masquerading 5 • From user@domain. tld instead of user@sub. domain. tld • All users except root

Computer Center, CS, NCTU Requirement (4/4) q Sender address verification • Disconnect suspicious SMTP

Computer Center, CS, NCTU Requirement (4/4) q Sender address verification • Disconnect suspicious SMTP clients • Deny from dynamic host Ø For example, 211 -76 -240 -234. dynamic. ntcu. net • Real-time Blackhole List (RBL) Ø http: //www. spamhaus. org/ • Whitelist Ø http: //www. spamhauswhitelist. com Ø http: //www. dnswl. org/ q DKIM signature and verification q SPF record and check • sid-milter • A SPF record for your server 6 Ø http: //www. mailradar. com/spf/

Computer Center, CS, NCTU 7 Bonus – Web-based interface q Webmail • Horde •

Computer Center, CS, NCTU 7 Bonus – Web-based interface q Webmail • Horde • Roundcube • Squirrelmail

Computer Center, CS, NCTU 8 Hand-in q Due • 6/12 q Demo • TBA

Computer Center, CS, NCTU 8 Hand-in q Due • 6/12 q Demo • TBA