Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-24-2016, 03:11 PM
Big Kahuna's Avatar
Big Kahuna Big Kahuna is offline
 
Join Date: Feb 2002
Location: SE Texas
Posts: 182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Email not working

Confirmation emails aren't going out on the MoparStyle site, and I can't figure out why

I've tried all of the following without success:
  • Tried the -f setting
  • Tried adjusting every combination of the mail settings with batch, batch size, cron, delay between messages etc. (even though they're technically not suppose to affect the confirmation emails going out immediately). When I use diagnostics to send an email to my gmail account, it says it passes - but no email in my in box, spam box or trash
  • I tried using SMTP with a pop3 email account I've created in my Cpanel. Every diagnostic test fails - even tried all three secured connection settings
  • I updated the php on the hosting account to the most current version, no change
  • I found Vbulletin instructions on using gmail for SMTP, create a throw down gmail account, created a two step log in, add an Other app for Vbulletin; and set up the Forim's SMTP exactly like the instructions say http://www.vbulletin.com/forum/blogs...-gmail-account but I get an diagnostic message that Gmail refused. I verified I have the app, revoked it, recreated it, and tried again with the same results.
I'm at a complete loss at what I'm doing wrong. It is fifteen hours later and still haven't received any emails, so I doubt it is a delay issue. If I can make the Gmail thing work, that might be the best way as I have Go Daddy hosting (prepaid for three years) and don't want to touch the limited resources threshold.
Reply With Quote
  #2  
Old 11-24-2016, 03:18 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you checked the mail/exim logs on your server? Maybe that will tell you what's going wrong.
Reply With Quote
  #3  
Old 11-24-2016, 04:11 PM
Big Kahuna's Avatar
Big Kahuna Big Kahuna is offline
 
Join Date: Feb 2002
Location: SE Texas
Posts: 182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

let me see if I can gain access to that after dinner

I went from a dedicated server to cheap Go Daddy hosting a couple months ago, and need to get a handle on what I actually have access to.

Given my preference, I'd like to use a throwdown gmail account to be my SMTP if possible. The settings I used were:

- "SMTP Email" to Yes.
- "SMTP Host" to smtp.gmail.com
- "SMTP Port" to 587
- "SMTP Username" to your gmail email address ex. user@gmail.com
- "SMTP Password" to the App Password you created above.
- "SMTP Secure Connection" should be set to TLS.


I cut and pasted the App generated 16 digit password, which pasted without the spaces. I assume that would be correct. Is anyone else doing this?

--------------- Added [DATE]1480013266[/DATE] at [TIME]1480013266[/TIME] ---------------

this is what I get in diagnostics trying the Gmail SMTP method after getting an app password

Quote:
Pertinent SMTP Settings
SMTP: tls://smtp.gmail.com:587
SMTP Username: ibethuggman@gmail.com

Results
The mailing function returned an error while trying to send the mail.
The following errors were outputted by PHP when attempting to send mail:

Warning: fsockopen(): unable to connect to tcp://smtp.gmail.com:587 (Connection refused) in .../vb/mail/smtp.php on line 181 Warning: Unable to connect to SMTP server in .../vb/mail/smtp.php on line 147
Reply With Quote
  #4  
Old 11-24-2016, 05:22 PM
Seven Skins's Avatar
Seven Skins Seven Skins is offline
 
Join Date: Sep 2008
Location: London, UK
Posts: 1,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

May be this can help .. https://support.google.com/accounts/.../6010255?hl=en
Reply With Quote
  #5  
Old 11-24-2016, 05:51 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's also possible that your server host blocks incoming/outgoing SMTP traffic in order to avoid spam, might have to reach out to them if that's the case.
Reply With Quote
  #6  
Old 11-24-2016, 06:25 PM
Big Kahuna's Avatar
Big Kahuna Big Kahuna is offline
 
Join Date: Feb 2002
Location: SE Texas
Posts: 182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually I found this piece of returned mail in the New Mail directory of my System default mail directory. I'm going to assume I'm erroneously being blocked by server IP or domain as a spammer on the php generated email, and need to find a good SMTP solution.

Quote:
Return-Path: <>
Delivered-To: moparstyle@a2plxxxxxxxx.prod.iad2.secureserver.net
Received: from a2plxxxxxxxx.prod.iad2.secureserver.net
by a2plxxxxxxxx.prod.iad2.secureserver.net (Dovecot) with LMTP id aXxVDOE8N1gZhQEAJcPNEw
for <moparstyle@a2plxxxxxxxx.prod.iad2.secureserver.ne t>; Thu, 24 Nov 2016 12:17:53 -0700
Return-path: <>
Envelope-to: moparstyle@a2plxxxxxxxx.prod.iad2.secureserver.net
Delivery-date: Thu, 24 Nov 2016 12:17:53 -0700
Received: from mailnull by a2plxxxxxxxx.prod.iad2.secureserver.net with local (Exim 4.87)
id 1c9zWr-000VHR-48
for moparstyle@a2plxxxxxxxx.prod.iad2.secureserver.net; Thu, 24 Nov 2016 12:17:53 -0700
X-Failed-Recipients: davexxxhippie@gmail.com
Auto-Submitted: auto-replied
From: Mail Delivery System <Mailer-Daemon@a2plxxxxxxxx.prod.iad2.secureserver.net>
To: moparstyle@a2plxxxxxxxx.prod.iad2.secureserver.net
Content-Type: multipart/report; report-type=delivery-status; boundary=1480015073-eximdsn-1011465036
MIME-Version: 1.0
Subject: Mail delivery failed: returning message to sender
Message-Id: <E1c9zWr-000VHR-48@a2plcpnl0757.prod.iad2.secureserver.net>
Date: Thu, 24 Nov 2016 12:17:53 -0700

--1480015073-eximdsn-1011465036
Content-type: text/plain; charset=us-ascii

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

davexxxxxxxxhippie@gmail.com
host a2nlsmtpcp-v01.shr.prod.iad2.secureserver.net [xxx.71.232.0]
SMTP error from remote mail server after end of data:
552 5.2.0 9zWrcjTRPrxKJ :: CPANEL :: Message rejected for spam or virus content ::
Please include this entire message when contacting support ::
v=2.1 cv=WJ7fJiYR c=1 sm=1 tr=0 p=qtIuigrTrmoA:10 p=mGY6Kf0_zQgA:10 a=3wOngBlNSV9P3E4YkMav9w==:117 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=9+rZDBEiDlHhcck0kWbJtElFXBc=:19 a=8nJEP1OIZ-IA:10 a=L24OOQBejmoA:10 a=1SRa-O0TrnEA:10 a=0-H72qg4231gaUi91ysA:9 a=wPNLvfGTeEIA:10 ::
100.00

--1480015073-eximdsn-1011465036
Content-type: message/delivery-status

Reporting-MTA: dns; a2plcpnl0757.prod.iad2.secureserver.net

Action: failed
Final-Recipient: rfc822;davexxxxhippie@gmail.com
Status: 5.0.0
Remote-MTA: dns; a2nlsmtpcp-v01.shr.prod.iad2.secureserver.net
Diagnostic-Code: smtp; 552 5.2.0 9zWrcjTRPrxKJ :: CPANEL :: Message rejected for spam or virus content :: Please include this entire message when contacting support :: v=2.1 cv=WJ7fJiYR c=1 sm=1 tr=0 p=qtIuigrTrmoA:10 p=mGY6Kf0_zQgA:10 a=3wOngBlNSV9P3E4YkMav9w==:117 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=9+rZDBEiDlHhcck0kWbJtElFXBc=:19 a=8nJEP1OIZ-IA:10 a=L24OOQBejmoA:10 a=1SRa-O0TrnEA:10 a=0-H72qg4231gaUi91ysA:9 a=wPNLvfGTeEIA:10 :: 100.00

--1480015073-eximdsn-1011465036
Content-type: message/rfc822

Return-path: <moparstyle@a2plxxxxxxxx.prod.iad2.secureserver.ne t>
Received: from moparstyle by a2plxxxxxxxx.prod.iad2.secureserver.net with local (Exim 4.87)
(envelope-from <moparstyle@a2plxxxxxxxx.prod.iad2.secureserver.ne t>)
id 1c9zWq-000VHF-U9
for davexxxhippie@gmail.com; Thu, 24 Nov 2016 12:17:52 -0700
To: davexxxxhippie@gmail.com
Subject: vBulletin Email Test
X-PHP-Script: www.moparstyle.com/forums/index.php for xxx.201.4.33
X-PHP-Filename: /home/moparstyle/public_html/forums/index.php
From: "xxxxx@moparstyle.com" <xxxxx@moparstyle.com>
Message-ID: <20161124191752.3f38c33abf19@www.moparstyle.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Mailer: vBulletin Mail via PHP
Date: Thu, 24 Nov 2016 12:17:52 -0700

You are receiving this email because your email address was entered as an email test at MoparStyle.

The first step of this email test script has been completed. However, a formatting test is still necessary:

A paragraph break.
A single line break.

Another paragraph break.
Another single line break.
Another single line break.

If the above lines look correct, you are finished. The email features on your server are setup correctly.
If this email is run together on one line, there is possibly a configuration error with your mail server. Please ensure it is configured correctly.

--1480015073-eximdsn-1011465036--
--------------- Added [DATE]1480020393[/DATE] at [TIME]1480020393[/TIME] ---------------

another problem that I think is unrelated, but you never know

Wordfence and wordfence-waf.php

I use to have a Wordpress install on the MoparStyle site, but uninstalled and deleted when I upgraded to VB5. I had the Wordfence plugin installed.

That plugin installed a .user.ini, a wordfence-waf.php and modified my .htacess

i created a new .htaccess to redirect the sites root (formerly the Wordpress install) that has no reference to Wordfence.

PHP Code:
RewriteEngine on
RewriteCond 
%{HTTP_HOST} ^(www.)?moparstyle.com$
RewriteCond %{REQUEST_URI} !^/forums/articles
RewriteCond 
%{REQUEST_FILENAME} !-f
RewriteCond 
%{REQUEST_FILENAME} !-d
RewriteRule 
^(.*)$ /forums/articles$1
RewriteCond 
%{HTTP_HOST} ^(www.)?moparstyle.com$
RewriteRule ^(/)?$ forums/articles [L]
#RewriteRule ^/?classifiedads/(.*)$ http://www.moparstyle.com/forums/forum/mopar-classified-ads$1 [R=301,L]
RedirectMatch 301 ^/classifiedads(.*)$ http://www.moparstyle.com/forums/forum/mopar-classified-ads 
However, if I remove the ini or php file every url in domain gets me an Error 500 page. I'm figuring it must have an entry in the php.ini file, but I can't figure out how to access and modify with the limited Cpanel I have with O Addy hare hosting.

the .user.ini

PHP Code:
Wordfence WAF
auto_prepend_file 
'/home/moparstyle/public_html/wordfence-waf.php'
END Wordfence WAF 
I'm wondering if Wordfence or the php.ini is hosing mail from php
Reply With Quote
  #7  
Old 11-24-2016, 06:53 PM
Replicant's Avatar
Replicant Replicant is offline
 
Join Date: Sep 2014
Location: Phoenix, Az. USA
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just my 2 cents. I would grab a monthly plan with Siteground or Nuwebhosting for around $4 bucks a month and setup your own email server. This way, you have total control over "spam banning" issues and never have to worry about whether or not you are complying with some Terms of Service agreement.
Reply With Quote
Благодарность от:
Big Kahuna
  #8  
Old 11-24-2016, 08:09 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try mailgun.com for sending emails, they give you 10.000 emails for free every month.
Reply With Quote
  #9  
Old 11-24-2016, 11:23 PM
Big Kahuna's Avatar
Big Kahuna Big Kahuna is offline
 
Join Date: Feb 2002
Location: SE Texas
Posts: 182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Seven Skins View Post
I'll give it (less secure) a try, but that's not the error I'm getting

--------------- Added [DATE]1480037033[/DATE] at [TIME]1480037033[/TIME] ---------------

Quote:
Originally Posted by Dave View Post
Try mailgun.com for sending emails, they give you 10.000 emails for free every month.
Are VB forums using that as their SMPT?

--------------- Added [DATE]1480038814[/DATE] at [TIME]1480038814[/TIME] ---------------

Ok, I signed up with Mail Gun and made the required DNS adds they required so they can verify. Says it takes 24/48 hours.

We've just jumped above my paygrade as I've never messed with DNS and MX entries before. I'm pretty sure I properly followed the destructions
Reply With Quote
  #10  
Old 11-25-2016, 01:06 AM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've been using mailgun.com for about a year now on my vBulletin forum and other projects, works pretty well.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:20 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06714 seconds
  • Memory Usage 2,286KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete