[2.0.17] Live Email Validate (LEV)

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Post Reply

Rating:

Excellent!
21
66%
Very Good
6
19%
Good
2
6%
Fair
0
No votes
Poor
3
9%
 
Total votes: 32

markus_petrux
Former Team Member
Posts: 1887
Joined: Wed Apr 23, 2003 7:11 am
Location: Girona, Catalunya (Spain)
Contact:

Post by markus_petrux » Mon Jun 13, 2005 7:38 am

Excelent MOD, I love it.

I had a problem with a user trying to register to one of my boards. His SMTP server was rejecting the connection made by LEV to verify the e-mail with the following message: "550-Forged HELO: you are not emaildomain.com our local domain and you are not allowed".

Well, I've been looking at the docs and found this (quoted from RFC1123): "the receiver MUST NOT refuse to accept a message, even if the sender's HELO command fails verification". However, I think I found one of those host which are not completely "in sync" with that.

This is the relevant part of the quoted RFC1123:

Code: Select all

      5.2.5  HELO Command: RFC-821 Section 3.5

         The sender-SMTP MUST ensure that the <domain> parameter in a
         HELO command is a valid principal host domain name for the
         client host.  As a result, the receiver-SMTP will not have to
         perform MX resolution on this name in order to validate the
         HELO parameter.

         The HELO receiver MAY verify that the HELO parameter really
         corresponds to the IP address of the sender.  However, the
         receiver MUST NOT refuse to accept a message, even if the
         sender's HELO command fails verification.

         DISCUSSION:
              Verifying the HELO parameter requires a domain name lookup
              and may therefore take considerable time.  An alternative
              tool for tracking bogus mail sources is suggested below
              (see "DATA Command").

              Note also that the HELO argument is still required to have
              valid <domain> syntax, since it will appear in a Received:
              line; otherwise, a 501 error is to be sent.

         IMPLEMENTATION:
              When HELO parameter validation fails, a suggested
              procedure is to insert a note about the unknown
              authenticity of the sender into the message header (e.g.,
              in the "Received:"  line).
So, I made the following change to this MOD, and it seems to work better now:

FIND:

Code: Select all

fputs($connect, "HELO " . $hostname . "\r\n");
REPLACE WITH:

Code: Select all

fputs($connect, "HELO " . $board_config['server_name'] . "\r\n");
Hope that helps someone.
EasyMOD Standards | MOD Template Actions | MODs in Development Rules
Useful information for MOD Authors | MOD Queue Stats | Search MODs
Write SQL/DDL portable to all SQL servers supported by phpBB!
Get EasyMOD 0.3.0! | Suport al phpBB en Català!
8)

Wulf_9
Registered User
Posts: 130
Joined: Sun Mar 20, 2005 8:13 pm
Location: Norwich, UK

Post by Wulf_9 » Mon Jun 13, 2005 9:08 am

Cheers Markus, you're a star! More info for the next version then 8)
`
"It's not the things you do right that matter, it's the things you don't do wrong"

markus_petrux
Former Team Member
Posts: 1887
Joined: Wed Apr 23, 2003 7:11 am
Location: Girona, Catalunya (Spain)
Contact:

Post by markus_petrux » Mon Jun 13, 2005 9:15 am

You're welcome. :)
EasyMOD Standards | MOD Template Actions | MODs in Development Rules
Useful information for MOD Authors | MOD Queue Stats | Search MODs
Write SQL/DDL portable to all SQL servers supported by phpBB!
Get EasyMOD 0.3.0! | Suport al phpBB en Català!
8)

User avatar
JBSM
Registered User
Posts: 136
Joined: Tue May 10, 2005 7:19 am
Location: United Kingdom
Contact:

Post by JBSM » Fri Jul 15, 2005 9:56 am

JBSM wrote: HI,

This mod was installed through EM....Have double and triple checked the language files. In particular......

lang_admin.php says

Code: Select all

// +MOD: Live Email Validate (LEV)
$lang['Live_email_validation_title'] = 'Use Live Email Validation';
// -MOD: Live Email Validate (LEV)
//
// That's all Folks!
// -------------------------------
 
I am baffled why there is no title in the ACP....as I assume this text would have placed it there. Its just a blank field....with values Yes & No


OK. Reinstalled my board and this mod. I created this mod first before any others. The config board looks fine now. The missing titles happen because it was waiting for other mods that were previously installed to be installed. Once the missing mods were installed all appeared.

_______________________________

NEXT PROB NOW IVE GOT IT, IS UNDERSTANDING IT!

I turned LEV on and created and tried to Register a Hotmail User.
I got this message....

Code: Select all

Could not connect to the mail server, see the FAQ page for further info 
mx3.hotmail.com : no route to this domain, host unavailable 
When I switch it off and register user, user is registered fine.

I can also send email from email buttons on board.....checked message it sends my email.....
The sender of this message, jbsm_4@hotmail.com, could not be verified by Sender ID. Learn more about Sender ID.
From : <jbsm_4@hotmail.com>
Reply-To : jbsm_4@hotmail.com
Sent : 15 July 2005 10:23:09
To : jbsm_4@hotmail.com
Subject : TESTING EMAILING

| | Junk E-Mail | Inbox

MIME-Version: 1.0
Received: from qmail-cgi-bulk-0.netfirms.com ([64.34.64.26]) by MC6-F33.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Fri, 15 Jul 2005 02:23:31 -0700
Received: (qmail 77980 invoked from network); 15 Jul 2005 09:23:10 -0000
Received: from unknown (10.8.8.4) by 0 with QMQP; 15 Jul 2005 09:23:10 -0000
X-Message-Info: JGTYoYF78jG7XZYk3osNAtUZJOrqKK68lGto+IbfHvc=
X-IP: 80.3.160.5
X-URI: //Guestbook/nfphpbb/profile.php?mode=email&u=3&sid=88314fb24b9a041d8b7860ec9cbb177b
X-ID: 1993253
X-MSMail-Priority: Normal
X-Mailer: PHP
X-MimeOLE: Produced By phpBB2
Return-Path: jbsm_4@hotmail.com
X-OriginalArrivalTime: 15 Jul 2005 09:23:32.0163 (UTC) FILETIME=[DE4E6130:01C5891E]



What should I be doing to get this to function in LEV mode?

Wulf_9
Registered User
Posts: 130
Joined: Sun Mar 20, 2005 8:13 pm
Location: Norwich, UK

Post by Wulf_9 » Fri Jul 15, 2005 10:07 am

Some servers won't accept the sender's name in a HELO command (see Markus Petrux's post two above this one) - in these cases try his suggestion and see if it works. This error message literally means it's not allowing a socket to be created on port 25 - nothing I or you can do about that, blame them :roll:
Hotmail are one of many hosts that probably won't allow 'relaying' via SMTP. In fact it responds to 'trace' but not 'ping' - try another mailserver with LEV enabled and see what happens ;)
`
"It's not the things you do right that matter, it's the things you don't do wrong"

User avatar
JBSM
Registered User
Posts: 136
Joined: Tue May 10, 2005 7:19 am
Location: United Kingdom
Contact:

Post by JBSM » Fri Jul 15, 2005 10:18 am

Hi Wulf that was quick reply... :lol:

Am I suppose to have SMTP on, in my config board? It is currently set to no. If you say yes......please be aware I know nothing of SMTP.

Already changed functions_validate file as mentioned above but no difference.

And are we saying this mod will not accept those that enter a hotmail id?
This is a big issue for you? Surely there must be something that can be done...if it accepts them when the mod is not on, can we not have the mod force it through and it flag admin that it requires admin to determine if they have access. Maybe at the point of submitting it lets the user know that there is an issue with using this kind of id and they should consider registering with another id.

something on those lines then doesnt annoy anyone if they are registering with the id.

You could have an option in config board to switch on allow admin to validate these ones manually.
You could have a dropdown that allowed you to enter "hotmail" etc as those with problems.....

That way I dont have to switch this feature off.

Also maybe put a email link in the error msg bit that allows them to email admin if they need to rather than waiting.

OR TELL ME TO GET LOST :twisted:

Wulf_9
Registered User
Posts: 130
Joined: Sun Mar 20, 2005 8:13 pm
Location: Norwich, UK

Post by Wulf_9 » Fri Jul 15, 2005 11:37 am

I won't tell you to get lost, your suggestions give me food for thought... so let me think about it before I reply this time :D
`
"It's not the things you do right that matter, it's the things you don't do wrong"

User avatar
JBSM
Registered User
Posts: 136
Joined: Tue May 10, 2005 7:19 am
Location: United Kingdom
Contact:

Post by JBSM » Fri Jul 15, 2005 11:43 am

I have to nip out for a while now but if you need anyone to help with testing it or if I think of anything better, will let you know

:lol:

User avatar
JBSM
Registered User
Posts: 136
Joined: Tue May 10, 2005 7:19 am
Location: United Kingdom
Contact:

Post by JBSM » Fri Jul 15, 2005 5:01 pm

So where did we get to.....
Senario.....

Hotmail User comes in today to use LEV, gets rejected.
Not the tools fault but a email provider issue.

:!: First off, who does it reject?
LEV modified to identify providers on a non-relay list (admin can add to list?)

:idea: User is notified that LEV does not support their email provider. Can they use another email address?


:arrow: If Yes.....Takes them back to the Reg form.
:arrow: If No......They are advised that LEV will send a Registration Acknowledgement Email to the address they provided, which they must click the acknowledgement Link (This is currently the process used for boards where admin control access).

:idea: A button added to send an Email from there, to Admin if there is an issue.

You could integrate Pentapenguins Advance IP Tool Pack to pick up the IP address on Registration and send it with the Email, that way you can check who is their ISP which they could have a Email Account with. It would also give an IP history.

:idea: Finally, Error messages for this tool look standard, can we have an LEV FAQ, so that when click the FAQ Link in the Error message we find the correct meaning and whats causing it.

How does that sound :?:

.

Wulf_9
Registered User
Posts: 130
Joined: Sun Mar 20, 2005 8:13 pm
Location: Norwich, UK

Post by Wulf_9 » Fri Jul 15, 2005 6:24 pm

Sounds very good if it can all be made to work. Cue clashing and grinding of mental gears... watch this space 8)
`
"It's not the things you do right that matter, it's the things you don't do wrong"

User avatar
JBSM
Registered User
Posts: 136
Joined: Tue May 10, 2005 7:19 am
Location: United Kingdom
Contact:

Post by JBSM » Sun Jul 17, 2005 10:20 pm

OK..SECONDLY....we have looked at it from a user point of view.

But surely the issue is with the board.

Remember, it is the sender (BEING THE BOARD) that is not recognised by the users email provider.

ie: my board is setup with jbsm_4@hotmail.com and if I register another email address I still get a message saying...
Could not connect to the mail server, see the FAQ page for further info
smtpin.ntlworld.com : no route to this domain, host unavailable


So this provider doesnt like the board. FINE! I suspect a large amount do not like it too.

Solution....

1. Boards changed to another address.
2. LEV Switched Off.
3. Something else. ???? Im thinking !!!!! I'll get back to you on this!

User avatar
JBSM
Registered User
Posts: 136
Joined: Tue May 10, 2005 7:19 am
Location: United Kingdom
Contact:

Post by JBSM » Mon Jul 18, 2005 9:28 am

I can confirm that.......

1.using a relay email address (ntl account) as the board address and registering a non-relay email address (hotmail) produces this error....

Could not connect to the mail server, see the FAQ page for further info mx1.hotmail.com : no route to this domain, host unavailable

This occurs even if config settings are set with smtp server address

Possible solution mentioned in previous post above with manual validation

------------------------------------------------------------------

2.using a non-relay email address (hotmail account) as the board address and registering a non-relay email address (hotmail) produces this error....

Could not connect to the mail server, see the FAQ page for further info mx1.hotmail.com : no route to this domain, host unavailable

Still thinking on a solution for this senario

--------------------------------------------------------------------



.

JKeats
Registered User
Posts: 312
Joined: Thu Mar 20, 2003 12:32 am
Contact:

Post by JKeats » Tue Aug 02, 2005 9:21 pm

i, unfortunately, am not having any luck with this.

i tried reging a test account and tried a few different addresses.

i tried an @mailsnare.net account (which is the paid email service i use)

i tried an @yahoo.com account (which is the free account i have)

and i tried an @charter.net account (which is the account associated with my isp)

none of these worked. for each one i get the "mail.charter.net : no route to this domain, host unavailable" (where mail.charter.net is obviously different for the 3 different addresses i tried).

any ideas what might be going wrong?
The only thing necessary for the triumph of evil is for good men to do nothing.

User avatar
JBSM
Registered User
Posts: 136
Joined: Tue May 10, 2005 7:19 am
Location: United Kingdom
Contact:

Post by JBSM » Wed Aug 03, 2005 8:01 am

OK......when you say you've tried different addys pls explain...

Whats the addy assigned to the board in the ACP configuration?

Try with the board not using a free email, as I know mine doesnt work for this reason.

JKeats
Registered User
Posts: 312
Joined: Thu Mar 20, 2003 12:32 am
Contact:

Post by JKeats » Wed Aug 03, 2005 4:18 pm

i'm not sure i follow... but here's the setup.

the board email (which i'm assuming you mean the one you set as the admin email in the board config) is an @side-pot.com email address (since the website is www.side-pot.com).

so then i tried registering a test account using the 3 email addresses listed above. two of those thing (not the yahoo one) are not free email addresses. indeed, the charter address i mention in my previous post is a pretty major isp (at least here on the west coast). the yahoo was the only free email address i tried.

did i answer your question or was i confused as to what you were asking?
The only thing necessary for the triumph of evil is for good men to do nothing.

Post Reply

Return to “[2.0.x] MOD Database Releases”