• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.2 Confirmation Email Error

#1
I have an error where the confirmation email does not send for registration. If someone could help me solve this or direct me to a post concerning this topic, I'd appreciate it.

Extra info
I've set it to SMTP mode, and it's still not working.
Some users have been able to sign up, but the majority can't.
 

Tracy Perry

Well-known member
#2
I have an error where the confirmation email does not send for registration. If someone could help me solve this or direct me to a post concerning this topic, I'd appreciate it.

Extra info
I've set it to SMTP mode, and it's still not working.
Some users have been able to sign up, but the majority can't.
Are they checking their spam email? Are you relaying through something like Gmail (for the smtp)? Are you using your own mail server (and if so, have you checked your mail logs to see if the mail is being rejected)?
 
#3
Are they checking their spam email? Are you relaying through something like Gmail (for the smtp)? Are you using your own mail server (and if so, have you checked your mail logs to see if the mail is being rejected)?
I'm using my own mail server. I checked the sent box and nothing has been sent to anyone.
 

Tracy Perry

Well-known member
#4
I'm using my own mail server. I checked the sent box and nothing has been sent to anyone.
Is this a shared hosting or a VPS/Dedicated server? It's sounding like your mail is being rejected just off-hand. Can happen if you haven't made certain DNS entries.
Make sure you have a RDNS entry and a _dmarc entry just for starters.
Do you have access to the mail log to check it for errors?

Successful emails (if using postfix) should look something like this
Code:
Jun 25 20:30:03 alpha postfix/pickup[19809]: AA5CC641B97: uid=33 from=<support@twowheeldemon.com>
Jun 25 20:30:03 alpha postfix/cleanup[22564]: AA5CC641B97: message-id=<20130626013003.AA5CC641B97@alpha.twowheeldemon.com>
Jun 25 20:30:03 alpha postfix/qmgr[2088]: AA5CC641B97: from=<support@twowheeldemon.com>, size=4176, nrcpt=1 (queue active)
Jun 25 20:30:04 alpha postfix/smtp[22566]: connect to gmail-smtp-in.l.google.com[2607:f8b0:4002:c01::1b]:25: Network is unreachable
Jun 25 20:30:04 alpha postfix/smtp[22566]: AA5CC641B97: to=<xxxxxxxxxxx@gmail.com>, relay=gmail-smtp-in.l.google.com[74.125.137.26]:25, delay=1.3, delays=0.04/
0.01/0.9/0.34, dsn=2.0.0, status=sent (250 2.0.0 OK 1372210213 j1si12423084yhe.66 - gsmtp)
Jun 25 20:30:04 alpha postfix/qmgr[2088]: AA5CC641B97: removed
 
Last edited:
#5
Is this a shared hosting or a VPS/Dedicated server? It's sounding like your mail is being rejected just off-hand. Can happen if you haven't made certain DNS entries.
Make sure you have a RDNS entry and a _dmarc entry just for starters.
Do you have access to the mail log to check it for errors?

Successful emails (if using postfix) should look something like this
Code:
Jun 25 20:30:03 alpha postfix/pickup[19809]: AA5CC641B97: uid=33 from=<support@twowheeldemon.com>
Jun 25 20:30:03 alpha postfix/cleanup[22564]: AA5CC641B97: message-id=<20130626013003.AA5CC641B97@alpha.twowheeldemon.com>
Jun 25 20:30:03 alpha postfix/qmgr[2088]: AA5CC641B97: from=<support@twowheeldemon.com>, size=4176, nrcpt=1 (queue active)
Jun 25 20:30:04 alpha postfix/smtp[22566]: connect to gmail-smtp-in.l.google.com[2607:f8b0:4002:c01::1b]:25: Network is unreachable
Jun 25 20:30:04 alpha postfix/smtp[22566]: AA5CC641B97: to=<xxxxxxxxxxx@gmail.com>, relay=gmail-smtp-in.l.google.com[74.125.137.26]:25, delay=1.3, delays=0.04/
0.01/0.9/0.34, dsn=2.0.0, status=sent (250 2.0.0 OK 1372210213 j1si12423084yhe.66 - gsmtp)
Jun 25 20:30:04 alpha postfix/qmgr[2088]: AA5CC641B97: removed
It's shared hosting. I also don't have access to the mail log.
 

Mike

XenForo developer
Staff member
#8
Anything in your XF server error logs? (Tools > Server Error Logs)

I've seen servers that block outgoing connections so SMTP doesn't work and then they disable the mail() function as well so you can't actually send mail at all...
 
#9
Ah, found a lot of errors.

  1. Could not read from us-webserver.dedivps.net 11 minutes ago - library/Zend/Mail/Protocol/Abstract.php:385
  2. Could not read from us-webserver.dedivps.net 46 minutes ago - library/Zend/Mail/Protocol/Abstract.php:385
  3. Could not read from us-webserver.dedivps.net 47 minutes ago - library/Zend/Mail/Protocol/Abstract.php:385
  4. Could not read from us-webserver.dedivps.net Today at 6:12 PM - library/Zend/Mail/Protocol/Abstract.php:385
  5. Could not read from us-webserver.dedivps.net Today at 6:11 PM - library/Zend/Mail/Protocol/Abstract.php:385
  6. Could not read from us-webserver.dedivps.net Today at 5:46 PM - library/Zend/Mail/Protocol/Abstract.php:385
  7. Could not read from us-webserver.dedivps.net Today at 4:28 PM - library/Zend/Mail/Protocol/Abstract.php:385
  8. Could not read from us-webserver.dedivps.net Today at 4:25 PM - library/Zend/Mail/Protocol/Abstract.php:385
  9. Could not read from us-webserver.dedivps.net Today at 4:25 PM - library/Zend/Mail/Protocol/Abstract.php:385
  10. Could not read from us-webserver.dedivps.net Today at 4:24 PM - library/Zend/Mail/Protocol/Abstract.php:385
On the first one, which says 11 minutes ago, here's the stack trace.

#0 /home/zerpnati/public_html/library/Zend/Mail/Protocol/Abstract.php(415): Zend_Mail_Protocol_Abstract->_receive(300)
#1 /home/zerpnati/public_html/library/Zend/Mail/Protocol/Smtp.php(199): Zend_Mail_Protocol_Abstract->_expect(220, 300)
#2 /home/zerpnati/public_html/library/Zend/Mail/Transport/Smtp.php(200): Zend_Mail_Protocol_Smtp->helo('localhost')
#3 /home/zerpnati/public_html/library/Zend/Mail/Transport/Abstract.php(348): Zend_Mail_Transport_Smtp->_sendMail()
#4 /home/zerpnati/public_html/library/Zend/Mail.php(1194): Zend_Mail_Transport_Abstract->send(Object(Zend_Mail))
#5 /home/zerpnati/public_html/library/XenForo/Mail.php(177): Zend_Mail->send()
#6 /home/zerpnati/public_html/library/XenForo/Mail.php(152): XenForo_Mail->sendMail(Object(Zend_Mail))
#7 /home/zerpnati/public_html/library/XenForo/Model/UserConfirmation.php(136): XenForo_Mail->send('connor_para@iin...', 'Paraot_WA')
#8 /home/zerpnati/public_html/library/XenForo/ControllerPublic/AccountConfirmation.php(98): XenForo_Model_UserConfirmation->sendEmailConfirmation(Array)
#9 /home/zerpnati/public_html/library/XenForo/FrontController.php(313): XenForo_ControllerPublic_AccountConfirmation->actionResend()
#10 /home/zerpnati/public_html/library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#11 /home/zerpnati/public_html/index.php(13): XenForo_FrontController->run()
#12 {main}

I actually asked a user to resend their email confirmation, and this is what came up.
I've also been in contact with our host, and am currently waiting on their reply. What can I be told about this stack trace?
 
Last edited:

Mike

XenForo developer
Staff member
#10
It's just a communication issue with your SMTP server. One of the several reasons I don't generally recommend using external SMTP servers (over the default PHP methods).