I installed a mail server with Postfix and Dovecot on Debian. I can send emails without worries to Outlook, Yahoo, ...BUT I can't receive emails from outside.
I use my internet box (free) as a router. I redirected flows comes on 993, 143, 25 and 587.
I use NOIP as DNS. I added the records needed for the MX part.
yacine@mezianeyacine:~$ nslookup -type=mx mezianeyacine.sytes.net
Server: 192.168.1.254
Address: 192.168.1.254#53
Non-authoritative answer:
mezianeyacine.sytes.net mail exchanger = 10 mail.mezianeyacine.sytes.net.
mezianeyacine.sytes.net mail exchanger = 20 imap.mezianeyacine.sytes.net.
mezianeyacine.sytes.net mail exchanger = 40 pop.mezianeyacine.sytes.net.
mezianeyacine.sytes.net mail exchanger = 1 smtp.mezianeyacine.sytes.net.
Authoritative answers can be found from:
yacine@mezianeyacine:~$
I have verified that my server is listening on the port 25 & 587. Also i have managed the firewall to accept incoming and outgoing connection for port 25
I have found a potential solution here:
the issue may that the mail.mezianeyacine.sytes.net
don't have any address records:
yacine@mezianeyacine:/etc/apache2/sites-available$ host mezianeyacine.sytes.net
mezianeyacine.sytes.net has address 82.66.16.108
mezianeyacine.sytes.net mail is handled by 20 imap.mezianeyacine.sytes.net.
mezianeyacine.sytes.net mail is handled by 40 pop.mezianeyacine.sytes.net.
mezianeyacine.sytes.net mail is handled by 1 smtp.mezianeyacine.sytes.net.
mezianeyacine.sytes.net mail is handled by 10 mail.mezianeyacine.sytes.net.
yacine@mezianeyacine:/etc/apache2/sites-available$ host mail.mezianeyacine.sytes.net.
Host mail.mezianeyacine.sytes.net. not found: 3(NXDOMAIN)
yacine@mezianeyacine:/etc/apache2/sites-available$ host smtp.mezianeyacine.sytes.net.
Host smtp.mezianeyacine.sytes.net. not found: 3(NXDOMAIN)
yacine@mezianeyacine:/etc/apache2/sites-available$
Could you help me to solve this please ? I'm not sure to what I can do to solve.