|
Posted by news@celticbear.com on 01/26/06 19:28
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
[Back to original message]
|