I have a fresh Ubuntu 16.04 server and I have to create mail server on it. I followed this tutorial that uses postfix & dovecot. Now I am able to sent email from server using mail
command to my personal email but Thunderbird fails to connect and configure my created email. Email related processes seems working:
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
It could be because of my DNS entries. I'm not expert at these concepts. If you can help me, I'll appreciate it a lot.
P.S. ufw
is disabled
Your mail server should listen on port 587 (submission) for user agents. This port should require STARTTLS and Authentication before accepting a message for delivery. Thunderbird works well with this setup.
Thunderbird will try a few subdomains when it auto-configures. For the domain
example.com
, configure DNS formail.example.com
for the server running postfix and dovecot. (Replaceexample.com
as required for your domain.) This should be an A record. Other names can be used such asimap.example.com
,smtp.example.com
andpop.example.com
, butmail.example.com
works for most protocols.turns out I didn't uncomment smtp in
/etc/postfix/master.cf
fileA lot of ISPs block outbound port 25 to stop people from spamming on their network. They only allow it to their own servers.
You'd have to run postfix on a ssl enabled port and connect to that to send outgoing email