niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Apps » Qmail
intentionally bad delivery
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
Kyle Wheeler
*nix forums Guru Wannabe


Joined: 07 Jan 2005
Posts: 208

PostPosted: Thu Jul 06, 2006 3:11 am    Post subject: intentionally bad delivery Reply with quote

This may be the wrong place to ask this, and if so, just ignore the
email.

I'm trying to do a "single-attempt, failure is always permanent" sort
of delivery. Specifically, I'm using fetchmail to pull down mail from
an old hotmail account. I almost never get non-spam mail there, but
that's why I keep it, as a spamtrap to hand out to random companies
that demand email addresses. In fetchmail, I'm using the "mda" command
to tell it to send it to qmail: '/var/qmail/bin/sendmail me@here.com'
The problem is, every now and then, I get spam that has badly formed
headers. For example, I got one like this:

From: Free Muffins! Smile <foo@bar.com>

Qmail's sendmail can't parse the From header, and so rejects it, which
makes fetchmail retry later (and generate cron email), which wastes
bandwidth as the same mail is fetched every time fetchmail gets run.
Is there a way to make qmail more accepting, or (if not accepting) get
it to simply silently discard such malformed messages? I was thinking
of using some sort of shell-script wrapper around qmail-inject to do
it (e.g. force the return value to be good, and suppress the warning
messages), but I'm not sure what the best way about it is. Anyone have
any advice or suggestions? Or is this a very bad idea for some reason?

~Kyle
--
In the beginning the Universe was created. This has made a lot of
people very angry and been widely regarded as a bad move.
-- Douglas Adams
Back to top
Charles Cazabon
*nix forums Guru


Joined: 08 Jan 2005
Posts: 805

PostPosted: Thu Jul 06, 2006 4:28 pm    Post subject: Re: intentionally bad delivery Reply with quote

Kyle Wheeler <kyle-qmail@memoryhole.net> wrote:
Quote:
This may be the wrong place to ask this,

Nope, this is fine.

Quote:
In fetchmail, I'm using the "mda" command to tell it to send it to qmail:
'/var/qmail/bin/sendmail me@here.com' The problem is, every now and then, I
get spam that has badly formed headers.
[...]
Qmail's sendmail can't parse the From header, and so rejects it,

Yup. Easy fix is to use new-inject (from the mess822 package) instead of the
sendmail wrapper (which is a wrapper around qmail-inject). new-inject is much
more tolerant of bad message headers and won't cause these problems.

Charles
--
--------------------------------------------------------------------------
Charles Cazabon <qmail@discworld.dyndns.org>
Read http://pyropus.ca/personal/writings/12-steps-to-qmail-list-bliss.html
My services include qmail consulting. See http://pyropus.ca/ for details.
--------------------------------------------------------------------------
Back to top
Kyle Wheeler
*nix forums Guru Wannabe


Joined: 07 Jan 2005
Posts: 208

PostPosted: Thu Jul 06, 2006 11:23 pm    Post subject: Re: intentionally bad delivery Reply with quote

On Thursday, July 6 at 10:28 AM, quoth Charles Cazabon:
Quote:
Yup. Easy fix is to use new-inject (from the mess822 package)
instead of the sendmail wrapper (which is a wrapper around
qmail-inject). new-inject is much more tolerant of bad message
headers and won't cause these problems.

Ahh, excellent. Thanks!

~Kyle
--
Democracy must be something more than two wolves and a sheep voting on
what to have for dinner.
-- James Bovard
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
The time now is Sun Nov 23, 2008 1:13 pm | All times are GMT
navigation Forum index » Apps » Qmail
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts random timeout / delivery temporarily suspended unarcher Postfix 0 Fri Jun 13, 2008 12:33 pm
No new posts mail delivery to cyrus fails embedded Postfix 0 Mon Mar 03, 2008 2:43 pm
No new posts Success delivery report kennykilla Postfix 0 Wed Aug 29, 2007 9:06 am
No new posts delivery temporarily suspended: unknown mail transport error Ramprasad Postfix 2 Wed Jul 19, 2006 2:42 pm
No new posts backup system: local delivery and relay at the same time Alain Spineux Postfix 7 Tue Jul 18, 2006 10:32 am

Ringtones | Debt Consolidation | Home Loan | Loans | Remortgages
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2433s ][ Queries: 16 (0.1602s) ][ GZIP on - Debug on ]