Server Fault Asked by Mustafa Chelik on September 3, 2020
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
turns out I didn't uncomment smtp in /etc/postfix/master.cf
file
submission inet n - - - - smtpd
-o syslog_name=postfix/submission
-o smtpd_tls_security_level=encrypt
-o smtpd_sasl_auth_enable=yes
-o smtpd_relay_restrictions=permit_sasl_authenticated,reject
-o milter_macro_daemon_name=ORIGINATING
smtps inet n - - - - smtpd
-o syslog_name=postfix/smtps
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
-o smtpd_relay_restrictions=permit_sasl_authenticated,reject
-o milter_macro_daemon_name=ORIGINATING
Answered by Mustafa Chelik on September 3, 2020
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 for mail.example.com
for the server running postfix and dovecot. (Replace example.com
as required for your domain.) This should be an A record. Other names can be used such as imap.example.com
, smtp.example.com
and pop.example.com
, but mail.example.com
works for most protocols.
Answered by BillThor on September 3, 2020
A 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
Answered by Mike on September 3, 2020
5 Asked on February 16, 2021 by red-cricket
1 Asked on February 16, 2021
0 Asked on February 16, 2021 by asagohan
2 Asked on February 16, 2021
1 Asked on February 15, 2021 by mapedraza
1 Asked on February 14, 2021 by dualsport
1 Asked on February 13, 2021 by ppst99
1 Asked on February 13, 2021 by ddimitrov
2 Asked on February 13, 2021 by 18bytes
1 Asked on February 13, 2021 by geo-j
0 Asked on February 12, 2021 by tototititata2
credentials microsoft office 365 network attached storage sharepoint windows 10
1 Asked on February 12, 2021 by dileep-jose
1 Asked on February 11, 2021 by siride
1 Asked on February 11, 2021 by gts-joe
1 Asked on February 11, 2021 by root-loop
sql server windows windows server 2012 r2 windows server 2019
1 Asked on February 10, 2021 by wruckie
2 Asked on February 9, 2021 by lordadmira
Get help from others!
Recent Questions
Recent Answers
© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir