E-Mail Exercises

SMTP Protocol

    • Connect via telnet to smtp.mundo-r.com port 25 and send a mail to yourself using the SMTP protocol.
    • Do the same but faking the sender address

Mutt

    • Install a mutt client on alpha (or on your laptop) and configure it to access to your personal mail (gmail or whatever)

Postfix

    • Install on alpha a postfix server.

    • Configure it to be the mail server of the domain mastersoftwarelibre.com See directives myhostname, mydomain, myorigin

    • Configure it to make relay for the outgoin mail in smtp.mundo-r.com

    • Configure it to accept the mail for the domain mastersoftwarelibre.com (see mydestination)

    • Add an alias in order to make the mail sent to webmaster@mastersoftwarelibre.com be forwarded to your real account (gmail)

    • Configure it to be the mail server of our network (10.0.0.0/8). It should allow any IP of our internal network to use it as relay without asking password.

    • Install another postfix on beta and configure it to forward all email to alpha

    • You can watch what the server is doing with::

      tail -f /var/log/mail.info

    • Test tha all works by sending mails from alpha and beta with mailx

Dovecot

    • Install dovecot and configure it to allow access by imaps (SSL) to our server.
    • Enable smtps on postfix
    • Configure postfix to use Dovecot SASL http://wiki.dovecot.org/HowTo/PostfixAndDovecotSASL
    • Configure a local mail client on our laptop (thunderbird/evolution/mutt/...) in order to access the server alpha Mail name: mswl@mastersoftwarelibre.com IMAP Server: 127.0.0.1:8993 (SSL) SMTP Server: 127.0.0.1:8465 (SSL) Require authentication: yes Auth type: plain/text
    • As root send some mails from alpha with mailx to mswl@mastersoftwarelibre.com and check that you receive them on your local client.
    • Reply to this mails and check that you receive them on your root account with mailx
    • Try to send some mails to external accounts (gmail)

Mailman

Spamassasin

    • Install spamassasin
    • Configure posftix to filter only the incoming email with spamassasing (not the outgoing)