wiki:mail

DNS

TXT-Record

Installation of software

postfix

sudo apt-get install postfix postfix-ldap postfix-pcre

dovecot

apt install dovecot-core dovecot-imapd dovecot-lmtpd dovecot-ldap dovecot-sieve dovecot-managesieved dovecot-antispam
sudo service dovecot stop

other

sudo apt install opendkim opendkim-tools
sudo service opendkim stop
sudo apt install amavisd-new libdbi-perl libdbd-mysql-perl
sudo apt install spamassassin
sudo service amavis stop
sudo service amavis-mc stop
sudo service amavis-snmp-subagent stop

Configuration

Dovecot

/etc/dovecot/conf.d/10-ssl.conf

/etc/dovecot/conf.d/10-master.conf

/etc/dovecot/conf.d/10-mail.conf

/etc/dovecot/conf.d/10-logging.conf

/etc/dovecot/conf.d/auth-ldap.conf.ext

/etc/dovecot/conf.d/10-auth.conf

/etc/dovecot/dovecot-ldap.conf.ext

Testing login:

$ telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
1 login joerg@rhein-main-festival.org T33nSpirit$
1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SPECIAL-USE] Logged in
2 logout
* BYE Logging out
2 OK Logout completed.
Connection closed by foreign host.

Postfix

# openssl dhparam -2 -out dh_512.pem 512
# openssl dhparam -2 -out dh_1024.pem 1024

virtual_domains postmap hash:/etc/postfix/virtual_domains

ldap_virtual_recipients.cf postmap -q joerg@rhein-main-festival.org ldap:/etc/postfix/ldap_virtual_recipients.cf

ldap_virtual_aliases.cf

identitycheck.pcre

drop.cidr

main.cf

Sending test mail:

$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.rhein-main-festival.org ESMTP Postfix (Ubuntu)
EHLO test.local
250-mail.rhein-main-festival.org
250-PIPELINING
250-SIZE 10240000
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-DSN
250 SMTPUTF8
MAIL FROM:<test@rhein-main-festival.org>
250 2.1.0 Ok
RCPT TO:<joerg@rhein-main-festival.org>
250 2.1.5 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
Testmail
.
250 2.0.0 Ok: queued as D34ECD2470E
QUIT
221 2.0.0 Bye
Connection closed by foreign host.

webmail

https://www.digitalocean.com/community/tutorials/how-to-install-your-own-webmail-client-with-roundcube-on-ubuntu-16-04
Last modified 3 months ago Last modified on May 14, 2018, 11:13:57 AM