473,624 Members | 2,601 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error from AOL: Deferred: Bad file descriptor?

Recently our mail from our e-commerce site has been rejected by AOL due
to an IP block because someone was using our PHP scripts to send spam.
Well, I got that fixed.
But our legitimate auto-generated e-mails are getting "deferred" by AOL
now with an error:
Deferred: Bad file descriptor

I can't find anything on their support site about this, nor Googling.
Any ideas?

Here's an example of an email sent by us. Best I can figure out, "file
descriptor" indicates the format of the e-mail, but I'm pretty sure I
have that right.

Well, thanks for any suggestions or feedback!
-Liam

Return-Path: <g>
Received: from (our domain).com (localhost [127.0.0.1])by (server
name).(our domain).com (8.13.1/8.13.1) with ESMTP id k0PNeuPW006683f or
<(aol username)@AOL.C OM>; Wed, 25 Jan 2006 17:40:56 -0600
Full-Name: Apache
Received: (from apache@localhos t)by (our domain name).com
(8.13.1/8.13.1/Submit) id k0PNeueJ006679; Wed, 25 Jan 2006 17:40:56
-0600
Date: Wed, 25 Jan 2006 17:40:56 -0600
Message-Id: <200601252340.k 0PNeueJ006679@( our domain name).com>
To: (aol username)@AOL.C OM
Subject: Cards - ORDER 37329
From: Printing.Order@ (our domain name).com
Reply-To: customerservice @(our domain name).com
Content-type: text/html; charset=iso-8859-1
<HTML>
<HEAD>
</HEAD>
<BODY BGCOLOR="white" ><center><b>STU DIO DETAILS</b><br>
<table width="450" cellspacing="0" cellpadding="0" border="0">
<tr>
<td width="150" align="right">A ccount ID:&nbsp;</td>

<td width="300" align="left">bc tcom</td>
</tr>
<tr>
<td width="150" align="right">C ompany:&nbsp;</td>
<td width="300" align="left">(C ompany name)</td>
</tr>
<tr>

<td width="150" align="right">F older:&nbsp;</td>
<td width="300" align="left">/bct/</td>
</tr>
</table><br>
<b>ORDER DETAILS</b><br>
<table width="300" cellspacing="0" cellpadding="0" border="0">
<tr>

<td width="150" align="right">O rder #:&nbsp;</td>
<td width="150" align="left">37 329</td>
</tr>
<tr>
<td width="150" align="right">T otal Charge:&nbsp;</td>
<td width="150" align="left">$6 9.00</td>

etc etc...

Jan 26 '06 #1
7 6856
ne**@celticbear .com wrote:
I can't find anything on their support site about this, nor Googling.
Any ideas?


try googling again. it works for me.
Jan 26 '06 #2
>Recently our mail from our e-commerce site has been rejected by AOL due
to an IP block because someone was using our PHP scripts to send spam.
Well, I got that fixed.
But our legitimate auto-generated e-mails are getting "deferred" by AOL
now with an error:
Deferred: Bad file descriptor
This is either a problem with your procedure for SENDING the mail,
or a configuration problem at AOL that you can't fix. Are you
opening a SMTP connection to AOL's servers DIRECTLY from PHP?
I doubt it. It's probably a problem between your PHP and your
sendmail or whatever you are using to send mail.

Of course, some hosts put out misleading error messages. I doubt
AOL would do this because of the support problems it would cause.
But I have seen things like:

550 No such user
means the email address doesn't exist.
550 No such user.
means "you've been banned for spamming".
550 no such user
means "you've been banned for sending viruses".
550 no such User
means "you've been banned due to complaints from customers"

I can't find anything on their support site about this, nor Googling.
Any ideas?
It's likely not their problem.
Here's an example of an email sent by us. Best I can figure out, "file
descriptor" indicates the format of the e-mail, but I'm pretty sure I
have that right.
"file descriptor" represents an open file (Windows might call it a "handle").
It's a much more basic problem than nitpicking about headers in email.
Return-Path: <g> That return-path looks pretty darn wierd.
Received: from (our domain).com (localhost [127.0.0.1])by (server
name).(our domain).com (8.13.1/8.13.1) with ESMTP id k0PNeuPW006683f or
<(aol username)@AOL.C OM>; Wed, 25 Jan 2006 17:40:56 -0600
Full-Name: Apache
Received: (from apache@localhos t)by (our domain name).com
(8.13.1/8.13.1/Submit) id k0PNeueJ006679; Wed, 25 Jan 2006 17:40:56
-0600
Date: Wed, 25 Jan 2006 17:40:56 -0600
Message-Id: <200601252340.k 0PNeueJ006679@( our domain name).com>
To: (aol username)@AOL.C OM
Subject: Cards - ORDER 37329
From: Printing.Order@ (our domain name).com
Does the email address Printing.Order@ (our domain name).com actually
accept email? There are quite a few hosts that will reject an email
if it doesn't.
Reply-To: customerservice @(our domain name).com
Content-type: text/html; charset=iso-8859-1
<HTML>
<HEAD>
</HEAD>
<BODY BGCOLOR="white" ><center><b>STU DIO DETAILS</b><br>
<table width="450" cellspacing="0" cellpadding="0" border="0">
<tr>
<td width="150" align="right">A ccount ID:&nbsp;</td>

<td width="300" align="left">bc tcom</td>
</tr>
<tr>
<td width="150" align="right">C ompany:&nbsp;</td>
<td width="300" align="left">(C ompany name)</td>
</tr>
<tr>

<td width="150" align="right">F older:&nbsp;</td>
<td width="300" align="left">/bct/</td>
</tr>
</table><br>
<b>ORDER DETAILS</b><br>
<table width="300" cellspacing="0" cellpadding="0" border="0">
<tr>

<td width="150" align="right">O rder #:&nbsp;</td>
<td width="150" align="left">37 329</td>
</tr>
<tr>
<td width="150" align="right">T otal Charge:&nbsp;</td>
<td width="150" align="left">$6 9.00</td>

etc etc...


Gordon L. Burditt
Jan 26 '06 #3

Gordon Burditt wrote:
Recently our mail from our e-commerce site has been rejected by AOL due
to an IP block because someone was using our PHP scripts to send spam.
Well, I got that fixed.
But our legitimate auto-generated e-mails are getting "deferred" by AOL
now with an error:
Deferred: Bad file descriptor
This is either a problem with your procedure for SENDING the mail,
or a configuration problem at AOL that you can't fix. Are you
opening a SMTP connection to AOL's servers DIRECTLY from PHP?
I doubt it. It's probably a problem between your PHP and your
sendmail or whatever you are using to send mail.

Uhm.. nooo... I don't think so.
I'm using the mail() function in PHP. So I guess PHP does some funky
stuff and then opens the connection.
To troubleshoot I'll investigate how to open an SMTP connection
directly.
(If I recall, a few years ago when I was learning ASP, I think that's
the way it had to be done using DONTS(sp) objects....)

[..]
Here's an example of an email sent by us. Best I can figure out, "file
descriptor" indicates the format of the e-mail, but I'm pretty sure I
have that right.


"file descriptor" represents an open file (Windows might call it a "handle").
It's a much more basic problem than nitpicking about headers in email.
Return-Path: <g>

That return-path looks pretty darn wierd.

Yeah. I copied the header off the Webmin GUI for e-mail cache, and that
"ng" is actually a little icon that I think represents a binary or some
non-ascii character.
I saw that and wondered about that. But when I view the e-mail through
a client like Thunderbird, it says:
Return-Path: <apache@(my domain name).com>
So I don't get why it would be non-ascii through Webmin but OK in a
client.

2ndly, and I have no idea if this is related, I actually define
Return-Path in the header variable in the PHP code, and it's supposed
to be <Printing.Order @(our domain name).com> but that seems to be
ignored. Odd.

[..]
Subject: Cards - ORDER 37329
From: Printing.Order@ (our domain name).com


Does the email address Printing.Order@ (our domain name).com actually
accept email? There are quite a few hosts that will reject an email
if it doesn't.


Yeah, I made sure that's a legit e-mail address. Although it forwards
to our customerservice account. But you can email that address
directly.

Thanks for the feedback!
I'll look into the direct SMTP connection and digging deeper into the
Return-Path.
-Liam

Jan 26 '06 #4
ne**@celticbear .com wrote:
Gordon Burditt wrote:

Return-Path: <g>

That return-path looks pretty darn wierd.


It's a macro and those are encoded as 8 bit characters.

About the original error message: upgrade to 8.13.5 and see whether the
problem goes away, there have been some fixes for problems like this
(check the release notes).

--
Note: please read the netiquette before posting. I will almost never
reply to top-postings which include a full copy of the previous
article(s) at the end because it's annoying, shows that the poster
is too lazy to trim his article, and it's wasting the time of all readers.
Jan 26 '06 #5

Claus Aßmann -no-copies-please wrote:
ne**@celticbear .com wrote:
Gordon Burditt wrote:
>Return-Path: <g>
That return-path looks pretty darn wierd.


It's a macro and those are encoded as 8 bit characters.

Ah, that solves that. Although I still need to figure out why it's not
accepting my PHP defined Return-Path in the header variable.
But that's an answer I can probably find by searching.
About the original error message: upgrade to 8.13.5 and see whether the
problem goes away, there have been some fixes for problems like this
(check the release notes).


This is embarassing... how do I find my current version of Sendmail?
"man sendmail" and "man mail" doesn't give me any help (that I can
find.)
I tried reading through the release notes... wow! So many different
bugs and errors each version fixes! Who'da thunk that any number of
weird behavior I've seen with e-mail over the years actually could have
something to do with the server software!

Thanks for the reply!
-Liam

Jan 26 '06 #6
>> >Recently our mail from our e-commerce site has been rejected by AOL due
>to an IP block because someone was using our PHP scripts to send spam.
>Well, I got that fixed.
>But our legitimate auto-generated e-mails are getting "deferred" by AOL
>now with an error:
>Deferred: Bad file descriptor
This is either a problem with your procedure for SENDING the mail,
or a configuration problem at AOL that you can't fix. Are you
opening a SMTP connection to AOL's servers DIRECTLY from PHP?
I doubt it. It's probably a problem between your PHP and your
sendmail or whatever you are using to send mail.

Uhm.. nooo... I don't think so.
I'm using the mail() function in PHP. So I guess PHP does some funky
stuff and then opens the connection.


Usually PHP hands off the mail to the local sendmail, or another
local (network) mail server. You cannot just send all your mail
to AOL's mail server (unless you're an AOL customer) - you only
send stuff there that is supposed to go to AOL. Spammers have
abused that so any server that allows relaying like that for anyone
gets itself banned. PHP does not try to perform the full functions
of a mail server: looking up MX records and figuring where to send
mail, retrying mail in case of down servers, sending bounce messages,
etc. And it probably shouldn't.
To troubleshoot I'll investigate how to open an SMTP connection
directly.
You probably should NOT be trying to do this for production work.
Let your mail server (not PHP code) or your ISP's mail server handle
it. A mail server needs to run as a daemon or be periodically run
from cron, not occasionally from a web server.
(If I recall, a few years ago when I was learning ASP, I think that's
the way it had to be done using DONTS(sp) objects....)

[=2E.]
>Here's an example of an email sent by us. Best I can figure out, "file
>descriptor" indicates the format of the e-mail, but I'm pretty sure I
>have that right.
"file descriptor" represents an open file (Windows might call it a "handl=

e").
It's a much more basic problem than nitpicking about headers in email.
>Return-Path: <=81g>

That return-path looks pretty darn wierd.

Yeah. I copied the header off the Webmin GUI for e-mail cache, and that
"ng" is actually a little icon that I think represents a binary or some
non-ascii character.
I saw that and wondered about that. But when I view the e-mail through
a client like Thunderbird, it says:
Return-Path: <apache@(my domain name).com>
So I don't get why it would be non-ascii through Webmin but OK in a
client.

2ndly, and I have no idea if this is related, I actually define
Return-Path in the header variable in the PHP code, and it's supposed
to be <Printing.Order @(our domain name).com> but that seems to be
ignored. Odd.


Setting the envelope-sender may be restricted by the local sendmail.

[=2E.]
>Subject: Cards - ORDER 37329
>From: Printing.Order@ (our domain name).com


Does the email address Printing.Order@ (our domain name).com actually
accept email? There are quite a few hosts that will reject an email
if it doesn't.


Yeah, I made sure that's a legit e-mail address. Although it forwards
to our customerservice account. But you can email that address
directly.

Thanks for the feedback!
I'll look into the direct SMTP connection and digging deeper into the
Return-Path.
-Liam


Gordon L. Burditt
Jan 26 '06 #7
ne**@celticbear .com wrote:
This is embarassing... how do I find my current version of Sendmail?


The FAQ answers it. However, it was also in your first posting:

Received: from (our domain).com (localhost [127.0.0.1])by (server
name).(our domain).com (8.13.1/8.13.1) with ESMTP id k0PNeuPW006683f or
^^^^^^

--
Note: please read the netiquette before posting. I will almost never
reply to top-postings which include a full copy of the previous
article(s) at the end because it's annoying, shows that the poster
is too lazy to trim his article, and it's wasting the time of all readers.
Jan 27 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
5479
by: Rune | last post by:
Hi, I've written a very simple 'kill-server' to help me shut down processes through Telnet or HTTP. The kill-server is a function and is launched as a thread. I use the module socket.py on Python v2.3 (Windows) I can use telnet host:port and enter the secret killword or use a broser with http://host:port/secret_killword The 'kill-server' validates the secret_killword and writes a file
0
1758
by: Ajay | last post by:
hi! my application is throwing a bad socket error raise error(EBADF, 'Bad file descriptor') socket.error: (9, 'Bad file descriptor') basically i have the following interchange application service <server1> <client1>
9
29217
by: wordsender | last post by:
Hey guys, I can't figure this one out, why is this simple script giving me problems? logfile=file(r'test.txt','w') logfile.write('datetime') test=logfile.readlines() When I run it I get the error message:
6
6270
by: pembed2003 | last post by:
Hi all, Given something like: std::ofstream out_file("path"); how do I extract the file descriptor from out_file? Is it possible? What I want is to extract the file descriptor and then pass it to flock like: flock(???, LOCK_EX);
2
3067
by: mike_li | last post by:
CLI connection failed. SQL0902C. A system error (reasoncode="6029321") occurred. Subsequent SQL statements cannot be processed. SQLSTATE=58005. Has anyone encountered the above error? We are trying to connect to a v8 ESE database on AIX 5 from a v8 client on Windows 2000 prof. What the heck is "A file descriptor does not refer to an open file."??? =================================================
4
5985
by: lynology | last post by:
I need help trying to figure why this piece of code gives me a "Bad File descriptor error" everytime I try to run it and invoke fflush. This piece of code simple outputs a char string to the output stream. What ends up happening instead is that when outputting the first character string to the channel CG_cdukeypad_CHA.Scrpad, its gives the bad file descriptor error, causing the char string not to output. When a second char string is...
9
10885
by: Ben Dewey | last post by:
Project: ---------------------------- I am creating a HTTPS File Transfer App using ASP.NET and C#. I am utilizing ActiveDirectory and windows security to manage the permissions. Why reinvent the wheel, right? Everything so far is working well with the Active Directory. The problem I am having is with adding File Permissions to a directory. I am currently using some code courtesy of "Willy Denoyette "
3
2628
by: MovnOn | last post by:
I've created an installation package for my program. Before installation, I use the User Interface to get values that are added to the registry. One of the values that the user must add is a path to a required input file for the program. I'm finding that if the user enters a path which contains a space (example: c:\Program Files\myProgram\file.txt) that the install will return a file not found error and abort the install. I don't...
1
5849
by: anu29dolly | last post by:
error:return makes integer from pointer without a cast.. following is my code ..plz help to track the bug ......... #include <stdio.h> #include <stdlib.h> #include <sys/stat.h> #include <usb.h> struct usb_device *tusb_dev1,*tusb_dev2 = NULL;
0
8179
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8633
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8348
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8493
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7176
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6112
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5570
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
1797
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1493
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.