Custom SMTP Mailer settings
-
I'm using Managed Wordpress but want to use a custom smtp server.
So I changed the settings in the SMTP Mailer plugin, but after some time (after an update?) the settings are reset to the defaults (i.e. to use the Cloudron SMTP server).How can I prevent Cloudron from overwriting those settings in orde to use a custom SMTP server?
-
@guyds On Cloudron, we always pre-configure the Email settings of all apps to go via the internal Cloudron mail server. This is done, so that it's easier to track and configure all the mails of apps in one place.
Instead of configuring WordPress to send email via your smtp server, put the setting in the Email relay section of Cloudron - please see https://docs.cloudron.io/email/#relay-outbound-mails .
-
@girish hmm, I see, but I don't want to use the same smtp server for all apps.
-
@guyds I see. We don't have a feature to set per app mail relays, only per domain. Maybe you can open a feature request and we can look into it - https://forum.cloudron.io/category/97/feature-requests
-
@guyds Can you tell me about your use case a bit?
I actually ended up implementing this today since we have needed this for a while as well. Our use case is that we send newsletters via mailtrain which ideally I would like to send via a relay instead of directly from the mail server. Same for this forum which sends out a lot of email to questionable email addresses. So, it helps to keep the IP address clean.
In the next release, there is an option to select what you want to do with email configuration. By default, it will send via Cloudron mail like now. There is a new option to leave the mail configuration of an app alone.
-
@girish actually we have similar use cases.
First of all sender/ip reputation. Some apps send emails in bulk and/or to unverified email addresses while others only send transactional emails to known/verified addresses. Therefore we want to use different email servers/systems for them.
In addition, some apps use email templates built within the mail service and therefore need to send out emails via that particular service, while other apps don't need to / shouldn't send via that service.
The same for newsletters: they have to be sent via a specific service.Great to hear you implemented this functionality already!
-
@guyds said in Custom SMTP Mailer settings:
The same for newsletters: they have to be sent via a specific service.
True. We learnt via @mdreira that mautic has special hooks to help with bounce management when it sends via a specific service. For example, when sending via SES, it will listen on a callback URL and unsubscribe people accordingly.
-
It looks something like this:
-
@girish Looks perfect to me!