• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Remove mail hosting components, but allow Wordpress to send messages

Tomek

Regular Pleskian
Hi,

I want to remove mail hosting components, but I want allow Wordpress to send messages (e.g. for password reset).

What should I leave: Postfix, Qmail or MSMTP (relay only)?

Best regards,
Tomek
 
I use sendgrid for mailing on my wordpress websites. Their plugin and API key works great if outgoing mail is the only thing you're worried about.

I have only "Plesk milter (Postfix)" enabled and everything else that is related to mailing is fully disabled including "SMTP Server (Postfix)". Outgoing mails fail the moment I stop "Plesk milter (Postfix)" mailing stops functioning and SMTP Server component restarts itself, so disable everything and keep that one enabled. Hope that helps. I'm sure there are experts out there who could guide you better but this is what I've been using.
 
Glad I could help. Also, whenever you restart your server make sure that you stop the "SMTP Server (Postfix)" service again as it auto enables after every restart. I started using this setup on Google Cloud(They disable outgoing mails by default so sendgrid is the only option) just 2 weeks ago so was getting tons of Postfix authentication alerts on Immunify360 incident list. Disabling SMTP Server solved the issue for me, I don't use incoming mail on any of my websites either (I have gsuite for that) so Sendgrid free API Plugin and gsuite for outgoing feels like the most stable solution to me. :)
 
For anyone who will read it later.

I just installed the MSMTP component. I uninstalled the rest (Postfix, Dovecot etc.).

MSMTP can be connected for example with sendgrid (Thanks Raghav). Now I send all my mail from the server using sendgrid (automatically, without installing additional plugins for wordpress).
 
Last edited:
^^ wow, thanks for the amazing suggestion man. Due to that MSMTP tip I finally got server notification mails working on Plesk!!

Since Google Cloud blocks all the default ports like 25, I wasn't getting any notifications from the server before. After I uninstalled Postfix and Dovecot and then simply kept the external SMTP enabled (using MSMTP component) my server mails (backup notifications etc) started getting delivered :D Had to use the port "2525" in the external SMTP settings with the sendgrid credentials though. On Google Cloud only 2525 port is allowed, gsuite can be set up this way as well.

Although my wordpress emails still require a plugin, either the sendgrid one or a normal smtp plugin, this is because im guessing by default Wordpress sends mails via port 25, due to google cloud blocking this the mail does get processed but it never gets delivered. So im guessing using the sendgrip plugin or some gsuite smtp plugin is the best option for all running this on Google Cloud.

I tried the SMTP (on plesk settings) with gsuite credentials too but that requires me to enable that "allow access to less secure apps" option on my google account so In my opinion sendgrid is the best option for gcloud setup. :)
 
Back
Top