Test Email met AuthenticationFailedException: EMailAuthenticator - invalid username/password

128 views
Skip to first unread message

Chiao Hung

unread,
Oct 30, 2020, 1:47:57 AM10/30/20
to iDempiere
Hi Groups,

I met a pretty basic issue, but still dont know how to ensure and solve the problem. 
Please give me some hints if you have any ideas. And sorry about this basic question.

Things I aim to do: Send informed mail in workflow.
1. Set up the configuration of mail server in Client.
2. Click "Test EMail", and I got Invalid username/password.
I am sure about the password is correct since printing the log at FINEST mode.

I found the DEBUG SMTP logs show the password is "<non-null>".
Is this the key caused the AuthenticationFailedException error?

DEBUG SMTP: protocolConnect login, host=smtp.seikojp.com, user=pr, password=<non-null>
DEBUG SMTP: Attempt to authenticate using mechanisms: LOGIN PLAIN DIGEST-MD5 NTLM XOAUTH2
DEBUG SMTP: Using mechanism LOGIN
DEBUG SMTP: AUTH LOGIN command trace suppressed
DEBUG SMTP: AUTH LOGIN failed
02:55:13.798-----------> EMail.send: (ME) - Invalid Username/Password - EMailAuthenticator[pr/******] [96]


Thank you very much.


Chiao Hung

unread,
Oct 30, 2020, 4:48:33 AM10/30/20
to iDempiere
I have tried this way, but it didnt work.


255 Properties props = new Properties();
256 //props.putAll(System.getProperties()); 
257 log.log(Level.WARNING, "Test Logging"); 
258 props.put("mail.store.protocol", "smtp"); 
259 props.put("mail.transport.protocol", "smtp"); 
260 props.put("mail.host", m_smtpHost);

Carlos Antonio Ruiz Gomez

unread,
Oct 30, 2020, 9:36:23 AM10/30/20
to idem...@googlegroups.com
The error looks like a problem on the mail server side.

There are ways you can check that out of iDempiere, or also online testers are useful, I used this one recently:

Regards,

Carlos Ruiz


Am 30.10.20 um 09:48 schrieb Chiao Hung:

Chiao Hung

unread,
Nov 3, 2020, 7:26:13 PM11/3/20
to iDempiere
Hi Carlos,

I test on the wormly website, I got the error message: "relay access denied 554 5.7.1".
I tried to send a mail from the account I tested to a gmail account, it worked. 
Do you have any ideas?

I will also contact the owner of mail server.  Thank you.

Reference:

Chiao Hung

unread,
Nov 3, 2020, 8:08:56 PM11/3/20
to iDempiere
The entire log:

Connection: opened
0.33s
< 220 m35-red.in.shared-server.net ESMTP Postfix_foreign
0.53s
SMTP connection established

> EHLO www.wormly.com

< 250-m35-red.in.shared-server.net 250-PIPELINING 250-SIZE 31457280 250-ETRN 250-STARTTLS 250-AUTH DIGEST-MD5 CRAM-MD5 PLAIN LOGIN 250-AUTH=DIGEST-MD5 CRAM-MD5 PLAIN LOGIN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN
0.74s
> MAIL FROM:<cust...@wormly.com>

< 250 2.1.0 Ok
0.94s
> RCPT TO:<p****@*****.**m>

< 554 5.7.1 <p****@*****.**m>: Relay access denied
1.14s
SMTP ERROR: RCPT TO command failed: 554 5.7.1 <p****@*****.**m>: Relay access denied

SMTP Error: RCPT TO command failed <p****@*****.**m>: Relay access denied 554 5.7.1

Hiep Lq

unread,
Nov 3, 2020, 10:14:56 PM11/3/20
to Mohemmed Bilal Ilyas
search for "Relay access denied" and learn about it


Lê Quý Hiệp
Email: hie...@hasuvimex.vn
Skype: admin.hasuvimex

Company: Thanh Hoa Fishery Import - Export J.s.c  (HasuvimexDL 47
Add: Lot E, Le Mon Industrial Zone, Thanh Hoa, Vietnam


--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/897de536-7773-441d-b1ce-86a2fabd1cfan%40googlegroups.com.

Chiao Hung

unread,
Nov 4, 2020, 2:05:50 AM11/4/20
to iDempiere
Hi Hiep and Carlos,

problem solved. Thank you very much.

Hiep Lq

unread,
Nov 4, 2020, 2:22:48 AM11/4/20
to Mohemmed Bilal Ilyas
it's more community when you share how it's resolved, so other people can get benefit

Lê Quý Hiệp
Email: hie...@hasuvimex.vn
Skype: admin.hasuvimex

Company: Thanh Hoa Fishery Import - Export J.s.c  (HasuvimexDL 47
Add: Lot E, Le Mon Industrial Zone, Thanh Hoa, Vietnam

Leszek Bober

unread,
Nov 5, 2020, 4:41:59 PM11/5/20
to iDempiere
Hi
I'm joining to discussion.
I have the same problem but my log are:

22:17:53.308-----------> mail.loadResource: expected resource not found: {0} (/META-INF/javamail.default.address.map) [278]
22:17:53.798-----------> EMail.send: (ME) - Invalid Username/Password - EMailAuthenticator[sys...@xxxx.pl/************] [278]
22:17:53.799-----------> MClient.testEMail: Could NOT send Test EMail from smtp.gmail.com: sys...@xxx.pl (sys...@xxxxxx.pl) to sys...@xxxx.pl: (ME) - Invalid Username/Password - EMailAuthenticator[sys...@xxxxx.pl/************] [278]

When I configure system via my own smtp serwer all works fine.
Only with gmai serwer is problem

Regards
Leszek

Chiao Hung

unread,
Nov 5, 2020, 7:09:01 PM11/5/20
to iDempiere
Hi Leszek,

You could try setting up the Request User  to a whole email address instead of user name only.
Here is the configuration of mine.
スクリーンショット 2020-11-06 8.57.40.png

Hi Hiep,
I am embarrassed to share the reason which is a simple problem of configuration at first.
But there might be others meets the same problem with me. Thank you for your suggestion. 

Leszek Bober

unread,
Nov 5, 2020, 8:32:52 PM11/5/20
to idem...@googlegroups.com
Hi Chiao

Thank You for replly. I have good config on this window. Problem is only with gmail account. 
My other instances Works fine. 


Pozdrawiam [Regards]
Leszek Bober


Wiadomość napisana przez Chiao Hung <chiaoch...@gmail.com> w dniu 06.11.2020, o godz. 01:09:

 Hi Leszek,

You could try setting up the Request User  to a whole email address instead of user name only.
Here is the configuration of mine.
You received this message because you are subscribed to a topic in the Google Groups "iDempiere" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/idempiere/DpDlHboqzoo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to idempiere+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/60da3de7-7aec-43e0-8d33-5d47d012bd07n%40googlegroups.com.
<スクリーンショット 2020-11-06 8.57.40.png>

Jesús Castillo

unread,
Nov 6, 2020, 7:09:34 AM11/6/20
to idem...@googlegroups.com
Hi, Leszek, 

For Gmail you need allow non secure application in your account settings.

Reply all
Reply to author
Forward
0 new messages