Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
Distribution: Debian, Suse, Knoppix, Dyna:bolic, Mandrake [couple of years ago], Slackware [1993 or so]
Posts: 150
Original Poster
Rep:
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.
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.
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
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.
Distribution: Debian, Suse, Knoppix, Dyna:bolic, Mandrake [couple of years ago], Slackware [1993 or so]
Posts: 150
Original Poster
Rep:
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 ..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.