[thelist] CFMail Failure on Linux. Quick Help?

Saidi; Marwan msaidi at ced-concord.com
Thu May 24 16:49:21 CDT 2001

This was just posted on the CF-Linux list, thought it may help....

-----Original Message-----
From: Cameron Childress [mailto:cameronc at mindspring.com]
Sent: Sunday, May 20, 2001 8:15 PM
To: CF-Linux
Subject: RE: CFMAIL and qmail

I ran into this a little while back.

CFMAIL will not send mail through a Qmail server.  This is due, as you
stated, to the bare linefeed problem.  In the very most strict
interpretation CF is violating RFC821 and RFC822 for email formatting.  Most
mail servers are a little more forgiving and allow mail malformed in this
way through anyway.  Qmail's author(s) happen to feel a little differently,
and require mail to absolutely conform without bare linefeeds.

*** This problem has been fixed in CF 5. ***

My workaround was to point CF at a different mailserver, but I did see
several other possible workarounds.  Again, I haven't tested any of these,
but feel free to give them a shot:

1) Try adding a CR manually to the end of each message line in your CF using

2) If you have control over the qmail server, there is a workaround in the
qmail discussion list archives that I found once, which described modifying
qmail so that it would accept mail.  I think I bookmarked it at work, if
you'd like me to check for the link when I get in on monday just mail me

3) I briefly attempted writing a "bare linefeed scrubber" into a V3 of the
CF_ResendUndeliverableMail tag I've been working on, but I haven't been able
to figure out the RegEx Required for it.  If you figure it out, I'd love to
have the regex...  You could scedule an event using such a tag to scrub the
linefeeds off the files after they end up in the undelivr directory, then
copy them back into the spool using CFFILE.

4) Use a different SMTP server.

Hope that helps!


Cameron Childress
elliptIQ Inc.

> -----Original Message-----
> From: dennis baldwin [mailto:dennis at zapdesigns.com]
> Sent: Sunday, May 20, 2001 12:43 PM
> To: CF-Linux
> Subject: CFMAIL and qmail
> Has anyone successfully implemented CFMAIL and qmail?  I'm aware
> of the bare
> LF problem but does anyone know of a workaround?    The mail log reads:
> SMTP server replied "See http://pobox.com/~djb/docs/smtplf.html."
> Moved file
> to /opt/coldfusion/mail/undelivr/filex4TWf5.cfmail"
> Thanks,
> Dennis
Structure your ColdFusion code with Fusebox. Get the official book at
Archives: http://www.mail-archive.com/cf-linux%40houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_linux or
send a message to cf-linux-request at houseoffusion.com with 'unsubscribe' in
the body.

More information about the thelist mailing list