Multiple Mail-Servers

thumbnail
تم تعديل Fredi B منذ 4 سنوات من الدقائق. Junior Member المشاركات: 69 تاريخ الإنضمام: 1‏/4‏/20 المشاركات الحديثة

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

thumbnail
تم تعديل Olaf Kock منذ 4 سنوات من الدقائق. Liferay Legend المشاركات: 6441 تاريخ الإنضمام: 23‏/9‏/08 المشاركات الحديثة

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.