smancke / microcart

simple micro service oriented shopping cart written in java
Other
6 stars 4 forks source link

unable to get status for some emails while validation #1

Closed ganeshthandapani closed 7 years ago

ganeshthandapani commented 7 years ago

If i try to validate some email like(sales@foreap.com, ajudge@grovenetworks.com) . unable to get status and exception if it gets failed(like time out, sender rejected.)

smancke commented 7 years ago

I don't understand exactly: What are you doing?

When I test above emails, with the main method of MailboxValidator, I get:

sales@foreap.com is valid? true
ajudge@grovenetworks.com is valid? true
ganeshthandapani commented 7 years ago

ya both of the email are valid, but the responding time is more. If i test sales@foreap.com email it takes nearly 15-20 min to get the result. Plus while testing with MailboxValidator it return false for most of valid email like(info@emergebc.com, ralph.keipert@tahoe-partners.com, Greg@emergebc.com).

smancke commented 7 years ago

E-Mail checking is not trivial, because of the spam prevention in different mailservers. The MailboxValidator tries to connect to the smtp server and starts sending an email. Depending on their security settings, the mailserver may block this or just let the client wait, if the client looks like a spammer.

I guess, your IP is blacklisted. This is e.g. the case if you connect from a dynamic ip at home. The second thing, is to make sure to have a valid SPF DNS record, where the sender email matches the ip you are using the MailboxValidator from, see: https://de.wikipedia.org/wiki/Sender_Policy_Framework

ganeshthandapani commented 7 years ago

Ok, I will check with that. sorry to ask this I need one more clarification from you, what happen if i use the testing email domain and email in [say( wtr, "EHLO "+domain ); and say( wtr, "MAIL FROM: <"+email+">" );] will it give a correct result or it causes any problem

smancke commented 7 years ago

To have the same domain in both: to and from email is in general not a problem. But this depends on the behavior of the mailserver: If the mailserver accepts the ip and from domain combination, everything is fine. It not, it will block.

ganeshthandapani commented 7 years ago

Thanks for your comments. If any queries i will get back.

ganeshthandapani commented 7 years ago

Hi while I run this email versifier in local system it performs well and checks email with an average of 5 to 6 sec, but when i try to run in my Linux server it takes nearly 30 to 40 minutes even gets fail to check. Do you have any idea about this, if so help to sort this problem

smancke commented 7 years ago

Do you have the slow responses on all domains, or only if you check a special set of domains. How much emails do you check at a time? I could imagine, that the mail servers are slowing down you server, because of spam prevention. Maybe you server ip was abused before.

I'm currently implementing a mail check service, if you like, please try that: https://mailck.io The registration an billing thing is not complete, by now, but you can use 'trial' as the api key.

ganeshthandapani commented 7 years ago

Yes there is a slow response for all the domains. In which i check only one email at a time. I am using amazon ec2 service for my project.

On Tue, May 9, 2017 at 12:51 PM, Sebastian Mancke notifications@github.com wrote:

Do you have the slow responses on all domains, or only if you check a special set of domains. How much emails do you check at a time? I could imagine, that the mail servers are slowing down you server, because of spam prevention. Maybe you server ip was abused before.

I'm currently implementing a mail check service, if you like, please try that: https://mailck.io The registration an billing thing is not complete, by now, but you can use 'trial' as the api key.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/smancke/microcart/issues/1#issuecomment-300082528, or mute the thread https://github.com/notifications/unsubscribe-auth/ALebTyPOnaO06PMV0z2EFi9jZ5ViLEMZks5r4BP2gaJpZM4MGPhm .

-- https://about.me/ganeshthandapani?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api Ganesh Thandapani about.me/ganeshthandapani https://about.me/ganeshthandapani?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api

smancke commented 7 years ago

Using ip's from public cloud providers for email things is a bad idea. Please compare your results with https://mailck.io

ganeshthandapani commented 7 years ago

I just say you mailck.io its relay nice. Can you give some idea how to over come this issue of delay. Is there any way to run my project as best.

On Tue, May 9, 2017 at 1:06 PM, Sebastian Mancke notifications@github.com wrote:

Using ip's from public cloud providers for email things is a bad idea. Please compare your results with https://mailck.io

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/smancke/microcart/issues/1#issuecomment-300085658, or mute the thread https://github.com/notifications/unsubscribe-auth/ALebT02zNINkGf7S5JREzrFmR8cboVNmks5r4Bd0gaJpZM4MGPhm .

-- https://about.me/ganeshthandapani?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api Ganesh Thandapani about.me/ganeshthandapani https://about.me/ganeshthandapani?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api

smancke commented 7 years ago

Hmm, please check this out: http://curlybrac.es/2016/07/27/how-to-configure-a-mail-server/ https://www.mail-tester.com/

ganeshthandapani commented 7 years ago

Ok i will try this out, one more thing which one is best for hosting windows or Linux server

smancke commented 7 years ago

Ok, if you don't get it working, I could offer you a free subscription as an early user of mailck.io

ganeshthandapani commented 7 years ago

It is a great offer, nice to hear fro you. I will try to work out with my code if i face problem i will use you api. Thanks for your work.

ganeshthandapani commented 7 years ago

Hey small help from you, I have new EC2 from amazon, which server is best for this process a windows server are Linux server so that i can create an instance and deploy it.

smancke commented 7 years ago

The server type should not mater.

Am 09.05.2017 11:59 vorm. schrieb "ganeshthandapani" < notifications@github.com>:

Hey small help from you, I have new EC2 from amazon, which server is best for this process a windows server are Linux server so that i can create an instance and deploy it.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/smancke/microcart/issues/1#issuecomment-300118575, or mute the thread https://github.com/notifications/unsubscribe-auth/AEF7M_fmeTqwZELsUV9kD3UVDWPmtWaVks5r4DjugaJpZM4MGPhm .

ganeshthandapani commented 7 years ago

Hi Sebastian, While checking some of the mail its throwing EOF error, Do you have any idea about this, if so how to handle it.

smancke commented 7 years ago

Hmm, sorry, no idea - never had that.

ganeshthandapani commented 7 years ago

Thanks, one more issue how will you handle error code 503(access denied). Is it valid or Invalid

On Thu, Jul 13, 2017 at 6:59 PM, Sebastian Mancke notifications@github.com wrote:

Hmm, sorry, no idea - never had that.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/smancke/microcart/issues/1#issuecomment-315077940, or mute the thread https://github.com/notifications/unsubscribe-auth/ALebT7AW96DpCewUaTgKyUXlmBBLCauBks5sNhvOgaJpZM4MGPhm .

-- https://about.me/ganeshthandapani?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api Ganesh Thandapani about.me/ganeshthandapani https://about.me/ganeshthandapani?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api

smancke commented 7 years ago

Depends on my usecase: On a registration or newsletter form I would accept the email.

ganeshthandapani commented 7 years ago

Hi, During this email check in some time my IP address is marked as SPAM by CBL( https://www.abuseat.org/) tool. Do you have any idea of it. This the information from the site [This IP is impersonating (via SMTP HELO command) being a domain we know it cannot be. No properly configured mail server does this under any circumstances.]