Difference between revisions of "NUC Email"
From wikidb
(Created page with "== Back == Rainier NUC == References == [https://help.ubuntu.com/community/MailServer Ubuntu Mail Server]") |
(→References) |
||
(13 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
== References == | == References == | ||
− | [https://help.ubuntu.com/community/MailServer Ubuntu Mail Server] | + | * [https://help.ubuntu.com/community/MailServer Ubuntu Mail Server] |
+ | * [https://www.digitalocean.com/community/tutorials/why-you-may-not-want-to-run-your-own-mail-server Why Not] | ||
+ | * [https://www.digitalocean.com/community/tutorials/how-to-install-and-setup-postfix-on-ubuntu-14-04 Install Postfix] | ||
+ | * [https://www.digitalocean.com/community/tutorials/how-to-run-your-own-mail-server-with-mail-in-a-box-on-ubuntu-14-04 Mail in a Box] | ||
+ | |||
+ | == Postfix == | ||
+ | === Install === | ||
+ | |||
+ | [https://help.ubuntu.com/community/Postfix Postfix] | ||
+ | |||
+ | sudo apt-get install postfix | ||
+ | |||
+ | select | ||
+ | * Internet Site (SMTP) | ||
+ | * mail name is zdome.net | ||
+ | |||
+ | === Test === | ||
+ | |||
+ | epp@rainier:~$ telnet localhost 25 | ||
+ | Trying 127.0.0.1... | ||
+ | Connected to localhost. | ||
+ | Escape character is '^]'. | ||
+ | 220 rainier ESMTP Sendmail 8.14.4/8.14.4/Debian-4.1ubuntu1; Tue, 12 May 2015 16:30:54 -0700; (No UCE/UBE) logging access from: localhost(OK)-localhost [127.0.0.1] | ||
+ | ehlo localhost | ||
+ | 250-rainier Hello localhost [127.0.0.1], pleased to meet you | ||
+ | 250-ENHANCEDSTATUSCODES | ||
+ | 250-PIPELINING | ||
+ | 250-EXPN | ||
+ | 250-VERB | ||
+ | 250-8BITMIME | ||
+ | 250-SIZE | ||
+ | 250-DSN | ||
+ | 250-ETRN | ||
+ | 250-AUTH DIGEST-MD5 CRAM-MD5 | ||
+ | 250-DELIVERBY | ||
+ | 250 HELP | ||
+ | quit | ||
+ | 221 2.0.0 rainier closing connection | ||
+ | Connection closed by foreign host. | ||
+ | |||
+ | I don't see "250-STARTTLS" | ||
+ | |||
+ | == Dovecot == | ||
+ | === Install === | ||
+ | |||
+ | [https://help.ubuntu.com/community/Dovecot Dovecot] | ||
+ | |||
+ | sudo apt-get install dovecot-imapd dovecot-pop3d | ||
+ | |||
+ | created a self signed certificate for SSL/TLS | ||
+ | |||
+ | local host name rainier | ||
+ | |||
+ | === Test === | ||
+ | |||
+ | epp@rainier:~$ sudo start dovecot | ||
+ | dovecot start/running, process 17440 | ||
+ | |||
+ | epp@rainier:~$ ps -A | grep dovecot | ||
+ | 17440 ? 00:00:00 dovecot | ||
+ | |||
+ | epp@rainier:~$ telnet localhost imap2 | ||
+ | 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] Dovecot (Ubuntu) ready. | ||
+ | |||
+ | openssl s_client -connect mail.domain.ext:993 | ||
+ | openssl BAD Error in IMAP command received by server. | ||
+ | |||
+ | ^] | ||
+ | |||
+ | telnet> quit | ||
+ | Connection closed. | ||
+ | epp@rainier:~$ | ||
+ | |||
+ | epp@rainier:~$ cat /var/log/mail.err | ||
+ | epp@rainier:~$ |
Latest revision as of 10:48, 2 January 2016
Back
References
Postfix
Install
sudo apt-get install postfix
select
- Internet Site (SMTP)
- mail name is zdome.net
Test
epp@rainier:~$ telnet localhost 25 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 rainier ESMTP Sendmail 8.14.4/8.14.4/Debian-4.1ubuntu1; Tue, 12 May 2015 16:30:54 -0700; (No UCE/UBE) logging access from: localhost(OK)-localhost [127.0.0.1] ehlo localhost 250-rainier Hello localhost [127.0.0.1], pleased to meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-EXPN 250-VERB 250-8BITMIME 250-SIZE 250-DSN 250-ETRN 250-AUTH DIGEST-MD5 CRAM-MD5 250-DELIVERBY 250 HELP quit 221 2.0.0 rainier closing connection Connection closed by foreign host.
I don't see "250-STARTTLS"
Dovecot
Install
sudo apt-get install dovecot-imapd dovecot-pop3d
created a self signed certificate for SSL/TLS
local host name rainier
Test
epp@rainier:~$ sudo start dovecot dovecot start/running, process 17440 epp@rainier:~$ ps -A | grep dovecot 17440 ? 00:00:00 dovecot epp@rainier:~$ telnet localhost imap2 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] Dovecot (Ubuntu) ready. openssl s_client -connect mail.domain.ext:993 openssl BAD Error in IMAP command received by server. ^] telnet> quit Connection closed. epp@rainier:~$ epp@rainier:~$ cat /var/log/mail.err epp@rainier:~$