LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-07-2004, 08:52 PM   #1
DrNeil
Member
 
Registered: Aug 2004
Location: Scotland
Distribution: Debian, Suse, Knoppix, Dyna:bolic, Mandrake [couple of years ago], Slackware [1993 or so]
Posts: 150

Rep: Reputation: 15
Qmail badrcptto patch


http://www.iecc.com/bad-rcpt-noisy-patch.txt

Hi patched my qmail today with this and it was first working. Mail rejected after data.

Code:
XXXXXXXXX failed on DATA command.
Remote host said: 550 sorry, this message is not deliverable (#5.7.1)
That's what it is supposed to do.

I had a badrcptto in qmail/controls and everything was hunky dory. Then I was trying to newly edit a badmailfrom or opened the virtualhosts and since then I constantly get a can't open control files etc. I have checked file owners/chmod etc but a direct comparison with my backup I see no difference.

I tried several times to recompile (make setup check) and it just doesn't do the rcptcheck anymore. Can't find control files. I did just to make sure a cdb rebuild, tried to copy the files in extra (as suggested about another patch).

I also haven't changed the source since the patch.

I played my backup in and reversed the patch, but I am puzzled why this first worked and then not. I tried several forms of files in the control directoty, checked for extra tabs spaces endlines.



I am no qmail expert, do I have to enter something else? Maybe a stray .vim file fucking it up?
 
Old 09-07-2004, 09:05 PM   #2
littleking
Member
 
Registered: Jun 2003
Location: New Albany, OH
Posts: 190

Rep: Reputation: 30
check out www.qmailrocks.org
 
Old 09-07-2004, 09:28 PM   #3
DrNeil
Member
 
Registered: Aug 2004
Location: Scotland
Distribution: Debian, Suse, Knoppix, Dyna:bolic, Mandrake [couple of years ago], Slackware [1993 or so]
Posts: 150

Original Poster
Rep: Reputation: 15
How is this helpful?
Neither the search on their FAQ reveils anything about badrcptto or anything helpful on control.

I looked all the control not readable files also up in Google - non fit.

If I have overseen something please direct me to the page.
 
Old 09-09-2004, 09:02 AM   #4
DrNeil
Member
 
Registered: Aug 2004
Location: Scotland
Distribution: Debian, Suse, Knoppix, Dyna:bolic, Mandrake [couple of years ago], Slackware [1993 or so]
Posts: 150

Original Poster
Rep: Reputation: 15
if you do a morercptto you have to make a morercptto.cdb too, otherwise it goes awol.

Good to read the source sometimes . Pityfully the

text only states

"Addresses to reject go in control/badrcptto and control/morebadrcptto,
one per line, just like badmailfrom. control/morebadrcptto is
compiled into control/morebadrcptto.cdb with the new program
qmail-newbrt. I'd suggest putting all of your bad addresses into
morebadrcptto since it's a lot faster to look something up in a CDB
than in a text file."

and numpties like me made a morebadrcptto (it was empty,as I was testing) without
compiling the cdb with qmail-newbrt. Then it fails.

Argh ...

This just for completion of the issue for numpties after me.
 
Old 09-09-2004, 09:28 AM   #5
DrNeil
Member
 
Registered: Aug 2004
Location: Scotland
Distribution: Debian, Suse, Knoppix, Dyna:bolic, Mandrake [couple of years ago], Slackware [1993 or so]
Posts: 150

Original Poster
Rep: Reputation: 15
Nope now it does it internal, but ie. Outlook fails

control not readable

 
Old 09-09-2004, 03:57 PM   #6
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
I had trouble applying this patch myself too. I eventually gave up and started using the qregex patch which does what you're wanting to do and a whole lot more. It can block badhelo, badmailto and badmailfrom by applying regular expressions.

http://www.arda.homeunix.net/store/qmail/
 
Old 09-09-2004, 09:40 PM   #7
DrNeil
Member
 
Registered: Aug 2004
Location: Scotland
Distribution: Debian, Suse, Knoppix, Dyna:bolic, Mandrake [couple of years ago], Slackware [1993 or so]
Posts: 150

Original Poster
Rep: Reputation: 15
Hi man thanks

That thing, at least a Gentoo variant worked

http://gentoo.osuosl.org/distfiles/q...way-auth.patch

LOL suddenly it went quiet in /var/log/mail

although they are hitting /var/log/qmail/smtpd/current


Well the customers gonna hit it tomorrow, let's be careful, but Outlook netscape both Windows and Debian seem to work so does opengroupware, full with spamd clamd etc

Thanks anyway, much more progress than that other patch

Last edited by DrNeil; 09-10-2004 at 12:43 PM.
 
Old 09-09-2004, 10:50 PM   #8
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
Well, I know that other patch works for some people. I have seen people swear by it. I have also worked with Jim Levine on some other stuff and he's a brilliant guy. He's working with the IETF so he knows what he's doing. But for some reason, that patch of his is a little bit fickle.
 
Old 09-10-2004, 12:51 PM   #9
DrNeil
Member
 
Registered: Aug 2004
Location: Scotland
Distribution: Debian, Suse, Knoppix, Dyna:bolic, Mandrake [couple of years ago], Slackware [1993 or so]
Posts: 150

Original Poster
Rep: Reputation: 15
OK.

Thanks again. I am sure the original patch works for many people, but the Suse 8.1 system I inherited from the previous sysadmin patched to 8.2 with some horrid visa control system is a bit awkward.

I found in many patches the name of my ex - boss from 7 years ago. Brilliant, but often maybe too brilliant for the normal human or me.

Thanks again, that was really a great help.

It ran stable today, no customers hitting with complaints ..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't 'Make' Qmail Patch ServerStorm Linux - Software 2 01-11-2005 09:46 AM
qmail-smtp-auth patch and vpopmail / vchkpw ? svartrev Linux - Software 1 05-19-2004 12:51 PM
maildrop and qmail patch conflict mpk25 Linux - Software 1 04-28-2004 04:56 PM
Qmail QMAILQUEUE patch roba Linux - Software 1 03-07-2004 10:49 PM
How do I install qmail-queue patch post install of qmail? cmisip Linux - Software 0 04-28-2003 11:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration