I am running a mail server which followed the Perfect server tutorial hosted here for Ubuntu 1604 using Apache2 for the web server and MySQL for the DB server. Originally, I was using ALT-Port SMTP and email reflector as my ISP had blocked port 25. I have since moved my server to a VPS server with 1and1, who do not block port 25. I removed the relay entry from my /etc/postfix/main.cf as well as the reference to the /etc/postfix/sasl_passwd as they are no longer needed now that I no longer need a relay. I have set up my DNS server and domain to reflect the change in public IP and can receive mail without issue. Sending mail is where I am having issues. I cannot tell if the mail is getting out and being blocked by the recipient or if there is something going on with my server. Attached is my main.cf file and master.cf files. I checked my MX records and the DNS pointers at my domain registrar and it is pointing to my server. Kinda lost as to what it could be. Checked the logs and there is nothing in there indicating an error. Any assistance would be appreciated.
You can send yourself a mail to an external address. If you did not receive the mail, check your mail.log and the mail-queue.
I did as you suggested, and the messages are not even getting to the recipient. Does not matter what domain they are in. I have attached my mail.log file. Looking at the activity, it is trying to reach the mail servers for he recipient but is timing out. Not sure if there is some sort of timer I need to adjust or something, but, I verified everything goes through just fine when using my old mail relay at noip.com Thanks again for the quick response.
I did that. I have a mail server setup at barracuda.adapteq.com and watched the incoming traffic. Same deal. A question that comes to mind which I cannot seem to find a straight answer for is the slot for relay host. When populated with noip's smtp relay, everything goes fine, but that is on port 3325. Is port 25 not used for MX to MX traffic? HAs it gone to 465 or 587 or is that only for communication between MX server and email client?
I went ahead and emailed NOIP and asked them about it. I really think there is something I am missing in the config beyond simply commenting out the relayhost line. I also tried things with setting the relay host to dovecot, but that did not make a difference.