When I do this without the port 587 , reports “Trying …”
Then finally spits out “telnet: connect to address xxx.xxx.xx.xxx: Connection timed out”
When I add the port 587, it immediately responds with “Unknown host”
The logs on the mail server are not showing a connect attempt.
You do know that 587 is the official alternate port to port 25 for SMTP? Most ISPs block the use of port 25 unless you’re using their SMTP server. This is done as protection from zombie bot attacks and other SMTP based spam attacks from compromised computers. Pretty much all hosting appliances/applications like cPanel, etc have this setup to be used because of the issues of port 25.
Plus @GeekBoy confirmed that when using Outlook and sending SMTP out the server port 587 works just fine. The testing attempts are coming back with timeout errors, the SMTP server isn’t even showing the attempts hit it.
And we did. This is why I had him check things via telnet because that part of how you can test your SMTP server for things like an open relay or if things are connecting and accepted properly. This is all part of standard SMTP testing.
I also pointed out that the maillog did not show a relay being sent and with the telnet commands returning a time out that means there is an issue with the connection for some reason. Either the FQDN isn’t being resolved right or something isn’t letting it through.
None of this has to do with it being the Distro or a manual install. This comes down to the Postfix configuration like any other Linux server out there that runs it. You don’t need System Admin (free or pro) to configure Postfix how you want to send mail from the system.
Everything I have laid out so far is proper troubleshooting. The only way this is a FreePBX problem is if System Admin isn’t updating main.cf properly for the settings.
I was doing that, but was having issues. The PBX kept sending the emails out as the user which was sending the emails, and not using the setup server credentials. So then since asterisk user is the one doing the voicemail emails, I created a user on the mail server named asterisk. Then oddly it was sending the emails to user [email protected], not using email user [email protected] to send the emails out.
That is when I decided to go with the commercial module
Again, this is all to do with the Postfix config. This is not a FreePBX issue. You would have to jump these hoops on any base Linux OS you install and want to use Postfix with. Again, I need to see your main.cf to tell what the issue is.
The support at Sangoma is already working on it so the main.cf will probably be changing few times, and since the Commercial Module is suppose to be making the correct configuration, and appears to not be doing that, it would probably be a FreePBX issue now.
As long as it free, fine. The moment is becomes billable support hours, drop it. Again, this is a common issue I have dealt with on numerous PBX installs with things like Gmail and Office 365. This is a Postfix configuration issue on the PBX side and possibly a config issue on the SMTP relay side (not a 100% sure on that part). But using the wrong From or Sender name is a Postfix config issue.
Uhm, is the SMTP gateway setup to use TLS? And if so, what is the TLS port? Because 587 is the standard alternate SMTP port for non-TLS connections. Usually something like 465 is the TLS port for SMTP relays using TLS connections.
The certificate on the PBX is irrelevant for this. If you’re using TLS for SMTP relay then the SMTP server needs a valid TLS certificate.