Failed to send mail

16 views
Skip to first unread message

Esharat Mia

unread,
Nov 11, 2025, 8:50:49 AMNov 11
to Dataverse Users Community
I have configured smtp using the below syntax "
/usr/local/payara6/bin/asadmin create-javamail-resource \
--mailhost smtp.gmail.com \
--mailuser eshar...@bracu.ac.bd \
--fromaddress eshar...@bracu.ac.bd \
--auth=true \
--password MY_APP_PASSWORD \
--enabled=true \
--storeprotocol smtp \
--transprotocol smtp \
--property mail.smtp.auth=true:mail.smtp.starttls.enable=true:mail.smtp.port=587 \
mail/Session

"
But got the error "
Failed to send mail to eshar...@bracu.ac.bd: 530-5.7.0 Must issue a STARTTLS command first.

org.eclipse.angus.mail.smtp.SMTPSendFailedException: 530-5.7.0 Must issue a STARTTLS command first. "

Don Sizemore

unread,
Nov 11, 2025, 9:04:36 AMNov 11
to dataverse...@googlegroups.com
Hello,

My personal recommendation would be to install Postfix, which is better at sending e-mail than Payara.
You would just configure Payara to use the local Postfix listener, which should be much easier to configure and troubleshoot.

Don

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-commu...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dataverse-community/f8078cf6-9fde-408f-9b8a-8ff9fb9d7624n%40googlegroups.com.

Esharat Mia

unread,
Nov 11, 2025, 11:02:31 PMNov 11
to dataverse...@googlegroups.com

Hello Don,

Thank you very much for your recommendation. The Postfix SMTP configuration is much easier than Payara’s. However, I have resolved the issue by configuring it with the properties below:


server.resources.mail-resource.mail/notifyMailSession.auth=false
server.resources.mail-resource.mail/notifyMailSession.debug=false
server.resources.mail-resource.mail/notifyMailSession.deployment-order=100
server.resources.mail-resource.mail/notifyMailSession.enabled=true
server.resources.mail-resource.mail/notifyMailSession.from=eshar...@bracu.ac.bd
server.resources.mail-resource.mail/notifyMailSession.host=smtp.gmail.com
server.resources.mail-resource.mail/notifyMailSession.jndi-name=mail/notifyMailSession
server.resources.mail-resource.mail/notifyMailSession.object-type=user
server.resources.mail-resource.mail/notifyMailSession.store-protocol=imap
server.resources.mail-resource.mail/notifyMailSession.store-protocol-class=org.eclipse.angus.mail.imap.IMAPStore
server.resources.mail-resource.mail/notifyMailSession.transport-protocol=smtp
server.resources.mail-resource.mail/notifyMailSession.transport-protocol-class=org.eclipse.angus.mail.smtp.SMTPTransport
server.resources.mail-resource.mail/notifyMailSession.user=eshar...@bracu.ac.bd
server.resources.mail-resource.mail/notifyMailSession.property.mail.smtp.port=465
server.resources.mail-resource.mail/notifyMailSession.property.mail.smtp.auth=true
server.resources.mail-resource.mail/notifyMailSession.property.mail.smtp.socketFactory.port=465
server.resources.mail-resource.mail/notifyMailSession.property.mail.smtp.socketFactory.fallback=false
server.resources.mail-resource.mail/notifyMailSession.property.mail.smtp.password= <My gmail App password>
server.resources.mail-resource.mail/notifyMailSession.property.mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory



--
Regards

Esharat Mia
System Programmer
Ayesha Abed Library

Brac University
Kha-224 Bir Uttam Rafiqul Islam Avenue, 
Merul Badda, Dhaka-1212
University Website: bracu.ac.bd
Library Web Site: library.bracu.ac.bd

Reply all
Reply to author
Forward
0 new messages