Author |
Topic |
MrBill
Starting Member
19 Posts |
Posted - 08 January 2009 : 00:21:39
|
Ok this is driving me nutso (but I'm no IT expert)...
My setup goes something like this:
I have my own web and mail servers in my house, the forum software is of course on the webserver, and uses IIS SMTP (win2K server) and cdosys for mail (cdonts gave the same behavior described below), the forum site does NOT use the mailserver machine for mail...that is only for my own personal use (I have another site hosted that requires IIS SMTP for mail...so why not just use it for both sites).
The problem is that any time a new member registers, the email notifications are failing at the IIS SMTP server...whether "e-mail validation" is enabled or not. I can send email to a member through the "Members" and "Email user" links all day, no problems...but the email routine in register.asp fails every time, with one exception. If I set up a "dummy" account using an email address from my own (local) server...it works just fine. ONLY when the forum account uses an email address that is outside of my network (I have tried a yahoo account I have, plus my work email, and one friend's email...all have failed).
The webserver's SMTP service IS trying to send the mail...I can see it in the ..\mailroot\queue folder. Eventually the SMTP server just sends out an automatic delivery failure message (to the email address specified in the admin email settings of the forum software).
What I don't get here is why the pop_email.asp routine works (sending email to a member through their profile page), but the registration.asp email routine does not.
Sorry for rambling on...but geez this is driving me crazy! Am I missing something really simple and stupid here?< |
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 08 January 2009 : 03:15:39
|
quote: Eventually the SMTP server just sends out an automatic delivery failure message
what does the failure message say exactly ?
have you checked to see if there are any SMTP logs ? these should indicate why failure occured. (if the mail arrives at the smtp server then it is unlikely to be a code issue, more likely a settings problem maybe)< |
|
|
MrBill
Starting Member
19 Posts |
Posted - 08 January 2009 : 10:12:16
|
Yeah there is a SMTP log...and I'll have to go through the process again to get the exact message...but it was something like "remote (destination) server failed to respond", or "connection to remote server broken" or something along those lines. As soon as possible I'll try to get that exact message (and yeah I need to kick myself for not jotting that down).
I just don't get why pop_email.asp would work but registration.asp doesn't...when they both use the SAME routine in inc_mail.asp to send mail! Must be something in one of the email fields that's maybe causing the destination server to respond diferently?
<cornfused>< |
|
|
MrBill
Starting Member
19 Posts |
Posted - 08 January 2009 : 10:25:00
|
quote: Message delivery to the remote domain 'yahoo.com' failed for the following reason: The connection was dropped by the remote host.
I see the email message show up in the mailroot\queue folder, but what's odd is that it is only there for a few minutes (much less than the 3 retry periods specified in the SMTP service configuration), then that message is replaced with a delivery failure notification email sent to the forum admin email account (which also fails to be delivered).
There must be something "funky" in the SMTP service setup...I just need to figure out what in the asp code is causing this different behavior.< |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 08 January 2009 : 10:32:27
|
quote: I just don't get why pop_email.asp would work but registration.asp doesn't...when they both use the SAME routine in inc_mail.asp to send mail! Must be something in one of the email fields that's maybe causing the destination server to respond diferently
The difference in forum terms is that registration emails are sent using the forum email adrees as the sender, where as pop+email uses the sending members email as the sender, so normally it is registration that works but user to user does not.
However, as I said above without a log/error from your smtp server it is basically impossible to determine what is causing the failure.
I would check that your domain is not blacklisted by the server you are trying to send to.< |
|
|
MrBill
Starting Member
19 Posts |
Posted - 08 January 2009 : 11:10:24
|
That quote in the previous post is from Event Viewer / System Log (SMTPSVC "warning"), and that is the only "event" that shows up. Is there another log to check in IIS?
If my domain/IP address were blacklisted...would both methods of sending mail not fail?
quote: normally it is registration that works but user to user does not
Leave it to me to get things backwards! < |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 08 January 2009 : 13:26:29
|
quote: Is there another log to check in IIS?
very possibly yes (although I have never used the IIS SMTP servcie myself) lokk in
your windows\sytem32 directory for a folder called LogFiles there may be an SMTP log directory there.< |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 08 January 2009 : 13:37:52
|
a question and something to try.
does the registration email fail no matter what domain it tries to sent to ? or is it just specifically yahoo ? have you tried registering and sending to the same email domain ?
sorry if I am going over the same stuff, just trying to figure out what it's doing < |
|
|
MrBill
Starting Member
19 Posts |
Posted - 08 January 2009 : 17:26:14
|
Ok I'll look for that log file, thanks.
Yes I have tried several different domains...the ONLY one that doesn't fail is my own (that ends up right back at my own mailserver). I can send "user to user" to those domains just fine, but the registration notification email fails every time.
< |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
|
MrBill
Starting Member
19 Posts |
Posted - 08 January 2009 : 17:42:40
|
No SMTP log file in ..\system32, but there is one in ..\mailroot, although seemingly pretty useless:
#Software: Microsoft Internet Information Services 5.0 #Version: 1.0 #Date: 2009-01-07 15:37:10 #Fields: cs-username OutboundConnectionResponse OutboundConnectionCommand OutboundConnectionResponse OutboundConnectionCommand OutboundConnectionResponse OutboundConnectionCommand OutboundConnectionResponse OutboundConnectionCommand OutboundConnectionResponse OutboundConnectionCommand
This repeats for about 13 bazillion lines and that's it. Pretty useful huh.< |
|
|
MrBill
Starting Member
19 Posts |
Posted - 08 January 2009 : 17:50:46
|
I did make those additions...however what I didn't notice the first time was the format:
With Flds .Item(... .Item(... End With Flds.Update
as opposed to:
Flds(... Flds(... Flds.Update
I'm not big on asp "formatting"...is this difference important?
Oh and one other difference is the /sendusing value, mine is 1 for local SMTP server instead of 2 for a remote server.< |
|
|
MrBill
Starting Member
19 Posts |
Posted - 08 January 2009 : 21:11:23
|
Found it!
In IIS SMTP properties, Delivery Tab, Advanced button...the field "Fully-qualified domain name" apparently defaults to the name of the computer (in this case just "webserver")...seems this field needs to have a valid domain name in it. After changing that the registration emails are now being sent.
Now why that only happened with registration emails and not user-to-user emails is wayyy beyond me...but it works now!
<WHEW!>< |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 09 January 2009 : 01:39:13
|
glad you got it sorted < |
|
|
MrBill
Starting Member
19 Posts |
Posted - 09 January 2009 : 09:02:18
|
quote: With Flds .Item(... .Item(... End With Flds.Update
as opposed to:
Flds(... Flds(... Flds.Update
I'm not big on asp "formatting"...is this difference important?
I would still like to know if this difference is important... < |
Edited by - MrBill on 09 January 2009 09:03:21 |
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 09 January 2009 : 09:59:18
|
No; just different methods to achieve the same results - it's all a matter of preference.
< |
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
Topic |
|