Invalid address problem

I’m having problem with JavaMail and can’t find the problem that is causing this.

/var/log/opennms/notifd.log:

2021-05-24 09:50:14,997 ERROR [NotificationTask-5] o.o.n.n.JavaMailNotificationStrategy: send: Error sending notification.
org.opennms.javamail.JavaMailerException: Not all messages delivered:
    0 messages were sent to valid addresses:
    0 messages were not sent to valid addresses:
    1 messages had invalid addresses: ********@gmail.com
    at org.opennms.javamail.JavaMailer$LoggingTransportListener.assertAllMessagesDeliv                     ered(JavaMailer.java:956) ~[opennms-javamail-api-27.2.0.jar:?]
    at org.opennms.javamail.JavaMailer.sendMessage(JavaMailer.java:465) ~[opennms-javamail-api-27.2.0.jar:?]
    at org.opennms.javamail.JavaMailer.mailSend(JavaMailer.java:255) ~[opennms-javamail-api-27.2.0.jar:?]
    at org.opennms.netmgt.notifd.JavaMailNotificationStrategy.send(JavaMailNotificatio                     nStrategy.java:71) [opennms-services-27.2.0.jar:?]
    at org.opennms.netmgt.notifd.ClassExecutor.execute(ClassExecutor.java:69) [opennms-services-27.2.0.jar:?]
    at org.opennms.netmgt.notifd.NotificationTask.run(NotificationTask.java:274) [open                     nms-services-27.2.0.jar:?]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)                      [?:?]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)                      [?:?]
    at java.lang.Thread.run(Thread.java:829) [?:?]

I can’t find the problem maybe someone can help me :slight_smile:

javamail-configuration.properties:

org.opennms.core.utils.transport=smtps
org.opennms.core.utils.mailHost=smtp.gmail.com
org.opennms.core.utils.smtpport=465
org.opennms.core.utils.smtpssl.enable=true
org.opennms.core.utils.authenticate=true
org.opennms.core.utils.authenticateUser=*******@gmail.com
org.opennms.core.utils.authenticatePassword=*********
org.opennms.core.utils.starttls.enable=false
org.opennms.core.utils.messageContentType=text/html
org.opennms.core.utils.charset=UTF-8

I have tried both gmail smtp ports. Also changed smtps to smtp.

Gmail can be very picky about what they allow to relay through their mail service. I would strongly suggest Why using the default javamail-configuration.properties file is a good idea