jgreylist

Requests for RPMS, or new coding projects related to server administration, Plesk, security, or anything else you can think of.
Griffith
Forum User
Forum User
Posts: 95
Joined: Tue Dec 07, 2004 1:32 pm

jgreylist

Unread post by Griffith »

Could you please add a rpm for jgreylist? (http://qmail.jms1.net/scripts/jgreylist.shtml)

As far as I can see it seems to be a better alternative than qgreylist. Better solution for storeing ip's, rewritten in C instead of PERL.

Thanks :)
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: jgreylist

Unread post by scott »

sure, no problem. Definitely looks more impressive than qgreylist
Griffith
Forum User
Forum User
Posts: 95
Joined: Tue Dec 07, 2004 1:32 pm

Re: jgreylist

Unread post by Griffith »

Thanks :)

Here is it with IPv6 support: (choose the one you like)
http://www.brandonturner.net/blog/2009/ ... jgreylist/

(step by step install: http://www.productionmonkeys.net/guides ... /jgreylist)

What needs to be done:
- install
- edit smtp.rules (add atleast: JGREYLIST_DIR)
- edit /var/qmail/service/smtpd/run
- maybe a cron for http://qmail.jms1.net/scripts/jgreylist-clean

I guess you could do a few updates in qgreylist.spec and voila :)

How long do you think it will take before it's ready for testing?
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: jgreylist

Unread post by scott »

I don't know for sure, we've got a lot of other projects in the queue right now. Its on the list though (patches welcome!)
Griffith
Forum User
Forum User
Posts: 95
Joined: Tue Dec 07, 2004 1:32 pm

Re: jgreylist

Unread post by Griffith »

Ok,

I've made a src.rpm of it, but all it does is install it (have to make config manually). If you want the src.rpm for qmail and jgreylist, where do I upload / send it?
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: jgreylist

Unread post by scott »

just paste a link for it, and we'll check it out. Another option might be setting up a github account, and storing your patches & specs over there.
Griffith
Forum User
Forum User
Posts: 95
Joined: Tue Dec 07, 2004 1:32 pm

Re: jgreylist

Unread post by Griffith »

I used your qgreylist when I created the jgreylist src.rpm. Here it is:

http://github.com/downloads/rpms/jgreyl ... rt.src.rpm

Have added on our gamera servers, and the load was reduced bigtime :)
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: jgreylist

Unread post by scott »

Great work!
Griffith
Forum User
Forum User
Posts: 95
Joined: Tue Dec 07, 2004 1:32 pm

Re: jgreylist

Unread post by Griffith »

Updated the src.rpm to include the source jgreylist.c (so that it can be rebuilt). I've also added the rpm which I use in production now.

http://github.com/rpms/jgreylist
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Re: jgreylist

Unread post by breun »

I see the current jgreylist package does not include jgreylist-clean (and a cronjob that runs it). Or is that somehow not needed when using the C-version of jgreylist?
Lemonbit Internet Dedicated Server Management
Griffith
Forum User
Forum User
Posts: 95
Joined: Tue Dec 07, 2004 1:32 pm

Re: jgreylist

Unread post by Griffith »

It should have been included, but I forgot it when I created the src.rpm. I'll try to add it when later if Scott won't :)
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: jgreylist

Unread post by scott »

I used your changes
coolemail
Forum Regular
Forum Regular
Posts: 369
Joined: Tue Dec 16, 2008 8:01 am
Location: United Kingdom

Re: jgreylist

Unread post by coolemail »

I hope someone can help here. We have Centos 5 with ASL and Pleask. Yesterday we upgraded to Plesk 10.1.1.

If people send mail using port 587, all goes OK. But if they send using port 25, an error is generated:
Your outgoing (SMTP) e-mail server has reported an internal error. If you continue to receive this message, contact your server administrator or Internet Service provider (ISP). The server responded: jgreylist[24966]: JGREYLIST_DIR is not set
Can someone tell us where that config setting is and what we need to do to get it set and working again on port 25?

Many thanks in advance.

EDIT: We turned off Spamassassin and that made no difference. So we now have Spamassassin back ON and have uninstalled jgreylist and now emails are all going fine. If someone can guide as to how we can get jgreylist working again without blocking port 25 traffic, I'd be very grateful.

EDIT2: We were working to get Spamassassin working again and all looked OK, including websites working and mail coming in and out. And also did some upgrades that were listed. One of these was an upgrade to php 5.2.17 which might have caused some issues:
http://www.atomicorp.com/forums/viewtop ... sk+upgrade
http://www.atomicorp.com/forums/viewtop ... sk+upgrade
http://www.atomicorp.com/forums/viewtop ... sk+upgrade

Now we have no mail in or out. We also have very high server load and websites are not loading. Can someone please help with what is best? Can we downgrade to php 5.1 and get it all working again with Plesk 10.1.1? I'd be most grateful for some guidance from experts.
Griffith
Forum User
Forum User
Posts: 95
Joined: Tue Dec 07, 2004 1:32 pm

Re: jgreylist

Unread post by Griffith »

(I'm only running this on gamera servers)

JGREYLIST_DIR should be set in this file: /etc/tcpcontrol/smtp.rules

it could be like this:

Code: Select all

:allow,JGREYLIST_DIR="/var/qmail/jgreylist/",VALIDRCPTTO_CDB="/var/qmail/control/validrcptto.cdb",QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl",MAXLOAD="800",MAXCONNIP="2",MAXCONNC="5",DIEMSG="421 Service temporarily not avalable"
If you do any changes in smtp.rules you need to run this:

Code: Select all

tcprules /etc/tcpcontrol/smtp.cdb /etc/tcpcontrol/smtp.rules.tmp < /etc/tcpcontrol/smtp.rules
You should also check this file: /service/smtpd/run

see if it contins jgreylist:

Code: Select all

fixcrio $rbl /var/qmail/bin/jgreylist qmail-smtpd
Post Reply