vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=262)
-   -   Email not working (https://vborg.vbsupport.ru/showthread.php?t=323919)

Big Kahuna 11-24-2016 03:11 PM

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.

Dave 11-24-2016 03:18 PM

Have you checked the mail/exim logs on your server? Maybe that will tell you what's going wrong.

Big Kahuna 11-24-2016 04:11 PM

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

Seven Skins 11-24-2016 05:22 PM

May be this can help .. https://support.google.com/accounts/.../6010255?hl=en

Dave 11-24-2016 05:51 PM

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.

Big Kahuna 11-24-2016 06:25 PM

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

Replicant 11-24-2016 06:53 PM

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.

Dave 11-24-2016 08:09 PM

Try mailgun.com for sending emails, they give you 10.000 emails for free every month.

Big Kahuna 11-24-2016 11:23 PM

Quote:

Originally Posted by Seven Skins (Post 2578650)

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 (Post 2578659)
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

Dave 11-25-2016 01:06 AM

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


All times are GMT. The time now is 05:02 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01170 seconds
  • Memory Usage 1,788KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete