Message Boards
Multiple Mail-Servers
Multiple Mail-Servers
Junior Member Posts: 69 Join Date: 4/1/20 Recent PostsHey Liferay-Community,
while I - myself - think Liferays way of switching away from true Open-Source to Open-Source with documentation hidden behind paywalls ( https://help.liferay.com/hc/en-us/articles/4406443538829-Configure-Mail-Server-and-SMTP-to-get-email-notifications ) is a bad decision and has no real future, I hope I can find someone in the community, that can bring some light in the - for me - very dark SMTP-Server-Knowledge world.
We are using com.liferay.mail.kernel.service.MailServiceUtil to send Notification E-Mails. Our quite big customer is using 7 Mail-Servers that sometimes / occasionally send the same mail multiple times to the same recipient (not wanted).
When debugging that issue we can not reproduce with only one Mailserver nor find a hint that there are multiple sendEmail()-Calls when using multiple Mailservers.
Has anyone else came across that problem?
Liferay 7.3.5
RE: Multiple Mail-Servers
Liferay Legend Posts: 6403 Join Date: 9/23/08 Recent PostsThis sounds like you're using custom code to send notifications. And as you mention "quite big customer": Do you run a cluster? Do you make sure that a mail is only sent once, from one machine?
As Liferay configures a single SMTP server: how are those 7 servers
configured? Is that DNS-round-robin? Other clustering? Do you use APIs
to provide your own mail server when you send a notification?
The article you link doesn't look like it contains the
information that you're after.