Sending mail problem with 554 5.7.1 Client host rejected: Access denied

38 views
Skip to first unread message

Standly lee

unread,
May 28, 2020, 1:22:57 AM5/28/20
to Scriptella ETL
Hi;

Please help me out about sending mail.
I've got a error message while executing etl.xml even though two email addresss <test...@coresolutions.co.kr> that is sender and <pol...@naver.com> that is receiver are valid.
I have no idea what's wrong with me.

I enclosed "mail.properties".
#mail.smtp.starttls.enable=true
#mail.smtp.ssl.enabled=true
mail.smtp.sasl.enable=true
mail.smtp.host=smtp.cafe24.com
mail.smtp.port=587
mail.user=test_etl
mail.password=
mail.from=ETLADMIN <test...@coresolutions.co.kr>
mail.debug=true
type=html


Thank you in advance.

==========================================================================
DEBUG SMTP: enable SASL
DEBUG SMTP: useEhlo true, useAuth false
DEBUG SMTP: trying to connect to host "smtp.cafe24.com", port 587, isSSL false
220 ESMTP Postfix
DEBUG SMTP: connected to host "smtp.cafe24.com", port: 587

EHLO DESKTOP-HO0QRU8
250-smtp-003.cafe24.com
250-PIPELINING
250-SIZE 30720000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
DEBUG SMTP: Found extension "PIPELINING", arg ""
DEBUG SMTP: Found extension "SIZE", arg "30720000"
DEBUG SMTP: Found extension "VRFY", arg ""
DEBUG SMTP: Found extension "ETRN", arg ""
DEBUG SMTP: Found extension "STARTTLS", arg ""
DEBUG SMTP: Found extension "AUTH", arg "LOGIN PLAIN"
DEBUG SMTP: Found extension "AUTH=LOGIN", arg "PLAIN"
DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""
DEBUG SMTP: Found extension "8BITMIME", arg ""
DEBUG SMTP: Found extension "DSN", arg ""
DEBUG SMTP: use8bit false
MAIL FROM:<test...@coresolutions.co.kr>
250 2.1.0 Ok
RCPT TO:<pol...@naver.com>
554 5.7.1 <unknown[211.108.168.56]>: Client host rejected: Access denied

DEBUG SMTP: Invalid Addresses
DEBUG SMTP:   pol...@naver.com
DEBUG SMTP: Sending failed because of invalid destination addresses
RSET
250 2.0.0 Ok
DEBUG SMTP: MessagingException while sending
javax.mail.SendFailedException: Invalid Addresses;
  nested exception is:
        com.sun.mail.smtp.SMTPAddressFailedException: 554 5.7.1 <unknown[211.108.168.56]>: Client host rejected: Access denied
==========================================================================

Lucie

unread,
Jun 2, 2020, 3:32:11 PM6/2/20
to Scriptella ETL

Shouldn't this be a SMTP server issue, not Scriptella-related?  I have no trouble sending  email using Scriptella with my company smtp server, but  doing so with smtp.gmail.com requires a different set of configurations.  Each smtp server has its own requirements.  

e.g. in my case, I need to specify "mail.from" in mail.properties, and it must be a valid email address recognized by the smtp server, etc.

Standly lee

unread,
Jun 4, 2020, 5:41:26 AM6/4/20
to Scriptella ETL
Hi Lucie;

Thank you for your reply.
As you're mentioned, I also think that STMP settings has a little bit problems without scriptella-related. So I've decided gmail.com for smtp, "smtp.gmail.com".
After my mail.properties file modified, I did my mail.etl.xml, but it's failed with below error message (RED MARKED).

============================================================================================================================

DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]

DEBUG SMTP: useEhlo true, useAuth false
DEBUG SMTP: trying to connect to host "smtp.gmail.com", port 587, isSSL false
220 smtp.gmail.com ESMTP h21sm5227450pjz.6 - gsmtp
DEBUG SMTP: connected to host "smtp.gmail.com", port: 587

EHLO DESKTOP-HO0QRU8
250-smtp.gmail.com at your service, [211.108.168.56]
250-SIZE 35882577
250-8BITMIME
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-CHUNKING
250 SMTPUTF8
DEBUG SMTP: Found extension "SIZE", arg "35882577"

DEBUG SMTP: Found extension "8BITMIME", arg ""
DEBUG SMTP: Found extension "STARTTLS", arg ""
DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""
DEBUG SMTP: Found extension "PIPELINING", arg ""
DEBUG SMTP: Found extension "CHUNKING", arg ""
DEBUG SMTP: Found extension "SMTPUTF8", arg ""
STARTTLS
220 2.0.0 Ready to start TLS
EHLO DESKTOP-HO0QRU8
250-smtp.gmail.com at your service, [211.108.168.56]
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-CHUNKING
250 SMTPUTF8
DEBUG SMTP: Found extension "SIZE", arg "35882577"

DEBUG SMTP: Found extension "8BITMIME", arg ""
DEBUG SMTP: Found extension "AUTH", arg "LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH"

DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""
DEBUG SMTP: Found extension "PIPELINING", arg ""
DEBUG SMTP: Found extension "CHUNKING", arg ""
DEBUG SMTP: Found extension "SMTPUTF8", arg ""
DEBUG SMTP: use8bit false
MAIL FROM:<ecse...@gmail.com>
530-5.7.0 Authentication Required.
Email provider exception: Failed to send message

============================================================================================================================

And I encloded my "mail.properties" file as below.
        mail.debug=true
        mail.smtp.starttls.enable=true
        mail.smtp.host=smtp.gmail.com
        mail.smtp.port=587
        mail.user=ecse...@gmail.com
        mail.password=****************
        mail.from=ETLADMIN &lt;ecse...@gmail.com&gt;
        type=text

Could you please happen to tell me how to resolve about authentication requied in my mail.properties file or mail.etl.xml file?


2020년 6월 3일 수요일 오전 4시 32분 11초 UTC+9, Lucie 님의 말:
Reply all
Reply to author
Forward
0 new messages