Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Multiple Mail-Servers
Hey 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
This 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.