Lab2 - Lab2 Mail Server Setup Send Mail and Anti-spam Configure a mail server(e.g MX record sendmail.cf d il f Use of virtual host table and

Info iconThis preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon
Lab2: Mail Server Setup Send Mail and Anti-spam • Configure a mail server (e.g. MX record, sendmail.cf) se of virtual host table and aliases • Use of virtual host table and aliases • Anti-spamming with access list, dnslb, dcc, and spf • Trace the source of the spam mail (e.g host, whois query) IEG 7006 (2010) 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Lab 2: Mail Server Setup Mail aliases 1. Configure /etc/aliases file. E.G. abuse: root info: [email protected] roup1: ser1 user2 group1: user1,user2 Mails sent to abuse will be forwarded to root account; mails sent to info will be forwarded to info account; mails sent to group1 will be forwarded to user1 and user2 accounts. ype "newaliases" to update the aliases db 2. Type newaliases to update the aliases.db IEG 7006 (2010) 2
Background image of page 2
Lab2: Mail Server Setup Virtual Hosting with sendmail DNS Configuration 1. Choose an available domain name, says yourdomain.com 2. Establish two machines as primary and secondary name servers for your domain 3. Configure MX records for your domain, e.g. yourdomain.com. MX 10 yourmailserver.yourdomain.com. IEG 7006 (2010) 3
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Lab 2: Mail Server Setup Virtual Hosting with sendmail Sendmail Configuration 1. Compile and install sendmail software 2. Configure the mc file E.G. EATURE(`it tb l' ` hh /t/ i l /it l' ) FEATURE( virtusertable', hash -o /etc/mail/virtusertable') 3. Generate the sendmail.cf file from the mc file 4. Configure the virtual table users E.G. [email protected] [email protected] @yourdomain.com jschmoe 5. Configure the local-host-names to accept mails for your domain, youdomainc.com. 6. Update the virtual table and start the sendmail IEG 7006 (2010) 4 p
Background image of page 4
Lab 2: Mail Server Setup Trace the source of the spam mail Examine mail header Query tools: host and whois queries To check out the DNS records and the domain registration information of the spam site. Update the black list or make complaint to the ISP IEG 7006 (2010) 5
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Lab 2: Mail Server Setup Email Path IEG 7006 (2010) 6
Background image of page 6
Examine mail header Received: from mailgw.ie.cuhk.edu.hk (mailgw [137.189.96.52]) by eng.ie.cuhk.edu.hk (8.13.6/8.13.6) with ESMTP id l3280tiR022852 r <[email protected] cuhk edu hk>; Mon 2 Apr 2007 16:00:56 +0800 for <[email protected]>; Mon, 2 Apr 2007 16:00:56 +0800 Received: from thursday.itsc.cuhk.edu.hk ([137.189.11.154]) by mailgw.ie.cuhk.edu.hk with ESMTP; 02 Apr 2007 16:00:55 +0800 Received: from cwemgw2.itsc.cuhk.edu.hk (cwemgw2.itsc.cuhk.edu.hk [137.189.4.19]) by thursday.itsc.cuhk.edu.hk (8.12.11.20060614/8.12.11) with ESMTP id l3280q4s023320 for <[email protected]>; Mon, 2 Apr 2007 16:00:55 +0800 Received: from wr-out-0506.google.com ([64.233.184.226]) by cwemgw2.itsc.cuhk.edu.hk with ESMTP; 02 Apr 2007 16:00:55 +0800 Received: by wr-out-0506.google.com with SMTP id 69so1293707wra for <[email protected]>; Mon, 02 Apr 2007 01:00:52 -0700 (PDT) The path is: wr-out-0506.google.com -> cwemgw2.itsc.cuhk.edu.hk -> thursday.itsc.cuhk.edu.hk -> mailgw.ie.cuhk.edu.hk -> g ie cuhk edu hk IEG 7006 (2010) 7 eng.ie.cuhk.edu.hk
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Lab2: Mail Server Setup ost and whois query host and whois query query of google.com NS records csh> host -vt ns google.com Trying "google.com" ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28217 flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 4 ;; g q ; Q , , , ;; QUESTION SECTION: ;google.com. IN NS ;; ANSWER SECTION: google.com. 345585 IN NS ns4.google.com.
Background image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/18/2010 for the course INFORMATIO IEG7006 taught by Professor Unknown during the Spring '10 term at CUHK.

Page1 / 43

Lab2 - Lab2 Mail Server Setup Send Mail and Anti-spam Configure a mail server(e.g MX record sendmail.cf d il f Use of virtual host table and

This preview shows document pages 1 - 9. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online