phpmailer - Mandrill smtp failures -


i'm having enormous difficulty getting mandrill smtp send reliably. or more accurately, authenticate every time. when authenticate email works fine

i can run send script fine, 2 or 3 times in succession 1 after other. doesn't authenticate. on occasions doesn't authenticate straight away.

i thought perhaps it's because thinks i'm abusing , blocked me short period.

but can see since started using mandrill smtp website, failure rate authenticate regular.

tried spf , dmik text attributed on domain. didn't help

looking around can't see other people having issue, @ rate can't use mandrill smtp.

can suggest reasons why happening? credentials 100% accurate, , don't think i'm sending many emails @ all.

having same problem on server using mandrill account.

note: i'm using phpmailer

example debug error:

2014-12-06 08:52:59 connection: opening smtp.mandrillapp.com:587, t=300, opt=array ( ) 2014-12-06 08:52:59 connection: opened 2014-12-06 08:52:59 server -> client: 220 smtp.mandrillapp.com esmtp 2014-12-06 08:52:59 client -> server: ehlo fakemail.com 2014-12-06 08:52:59 server -> client: 250-ip-10-243-6-11 250-pipelining 250-size 26214400 250-starttls 250-auth plain login 250-enhancedstatuscodes 250 8bitmime 2014-12-06 08:52:59 client -> server: auth login 2014-12-06 08:52:59 server -> client: 334 vxnlcm5hbwu6 2014-12-06 08:52:59 client -> server: bwvazg91z25vcmzvbgsuy29tlmf1 2014-12-06 08:52:59 server -> client: 334 ugfzc3dvcmq6 2014-12-06 08:52:59 client -> server: redacted 2014-12-06 08:53:01 server -> client: 435 4.7.8 error: authentication failed: ugfzc3dvcmq6 2014-12-06 08:53:01 smtp error: password command failed: 435 4.7.8 error: authentication failed: ugfzc3dvcmq6 2014-12-06 08:53:01 client -> server: quit 2014-12-06 08:53:01 server -> client: 221 2.0.0 bye 2014-12-06 08:53:01 connection: closed 2014-12-06 08:53:01 smtp connect() failed. mailer error: smtp connect() failed. 

example correct send:

2014-12-06 08:52:33 connection: opening smtp.mandrillapp.com:587, t=300, opt=array ( ) 2014-12-06 08:52:33 connection: opened 2014-12-06 08:52:33 server -> client: 220 smtp.mandrillapp.com esmtp 2014-12-06 08:52:33 client -> server: ehlo fakemail.com 2014-12-06 08:52:33 server -> client: 250-ip-10-250-28-124 250-pipelining 250-size 26214400 250-starttls 250-auth plain login 250-enhancedstatuscodes 250 8bitmime 2014-12-06 08:52:33 client -> server: auth login 2014-12-06 08:52:33 server -> client: 334 vxnlcm5hbwu6 2014-12-06 08:52:33 client -> server: bwvazg91z25vcmzvbgsuy29tlmf1 2014-12-06 08:52:33 server -> client: 334 ugfzc3dvcmq6 2014-12-06 08:52:33 client -> server: redacted 2014-12-06 08:52:33 server -> client: 235 2.7.0 authentication successful 2014-12-06 08:52:33 client -> server: mail from:<me@fakemail.com> 2014-12-06 08:52:33 server -> client: 250 2.1.0 ok 2014-12-06 08:52:33 client -> server: rcpt to:<me@fakemail.com> 2014-12-06 08:52:33 server -> client: 250 2.1.5 ok 2014-12-06 08:52:33 client -> server: data 2014-12-06 08:52:33 server -> client: 354 end data <cr><lf>.<cr><lf> 2014-12-06 08:52:33 client -> server: date: sat, 6 dec 2014 19:52:33 +1100 2014-12-06 08:52:33 client -> server: to: test <me@fakemail.com> 2014-12-06 08:52:33 client -> server: from: test <me@fakemail.com> 2014-12-06 08:52:33 client -> server: subject: here subject 2014-12-06 08:52:33 client -> server: message-id: <0a8f3c40575be98668d8ea6fb03f4bfc@fakemail.com> 2014-12-06 08:52:33 client -> server: x-priority: 3 2014-12-06 08:52:33 client -> server: x-mailer: phpmailer 5.2.9 (https://github.com/phpmailer/phpmailer/) 2014-12-06 08:52:33 client -> server: mime-version: 1.0 2014-12-06 08:52:33 client -> server: content-type: multipart/alternative; 2014-12-06 08:52:33 client -> server:   boundary="b1_0a8f3c40575be98668d8ea6fb03f4bfc" 2014-12-06 08:52:33 client -> server: content-transfer-encoding: 8bit 2014-12-06 08:52:33 client -> server: 2014-12-06 08:52:33 client -> server: --b1_0a8f3c40575be98668d8ea6fb03f4bfc 2014-12-06 08:52:33 client -> server: content-type: text/plain; charset=us-ascii 2014-12-06 08:52:33 client -> server: 2014-12-06 08:52:33 client -> server: body in plain text non-html mail clients 2014-12-06 08:52:33 client -> server: 2014-12-06 08:52:33 client -> server: 2014-12-06 08:52:33 client -> server: --b1_0a8f3c40575be98668d8ea6fb03f4bfc 2014-12-06 08:52:33 client -> server: content-type: text/html; charset=us-ascii 2014-12-06 08:52:33 client -> server: 2014-12-06 08:52:33 client -> server: html message body <strong>in bold!</strong> 2014-12-06 08:52:33 client -> server: 2014-12-06 08:52:33 client -> server: 2014-12-06 08:52:33 client -> server: 2014-12-06 08:52:33 client -> server: --b1_0a8f3c40575be98668d8ea6fb03f4bfc-- 2014-12-06 08:52:33 client -> server: 2014-12-06 08:52:33 client -> server: . 2014-12-06 08:52:33 server -> client: 250 2.0.0 ok: queued 109bc180070 2014-12-06 08:52:33 client -> server: quit 2014-12-06 08:52:33 server -> client: 221 2.0.0 bye 2014-12-06 08:52:33 connection: closed message sent! 

i tried firing email every 5 seconds. 3 out of 10 times didn't send.

1 minute later, tried every 10 seconds. 8 out of 10 didn't send.

since it's intermittent, looks problem @ end. set smtpdebug = 3 see whole smtp conversation.

from one-sided view you've given, doesn't you're using tls, , it's common not allow authentication prior starting tls, though can see server saying it. i'd regard allowing auth without tls security flaw, not need allow.

also make sure you're using latest phpmailer (5.2.9+).


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -