• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Question Port 25 is blocked despite an explicit firewall rule

msinne

New Pleskian
Hello,

I'm using the msmtp relay addon/plugin for my php scripts to send mails (eg contact forms etc.)
Postfix and sendmail are deactivated.
I set up the external relay gateway correctly. The relay gateway sends through port 25.
I tried my scripts - no mail is going out.
I checked the ports with nmap. Port 25 is blocked.
I then put a firewall (the default plesk firewall) rule that opens tcp port 25, then
checked again with nmap, but port 25 is still blocked locally.
Where's the trick? Am I missing something or getting something wrong?

Best regards
Michael
 
no I checked the port locally on the machine with nmap and it's closed.
I asked my ISP already and he said port 25 is not blocked.
 
I asked my ISP already and he said port 25 is not blocked.

By ISP (internet service provider) you mean the company providing you with an internet connection at the place you reside/work? Because you ought to ask your hosting/cloud provider if port 25 is open.
 
O.k., I think what you are seeing is kind of an illusion. I think that everything is actually correctly set-up, but you are trying to connect to port 25 on your local system. However, there is no mail server on port 25 (or other ports) on your local server. When you use the MSMTP option, you do not have any local mail server or mail functions, so you have to make sure that any script where you send mails from is directly connecting to your external mail server. From what I understand you cannot combine the MSMTP option with a local mail functionality to submit mails on your server.
 
Back
Top