-
1. Re: How to disable SMTP Authentication in wildfly 9?
jaysensharma Jan 13, 2016 12:37 AM (in response to nounounou)Have you enabled the authentication ? Where do you see it enabled?
Can you please post your smtp configuration?
-
2. Re: How to disable SMTP Authentication in wildfly 9?
nounounou Jan 13, 2016 1:09 AM (in response to jaysensharma)This is my standalone.xml
<mail-session name="noreply" jndi-name="java:jboss/mail/noreply" from="something@domainblablabla.com">
<smtp-server outbound-socket-binding-ref="blablabla-smtp" ssl="true" tls="false" username="something@domainblablabla.com"/>
</mail-session>
............
<outbound-socket-binding name="blablabla-smtp">
<remote-destination host="192.168.1.123" port="25"/>
</outbound-socket-binding>That SMTP Server (192.168.1.123) , didn't need password. Because of that i delete attribute password from smtp-server.
this is error what i get everytime i trying send email
"Error send credential: Could not connect to SMTP host: 192.168.1.123, port: 25"
Before trying at wildfly, i already success at glassfish using mail.smtp.auth = false. But i don't know how to do that in wildfly.
-
3. Re: How to disable SMTP Authentication in wildfly 9?
nounounou Jan 13, 2016 3:52 AM (in response to nounounou)I didn't found the setting in wildfly, but i edit the code following this answer.
http://stackoverflow.com/questions/19115732/send-mail-in-javax-mail-without-authentication
this solve my problem.
-
4. Re: How to disable SMTP Authentication in wildfly 9?
ctomc Jan 13, 2016 5:43 AM (in response to nounounou)you can configure <custom-server> in mail subsystem
<mail-session name="custom" debug="true" jndi-name="java:jboss/mail/Custom">
<custom-server name="smtp" username="username" password="password">
<property name="host" value="mail.example.com"/>
..
...
</custom-server>
</mail-session>
-
5. Re: How to disable SMTP Authentication in wildfly 9?
lafr Jan 13, 2016 3:10 PM (in response to nounounou)Remove also the username from your smtp-server config.