Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #16  
Old 06 May 2014, 15:53
pattycake pattycake is offline
 
Join Date: Jan 2009
Originally Posted by Paul M View Post
We also have this issue on my vB3 forum, Ive been trying to figure out whats going on for 3 weeks (on and off) all our e-mails to Gmail are just getting bounced.
Paul... vb3, vb4, vb8000... it will happen on any vb version that puts anything other than your server as the from (ie, the sender).

The next time one bounces, go look at the header... you'll see the FROM issue.

--------------- Added 06 May 2014 at 15:58 ---------------

Originally Posted by makaiguy View Post
[snip]
I'm testing a hack of sendmessage.php right now that sends these user-generated messages with the default bbs address in the "From" field, and with the sending user's email address in an additional "Reply-to" header. This way the message should pass the Sender-ID test (the From address is on the sending server) but the recipient can still reply to the actual sender thanks to the Reply-to header.

Test messages I've sent via my test board to one of my other email addresses show the headers to be getting sent the way I want. Don't know yet if this really solves the problem when sending to gmail, yahoo, etc.
That should do the trick... it puts the REAL "from" (your server) in the "from" (ie, the "sender") and your "reply to" make a reply go to the correct email address (and not the forum's admin).

I need to go take a qwik check and find all occurances where VB changes this "from" and then I'll be able to post a "one size fits all" solution.

--------------- Added 06 May 2014 at 16:06 ---------------

Click this link - http://www.dmarc.org/faq.html#g_13
It's a frigging dissertation on dmarc... just scroll down 40 or 50 pages to the section titled "Why are messages I send on behalf of visitors to my website being blocked?"

For those not wanting to read thru all that crap, it says:
Why are messages I send on behalf of visitors to my website being blocked?

This depends on how you are sending these messages. If you are simply taking the website visitor's email address and inserting it into the "From:" header of the message, and sending that message from your own servers, then you are impersonating the domain in their email address - in a way that is indistinguishable from spammers.

These practices may have worked previously - in many cases for decades - because before spam became a literally overwhelming problem, nobody checked. The most successful initial mechanisms to combat such spam were IP address-based blocklists, and so your site may have been allowed to continue because it did not appear on such a list. For the past decade, however email authentication has been introduced as a filtering mechanism, and is increasingly being used to detect and block such messages.

As a best practice, you should instead be using a domain you control in the address of the "From:" header, and use mechanisms like SPF, DKIM, and DMARC to show that this message is authorized to use your domain. In the example below, the site visitor's name is shown in the descriptive part of the "From:" header, and the "Reply-To:" header is set to the website visitor's address, but the actual address used in the"From:" header clearly indicates that your website is the origin of the message.
From: "John Doe via the Example Website" <service@website.example.com>
Reply-To: "John Doe" <john@firstmailboxprovider.com>
To: "Bob Smith" <bob@secondmailboxprovider.com>
Subject: "An article I thought you would find interesting"

Last edited by pattycake; 06 May 2014 at 16:07.
Reply With Quote
  #17  
Old 06 May 2014, 16:35
makaiguy's Avatar
makaiguy makaiguy is offline
 
Join Date: May 2004
Here's my hack to sendmessage.php. This is for vB3.8.7 - don't know if there have been syntax changes in later versions. The keys here are the 5th and 6th parameters passed to vbmail().

5th = the From email address. If not specified, or specified as a null (''), the default address for the bbs will be used.

6th = any additional headers you'd like to define. This is where we'll define the Reply-to header.

In my vB 3.8.7 vbmail() is called three times in sendmessage.php.
  1. First time is for ContactUs mails. I don't currently have any trouble with these, probably because MY server isn't making DMARC/Sender-ID checks on incoming mail. Or maybe it's just that, even though it has the sender's email shown as From, in reality it is going from and to the same server (??).

    Find:
    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

    Replace with:
    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

  2. Second is for Send-A-Link-to-Friends mails. These now go thru okay because they show as coming from my admin email address. But would be MUCH better if they also included a Reply-to header so the recipient could reply to the real sender directly, instead of replies coming back to me.

    Find:
    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

    Replace with:
    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

  3. Third is for Email-to-another-bbs-user mails. These are the ones currently giving me fits.

    Find:
    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

    Replace with:
    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.


Last edited by makaiguy; 29 Apr 2016 at 13:12.
Reply With Quote
  #18  
Old 06 May 2014, 17:35
MGO_TOM MGO_TOM is offline
 
Join Date: Nov 2009
Originally Posted by makaiguy View Post
Third is for Email-to-another-bbs-user mails. These are the ones currently giving me fits.

Find:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
PERFECT! Thanks!
I tested both yahoo and aol email addresses (SENDER) and both went through fine now.
Replying to the resulting email does indeed direct it to the real sender.

By the way, my installation is 4.2.2 and there was no change in syntax on this hack.
Reply With Quote
  #19  
Old 06 May 2014, 21:40
makaiguy's Avatar
makaiguy makaiguy is offline
 
Join Date: May 2004
Originally Posted by MGO_TOM View Post
PERFECT! Thanks!
I tested both yahoo and aol email addresses (SENDER) and both went through fine now.
Replying to the resulting email does indeed direct it to the real sender.
Thanks for the feedback. It seems to be doing what it's supposed to here, too.

By the way, my installation is 4.2.2 and there was no change in syntax on this hack.
That's good to hear for when (if?) I finally get around to updating this beast.

I really hate to do this by hacking a php file, but I couldn't figure out how to do this via a plugin.
Reply With Quote
  #20  
Old 06 May 2014, 23:43
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
Originally Posted by pattycake View Post
Paul... vb3, vb4, vb8000... it will happen on any vb version that puts anything other than your server as the from (ie, the sender).

The next time one bounces, go look at the header... you'll see the FROM issue.
That wasnt the issue, as I said, it was rejecting all e-mails, the vast majority of them being subscription e-mails, which come from the sender domain.

Basically gmail has become very picky/sensitive to the slightest error. I went through our whole email set up and found a couple issues, one of which I suspect was probably the culprit, but Im not going to reverse them to confirm. Basically our IPv6 reverse dns was incorrect, but I dont think that was the problem, more likely was that the domain in our MX record (mail.mydomain.com) was pointed to a CNAME record (it CNAMED to mailserver.mydomain.com). Apparently this is not RFC compliant, so I changed them to use the direct server name which is defined as an A record.
__________________
Former vBulletin.org Staff Member


Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum.
Reply With Quote
  #21  
Old 07 May 2014, 13:54
makaiguy's Avatar
makaiguy makaiguy is offline
 
Join Date: May 2004
ERROR CORRECTED

I've found an error in the replacement ContactUs code (point #1 above).

The original code, which used $vbulletin->userinfo['email'] to retrieve the poster's email address for insertion into the Reply-to header, only works for logged-in registered users of the board. If you allow un-logged-in visitors to use the Contact Us form, the email address they enter will not be picked up for the Reply-to header.

Instead, use $vbulletin->GPC['email'], as in the original vB coding. This works both for logged-in users and for visitors.

I've edited the code in the original post.
Reply With Quote
  #22  
Old 12 Jun 2014, 22:59
Terrablade Terrablade is offline
 
Join Date: Oct 2013
Applied all mentioned here but for some reason every once in a while i get this.

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:

kalembo@hotmail.com
SMTP error from remote mail server after end of data:
host mx2.hotmail.com [207.46.8.199]: 550 5.7.0 (BAY004-MC6F11) Message could not be delivered. Please ensure the message is RFC 5322 compliant.

any info?
Reply With Quote
  #23  
Old 20 Jun 2014, 20:30
abuthabit abuthabit is offline
 
Join Date: Jul 2006
many thanks I always effected with hotmail blocking 🌕 🌕 🌕
Reply With Quote
  #24  
Old 11 Sep 2014, 13:42
oldengine oldengine is offline
 
Join Date: Mar 2004
Thanks makaiguy, resolved the Yahoo policy rejects.
Reply With Quote
  #25  
Old 25 Sep 2014, 14:57
oldengine oldengine is offline
 
Join Date: Mar 2004
And now there's this...

This message has been rejected due to content judged to be spam by the internet community\302\240IB212

Read this sweet information: http://x.co/crbounce

552 This message has been rejected due to content judged to be spam by the Internet community. IB212

The email message contains a link, attachment, or pattern caught by our filters as spam. Please include an option to opt out in your email messages. Then check your sending lists to ensure you are only sending to recipients who have selected to opt in to receiving your mail. If you feel this message has been flagged as spam erroneously, please be sure to obtain a copy of the original message attempting to be sent, and then contact support.

OH, but OPTING OUT is a LINK isn't it?

Contact their support? Their email is do-not-reply.
Reply With Quote
  #26  
Old 25 Sep 2014, 16:13
makaiguy's Avatar
makaiguy makaiguy is offline
 
Join Date: May 2004
Originally Posted by oldengine View Post
And now there's this...

This message has been rejected due to content judged to be spam by the internet community\302\240IB212

Read this sweet information: http://x.co/crbounce

552 This message has been rejected due to content judged to be spam by the Internet community. IB212

The email message contains a link, attachment, or pattern caught by our filters as spam. Please include an option to opt out in your email messages. Then check your sending lists to ensure you are only sending to recipients who have selected to opt in to receiving your mail. If you feel this message has been flagged as spam erroneously, please be sure to obtain a copy of the original message attempting to be sent, and then contact support.

OH, but OPTING OUT is a LINK isn't it?

Contact their support? Their email is do-not-reply.
Have run into the same thing here, with the same frustration. They're occurring for me with forum and thread subscription email notices. I guess their software is too dumb to recognize that "unsubscribe" links are the same thing as "opt out" links.

I've just edited the boilerplate phrases that generate these messages so that everywhere they said "unsubscribe" they now say "unsubscribe (opt out)". Too soon to know if this makes any difference.
Reply With Quote
  #27  
Old 20 Nov 2014, 14:53
makaiguy's Avatar
makaiguy makaiguy is offline
 
Join Date: May 2004
Originally Posted by makaiguy View Post
I've just edited the boilerplate phrases that generate these messages so that everywhere they said "unsubscribe" they now say "unsubscribe (opt out)". Too soon to know if this makes any difference.
It's been almost two months now and I haven't received any more of those rejection notices, so maybe this worked.
Reply With Quote
  #28  
Old 20 Nov 2014, 16:15
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Real name: Richie
It is not so much having it in your email but on your site when people register. When you do the request with Google and Microsoft to stop blocking your email you have to submit the opt in/out link along with other stuff.

What gets us hammered as well is if someone marks you as spam.

I went through email a couple months ago and had to do my dns settings over completely including new name servers. it is vital that your sending ip address matches your domain.

At any rate, glad it is working out for you now.

It really ticked me off when this happened to me because we do not spam anyone and were being blocked only because our email server settings were not up to standard.
__________________

Let us take care of your forum, seo, seo reports, maintenance, what ever you need.

Reply With Quote
  #29  
Old 16 Dec 2014, 07:42
dougdirac's Avatar
dougdirac dougdirac is offline
 
Join Date: Nov 2011
Originally Posted by makaiguy View Post
Here's my hack to sendmessage.php. This is for vB3.8.7 - don't know if there have been syntax changes in later versions. The keys here are the 5th and 6th parameters passed to vbmail().

5th = the From email address. If not specified, or specified as a null (''), the default address for the bbs will be used.

6th = any additional headers you'd like to define. This is where we'll define the Reply-to header.

In my vB 3.8.7 vbmail() is called three times in sendmessage.php.
  1. First time is for ContactUs mails. I don't currently have any trouble with these, probably because MY server isn't making DMARC/Sender-ID checks on incoming mail. Or maybe it's just that, even though it has the sender's email shown as From, in reality it is going from and to the same server (??).

    Find:
    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

    Replace with:
    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

  2. Second is for Send-A-Link-to-Friends mails. These now go thru okay because they show as coming from my admin email address. But would be MUCH better if they also included a Reply-to header so the recipient could reply to the real sender directly, instead of replies coming back to me.

    Find:
    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

    Replace with:
    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

  3. Third is for Email-to-another-bbs-user mails. These are the ones currently giving me fits.

    Find:
    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

    Replace with:
    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

Would be great if we could get 1 and 3 added to the core in vB 4.2.3 Beta 4
Reply With Quote
  #30  
Old 29 Apr 2016, 12:17
Avensen Avensen is offline
 
Join Date: Oct 2006
I had to change


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

to


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

to make it RFC compliant and get it working with some e-mail provider.

Changes are: the capital T in Reply-To: and added space after Reply-To:
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Administrative and Maintenance Tools Email Rules - Require that users' email addresses match a regular expression Analogpoint vBulletin 3.8 Add-ons 15 03 May 2013 13:26
vBulletin POP3 / IMAP Email Client for vB3 - Web-based access to POP email accounts! Erwin vBulletin 3.0 Full Releases 309 09 May 2008 12:31



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 19:06.

Layout Options | Width: Wide Color: