Previous Thread
Next Thread
Print Thread
Hop To
#173957 01/16/2007 10:35 PM
Joined: Jan 2004
Posts: 41
J
Jim
Offline
Newbie
Newbie
J Offline
Joined: Jan 2004
Posts: 41
I've installed Threads 7.1 on Windows 2003 with IIS 6. The site is not live yet, but I have been testing before final import of Classic data.

Emails fail to deliver to email servers using qmail. Using the information in the server events log, I found the following post which describes a possible cause.
Bare Linefeeds in SMTP

Does anyone know where I can find the code that generates emails to verify no bare linefeeds are being sent?

I tried searching these forums and couldn't find any related posts.

Thanks,
Jim Quinn

Joined: Aug 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1
I think this is it:

Try:
Replace the bare \n's with \r\n

In:
Control Panel » Languages » Language Editor » adduser.php

PASS_BODY
NEWREGBODY

Unfortunately I cannot search for \n as it's too short. If I find more I'll amend this post.

Last edited by jgeoff; 01/17/2007 2:01 PM.

GangsterBB.NET (Ver. 7.6.1.1)
PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Joined: Jan 2004
Posts: 41
J
Jim
Offline
Newbie
Newbie
J Offline
Joined: Jan 2004
Posts: 41
Thanks jgeoff!

I did find raw line feeds in some of the language text. I also found raw line feeds in the ubbthreads.inc.php where it adds a signiture to every email. I commented out the signature and am still having the same problem, so I will keep looking.

I set the IIS Default SMTP Service log file options to show more detial and have confirmed that the destination email server is still rejecting email due to \n.

I'll post an update if I find a solution.

Joined: Jan 2004
Posts: 41
J
Jim
Offline
Newbie
Newbie
J Offline
Joined: Jan 2004
Posts: 41
Update:

First of all, our server has Threads version 7.0.2 intsalled, I was mistaken in my first post.

After clearing the SMTP cache, I was able to use the UBB.Classic software to generate emails and successfully deliver to qmail servers. I still can't get the Threads forum to deliver for qmail servers only.

If anyone else is experiencing this problem with Threads 7.0.2 on Win 2003 IIS6, please let me know. It's possible that others are having this problem and don't even realize it. One would have to look through SMTP logs to even know that there is a problem, unless they are contacted by a registrant who didn't recieve their registration email.




Joined: Jan 2004
Posts: 41
J
Jim
Offline
Newbie
Newbie
J Offline
Joined: Jan 2004
Posts: 41
I've been working on a problem discovered after installing 7.0.2 on a Windows 2003 server. I posted in the "General Assistance" forum:
Initial Post

I can email from the server to qmail servers, and UBB.Classic is also successful, the threads version produces emails that are rejected by qmail servers due to raw linefeeds. I've tried finding any instances of '\n' in the language files and also in other files replacing each instance with '\r\n', still no luck.


Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
Why use qmail? Windows Server 2003 has it's own SMTP.

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
I have merged your two threads Jim, since they're both for the same issue.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jan 2004
Posts: 41
J
Jim
Offline
Newbie
Newbie
J Offline
Joined: Jan 2004
Posts: 41
ntdoc,

We are using the Windows 2003 SMTP. The problem only occurs when threads sends an email to users hosted on a qmail server.

See this page

Joined: Jan 2004
Posts: 41
J
Jim
Offline
Newbie
Newbie
J Offline
Joined: Jan 2004
Posts: 41
Gizmo,

Thanks for the merge and sorry for posting in the bug forum. If you know of anyone running 7.0.2 on Win 2003 and IIS 6 successfully, please let me know.

Thanks

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
I believe NT uses 2003, not sure of any others offhand... at least that come forward for my windows vs linux arguements wink...

I've not heard of this issue before so I'm nto entirely sure what to say...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Is there an error message by chance?


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
Originally Posted by Jim
Gizmo,

Thanks for the merge and sorry for posting in the bug forum. If you know of anyone running 7.0.2 on Win 2003 and IIS 6 successfully, please let me know.

Thanks

I'm running UBBT 7.02 on Windows Server 2003 Standard Edition with IIS 6, PHP 5.20 and MySQL 5.027 and we send mail just fine.

Quote
The problem only occurs when threads sends an email to users hosted on a qmail server.

If you can send mail to all EXCEPT Qmail then I'd say it's an issue for users on Qmail, not UBB or MS Server 2003

It might be possible to find an issue in how the mail is sent but sure sounds weird to me that as a recepient that mail would bounce or not come to me due to a line feed in the mail. eek

.

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Originally Posted by ntdoc
If you can send mail to all EXCEPT Qmail then I'd say it's an issue for users on Qmail, not UBB or MS Server 2003
thats what i was thinking; but then I took to thought that i think he said hotmail users are rejected?


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jan 2004
Posts: 41
J
Jim
Offline
Newbie
Newbie
J Offline
Joined: Jan 2004
Posts: 41
Gizmo,

Thanks for the info. I registered in NT's forum with an address served by qmail. I haven't received a verification email yet, but he might have the registration queue enabled. I will check back later to see if it goes through.

BTW: I would prefer linux for the forums or anything PHP, but it's not always an option when working for customers who have everything else on Windows.

Thanks

Joined: Jan 2004
Posts: 41
J
Jim
Offline
Newbie
Newbie
J Offline
Joined: Jan 2004
Posts: 41
ntdoc,

It is an issue only for qmail hosted email accounts, but the forums I am working for are international and large. The email address I used to register in your forums is hosted by godaddy, secureserver.net handles email for a large number of sites. Unfortunatley, it appears that qmail is the only email service that is currently enforcing 822bis section 2.3. From my research, it seems that this qmail standard is very old, and hasn't been an issue with IIS 5, but IIS 6 doesn't convert the \n into \r\n.

I hope you don't mind me using your forums to test my theory. If my suspiciouns are correct, you will find my registration email stuck in your SMTP queue (Inetpub/mailroot/Queue, or recieve a failed delivery notification depending on your server setup.

Thanks




Joined: Jan 2004
Posts: 41
J
Jim
Offline
Newbie
Newbie
J Offline
Joined: Jan 2004
Posts: 41
I haven't recieved any emails from NT's forum, so it looks like my theory is correct.

From the SMTP log file (I changed the sender and to: addresses to post here):

09:15:21 64.202.166.11 - - 250-pre-smtp28-02.prod.mesa1.secureserver.net+ 0
09:15:21 64.202.166.11 MAIL - FROM:<admin@forumdomain.com>+SIZE=1002 0
09:15:21 64.202.166.11 - - 354+go+ahead+punk,+make+my+day 0
09:15:21 64.202.166.11 - - 250+ok 0
09:15:21 64.202.166.11 RCPT - TO:<member@qmail-server.com> 0
09:15:21 64.202.166.11 - - 250+ok 0
09:15:21 64.202.166.11 DATA - - 0
09:15:21 64.202.166.11 - - 354+go+ahead+punk,+make+my+day 0
09:15:21 64.202.166.11 - - 451+See+http://pobox.com/~djb/docs/smtplf.html. 0
09:15:21 64.202.166.11 QUIT - - 0


If you go to the pobox.com link it is clear that Threads is sending out bare linefeeds.



Last edited by Jim; 01/19/2007 5:48 PM.
Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
What name and time did you register with ?

There are a lot of undelivered messages but most of the ones I tried fail when sent from any mail provider.

.

Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
I have 3 mail delivery failures in the past 4 days. All of them are to some accounts in France.

I currently have 3 retries (for France in the que) Nothing from or to you as a failure that I see.

.

Joined: Jan 2004
Posts: 41
J
Jim
Offline
Newbie
Newbie
J Offline
Joined: Jan 2004
Posts: 41
I registered with jquinn. Thanks for checking ntdoc.

Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
Are you sure some spam filter didn't block it or delete it?

Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
My SMTP does not appear to have any obvious mailing issues. I've enabled a CC to another account whenever there is a bad e-mail address now instead of just a log.


Quote
Received: from xxxxx ([127.0.0.1]) by xxxxxx with Microsoft SMTPSVC(6.0.3790.1830);
Thu, 18 Jan 2007 09:34:59 +0100
Subject: Thank you for registering at KiXtart.org - official site!
To: xxxxx@xxx.com
Date: Thu, 18 Jan 2007 09:34:59 +0100
Return-Path: no-reply@kixtart.org
From: "KiXtart.org - official site" <no-reply@kixtart.org>
Message-ID: <bf139ee0a1df09c1ade984f4059b82e0@www.kixtart.org>
X-Priority: 3
X-Mailer: PHPMailer [version 1.73]
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset="iso-8859-1"
X-OriginalArrivalTime: 18 Jan 2007 08:34:59.0021 (UTC) FILETIME=[89F62FD0:01C73ADB]

Last edited by ntdoc; 01/19/2007 10:37 PM.
Joined: Jan 2004
Posts: 41
J
Jim
Offline
Newbie
Newbie
J Offline
Joined: Jan 2004
Posts: 41
Yes, there is no spam filtering set on the domain of the address I used.

If you don't mind, check your control panel registration queue [ MusicPlayer Forums » Control Panel » Member Management]. If you have a jquinn in there pending email verification, try the Re-send Verification option to send another email, then you can watch it's progress in your SMTP Queue.

Your help is much appreciated.

Thanks

Joined: Jan 2004
Posts: 41
J
Jim
Offline
Newbie
Newbie
J Offline
Joined: Jan 2004
Posts: 41
ntdoc,

I replied to your previous message and then realized yuo posted another one.

My email headers being generated look different. I am going to look into it, maybe the server admins setup a different configuration.

It still doesn't explain why my registration didn't go through on your site.

This issue is driving me crazy.

Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
I'll try and take a further look into it this weekend if I get time.

Joined: Jan 2004
Posts: 41
J
Jim
Offline
Newbie
Newbie
J Offline
Joined: Jan 2004
Posts: 41
Long story short, I figured out how to make this work for my configuration. If anyone is interested in how I figured it out, I will elaborate.

The solution:

Call phpmailer IsSMTP() in ubbthreads.inc.php MAILER CLASS extender.

// ########################################################################
// MAILER CLASS
// Define class for sending email
// ########################################################################
class mailer extends PHPMailer {


var $to_email;
var $From = null;

// ######################################################################
// headers
// ######################################################################
function send_mail($htmlmail="",$from="",$to="",$subject="",$body="",$bcc=array()) {

global $mailer,$config,$ubbt_lang;
$this->IsSMTP(); // telling the class to use SMTP
if ($from) {
$this->From = $from;
$this->FromName = $from;
} else {
$this->From = $config['SITE_EMAIL'];
$this->FromName = $config['COMMUNITY_TITLE'];
}

I realize that this might be an issue with the installation and configuration. I did not install the software and am not sure what options where selected during the install process. However, I am still concerned that my registration in ntdoc's forum had the same problem.

This problably isn't a big issue for most Threads admins, but I would like to share my findings with anyone who is interested.

Again, to my knowledge, this only affects 7.0.2 installed on Windows 2003 using IIS6 when forum generated emails are sent to addresses hosted on qmail servers.




Joined: Aug 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1

Glad you sorted it out, and hope it helps others w/ the same problem! cool


GangsterBB.NET (Ver. 7.6.1.1)
PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
I'll try to check on my setup tomorrow and see how it goes.

Don't have time tonight as have to be getting to bed soon - wife wants to go some place at like 8 in the morning frown

Joined: Aug 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1
Originally Posted by ntdoc
wife wants to go some place at like 8 in the morning frown


Eww.

Toss her the keys and roll over. Although that may not work well in the long run. laugh



GangsterBB.NET (Ver. 7.6.1.1)
PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
Can you say DOG HOUSE

Thanks but no thanks - I don't care for them cold shoulder times.

Joined: Aug 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1

Eh. Leaves more time for football. laugh



GangsterBB.NET (Ver. 7.6.1.1)
PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
Now I see why you changed careers wink

Not quite a Dr. Phil attitude laugh

Joined: Aug 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1

LMAO! Well, he's a fraud - I tell it like it is. haha

Oops, sorry...

So, how do you feel about that?

wink


GangsterBB.NET (Ver. 7.6.1.1)
PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Theres an 8 in the morning? And I think i'm in a permanent dog house wink


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jan 2004
Posts: 41
J
Jim
Offline
Newbie
Newbie
J Offline
Joined: Jan 2004
Posts: 41
Originally Posted by jgeoff
Eh. Leaves more time for football. laugh

I'm in Chicago... GO BEARS!!!

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
you guys watch football, i'll sit in the back room and get trashed :nod:

Joined: Aug 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1
Originally Posted by Gizmo
you guys watch football, i'll sit in the back room and get trashed :nod:


What's wrong w/ multitasking? laugh


GangsterBB.NET (Ver. 7.6.1.1)
PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Joined: Jun 2006
Posts: 3,837
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
Originally Posted by Gizmo
you guys watch football, i'll sit in the back room and get trashed :nod:


That isn't football - it is a bunch of guys prancing around in padded suits wink

... runs away wink

Joined: Jun 2006
Posts: 1,344
G
veteran
veteran
G Offline
Joined: Jun 2006
Posts: 1,344
Originally Posted by jgeoff
What's wrong w/ multitasking? laugh


I like how you think laugh

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Originally Posted by jgeoff
What's wrong w/ multitasking? laugh
I find football utterly pointless and staged, like "professional wrestling"... Now if we where watching Aussie Rules or Rugbee I'd be in front of the 62" LCOS television in a heartbeat...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
1 members (Geoff), 1,018 guests, and 215 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)