Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71535 - sqlgrey ebuild (New Package)
Summary: sqlgrey ebuild (New Package)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Net-Mail Packages
URL: http://sqlgrey.sourceforge.net
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2004-11-17 08:00 UTC by Lionel Bouton
Modified: 2007-02-22 15:36 UTC (History)
12 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild for sqlgrey-1.3.1 (sqlgrey-1.3.1.ebuild,787 bytes, text/plain)
2004-11-17 08:01 UTC, Lionel Bouton
Details
ebuild for 1.3.2 (sqlgrey-1.3.2.ebuild,788 bytes, text/plain)
2004-11-18 00:08 UTC, Lionel Bouton
Details
New ebuild for 1.4.0 release (sqlgrey-1.4.0.ebuild,787 bytes, text/plain)
2004-12-10 13:15 UTC, Lionel Bouton
Details
ebuild for 1.4.7 (sqlgrey-1.4.7.ebuild,788 bytes, application/octet-stream)
2005-02-18 02:52 UTC, Lionel Bouton
Details
Fix to 1.4.7 ebuild (sqlgrey-1.4.7-r1.ebuild,858 bytes, application/octet-stream)
2005-02-20 13:55 UTC, Lionel Bouton
Details
New ebuild with pkg_config (sqlgrey-1.5.1.ebuild,8.35 KB, application/octet-stream)
2005-03-01 17:47 UTC, Lionel Bouton
Details
1.5.5+ ebuild (sqlgrey.ebuild,8.42 KB, application/octet-stream)
2005-04-27 10:43 UTC, Lionel Bouton
Details
Ebuild for 1.5.6 (sqlgrey-1.5.6.ebuild,8.41 KB, application/octet-stream)
2005-05-02 02:35 UTC, Ray Booysen
Details
Ebuild for 1.6.0 (sqlgrey-1.6.0.ebuild,8.43 KB, application/octet-stream)
2005-06-17 05:32 UTC, Ray Booysen
Details
SQLGrey Ebuild for 1.6.1 (sqlgrey-1.6.1.ebuild,8.43 KB, application/octet-stream)
2005-06-24 08:01 UTC, Ray Booysen
Details
Ebuild for version 1.6.3 (sqlgrey-1.6.3.ebuild,8.43 KB, text/plain)
2005-07-08 06:57 UTC, Ray Booysen
Details
SQLGrey Ebuild for 1.6.6 (sqlgrey-1.6.6.ebuild,8.43 KB, text/plain)
2005-09-15 01:09 UTC, Ray Booysen
Details
mail-filter/sqlgrey-1.7.3.ebuild (sqlgrey-1.7.3.ebuild,8.39 KB, text/plain)
2006-01-10 17:12 UTC, steveb
Details
ebuild for 1.6.7 and 1.7.3 (sqlgrey.ebuild,8.34 KB, text/plain)
2006-01-14 13:41 UTC, Lionel Bouton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lionel Bouton 2004-11-17 08:00:28 UTC
Hi,

You'll find an ebuild attached for SQLgrey

SQLgrey is a Postfix policy service implementing a grey-listing policy.
SQLgrey is a fork of postgrey, it is written in Perl and uses DBI to access an SQL database. Grey-listing stops 50 to 90 % junk mails (spam and virus) before they reach the Postfix server mailqueues (saves bandwidth, user time and CPU time).

I suggest mail-filter/sqlgrey, it depends on dev-lang/perl, dev-perl/DBI, dev-perl/net-server and dev-perl/IO-Multiplex.
In fact it doesn't really depend on dev-perl/net-server but net-server lacks a dependency on dev-perl/IO-Multiplex although Net::Server::Multiplex depends on it (I'll open a separate bug for this).

Lionel.
Comment 1 Lionel Bouton 2004-11-17 08:01:20 UTC
Created attachment 44162 [details]
ebuild for sqlgrey-1.3.1
Comment 2 Lionel Bouton 2004-11-17 08:02:43 UTC
Typo :
"doesn't really depend on dev-perl/net-server"
 should read :
"doesn't really depend on dev-perl/IO-Multiplex"
Comment 3 Lionel Bouton 2004-11-18 00:08:41 UTC
Created attachment 44205 [details]
ebuild for 1.3.2

1.3.2 is a bugfix release
Comment 4 Lionel Bouton 2004-11-27 08:34:42 UTC
latest version is now 1.3.5 (just rename the provided ebuild as sqlgrey-1.3.5.ebuild).

It adds numerous enhancements and bugfixes (fix for a database unavailable related crash, support for plaintext files for whitelists on IP and FQDN, change on these files are applied on the fly, a X-Greylist header can be added, prepared statements are used for better performance, ...)
Comment 5 Lionel Bouton 2004-12-10 13:15:43 UTC
Created attachment 45696 [details]
New ebuild for 1.4.0 release

1.4.0 is out and considered stable. x86 arch is now marked stable in the
ebuild, other archs should be ok (pure perl script) but weren't tested.
Comment 6 Lionel Bouton 2005-02-18 02:52:57 UTC
Created attachment 51500 [details]
ebuild for 1.4.7

Various cleanups, after re-reading ebuild docs. But I'm sure it would be best
if a Gentoo dev would look at it...
Comment 7 Lionel Bouton 2005-02-20 13:55:09 UTC
Created attachment 51717 [details]
Fix to 1.4.7 ebuild

Just realised that old ebuilds didn't install documentation...
Comment 8 Lionel Bouton 2005-02-20 13:57:19 UTC
Changed summary
Comment 9 Lionel Bouton 2005-03-01 17:47:19 UTC
Created attachment 52427 [details]
New ebuild with pkg_config

This is a new ebuild with input from another Gentoo user. There's now a
pkg_config intended to help users set up their database and their SQLgrey
config file.

This is for the latest development release but works with the latest stable
release (1.4.8) too.
Comment 10 steveb 2005-03-01 18:02:59 UTC
I can confirm that this ebuild works without any problem with SQLgrey 1.5.0 in Gentoo.

Is there any reason why this is not in portage yet? What is holding this ebuild from beeing pushed into production?

cheers

SteveB
Comment 11 steveb 2005-03-15 20:01:21 UTC
ebuild works perfectly for SQLgrey 1.5.1, SQLgrey 1.5.2, SQLgrey 1.5.3 and SQLgrey 1.5.4 (just save/rename the ebuild with the correct version number)
Comment 12 Ray Booysen 2005-03-22 06:55:10 UTC
1.5.4 Ebuild works on my system: 

2.6.9-gentoo-r12
Athlon XP
Comment 13 Lionel Bouton 2005-04-27 10:43:01 UTC
Created attachment 57408 [details]
1.5.5+ ebuild

New ebuild for 1.5.5, the previous one should be used until 1.5.4.

Is there anything holding back its Portage entry?
Comment 14 steveb 2005-04-28 03:09:04 UTC
@Lionel: We would need a Gentoo developer who wants to be responsable and the maintainer for the ebuild. That's all. Technicaly I think there is no reason for holding this ebuild back. But time is shure a big issue for the Gentoo development team. They just can't take every ebuild here in Bugzilla and push it to the portage CVS. They need a developer to take the responsability for the ebuild. And you can imagine that the Gentoo developers have thousend other things to do.

As long as no developer is willing to take this responsability, the ebuild will probably stay here in Bugzilla and will not be pushed to portage CVS.

That's the way it works with custom Gentoo ebuilds.

cheers

SteveB
Comment 15 Ray Booysen 2005-04-28 03:36:16 UTC
I modified the log output to:  log_override = whitelist:1,grey:2

This is what I get when starting sqlgrey:
 * Shutting down SQLgrey...
Use of uninitialized value in substitution (s///) at /usr/sbin/sqlgrey line 1722.
Use of uninitialized value in substitution (s///) at /usr/sbin/sqlgrey line 1723.
Use of uninitialized value in substitution (s///) at /usr/sbin/sqlgrey line 1722.
Use of uninitialized value in substitution (s///) at /usr/sbin/sqlgrey line 1723.                                      [ ok ]
 * Starting SQLgrey...
Use of uninitialized value in substitution (s///) at /usr/sbin/sqlgrey line 1722.
Use of uninitialized value in substitution (s///) at /usr/sbin/sqlgrey line 1723.
Use of uninitialized value in substitution (s///) at /usr/sbin/sqlgrey line 1722.
Use of uninitialized value in substitution (s///) at /usr/sbin/sqlgrey line 1723. 
Comment 16 Lionel Bouton 2005-04-28 05:13:50 UTC
Thanks for the bug report. These warnings are harmless in your case, but there's a bug when spaces are used around "," and ":" in log_override. This is now fixed in my tree and will be in 1.5.6.
As this is the dev branch, I'll delay the fix a bit until I finish the optin/optout support.

If there is a need for another Gentoo developper, I'd be glad to help (in fact I already requested cvs access for the GWN French translation). I've several other interests in the mail-* ebuilds anyway. I can even test my own ebuilds on sparc64 now :-)
Comment 17 steveb 2005-04-28 05:41:10 UTC
@Linonel: I think developers are always good. I would like as well to join the developer team. But my request send by E-Mail is still not answered. I hope to get soon a replay. Anyway... I would definatly recommend you as a Gentoo developer (if I could). Good luck.

cheers

SteveB
Comment 18 Ray Booysen 2005-05-02 02:35:11 UTC
Created attachment 57802 [details]
Ebuild for 1.5.6

Ebuild for version 1.5.6 of sqlgrey.
Comment 19 Ray Booysen 2005-05-02 02:36:01 UTC
Version 1.5.6 WFM on my machine.
Bug in Comment 15 has been fixed.

Thanks Lionel!
Comment 20 steveb 2005-05-02 03:52:26 UTC
SQLgrey 1.5.6 is runing here since this morning (02.05.2002) around 02:00 (after I got a notification from freshmeat.net), without any problems.

The new introduced optin/optout possibility is nice. I have to take a closer look at it and maybe replace my current Postfix policy for SQLgrey with the new optin/optout mechanism.

Anyway... I just wish that I would have a central place where I could maintain that kind of settings. Currently every service (anti-virus, anti-spam, greylisting, etc) has his own way and place to store information for mail users. All this starts to be a big maintenance issue.

cheers

SteveB
Comment 21 Ray Booysen 2005-06-17 05:32:40 UTC
Created attachment 61384 [details]
Ebuild for 1.6.0

Ebuild for 1.6.0
Comment 22 Ray Booysen 2005-06-17 05:33:05 UTC
1.6.0 installed and working as needed.
Comment 23 steveb 2005-06-17 07:52:19 UTC
ebuild 1.6.0 works perfectly on my system. 
 
thanks 
Comment 24 Ray Booysen 2005-06-24 08:01:57 UTC
Created attachment 61842 [details]
SQLGrey Ebuild for 1.6.1

Ebuild for version 1.6.1
Comment 25 Ray Booysen 2005-07-08 06:57:58 UTC
Created attachment 62928 [details]
Ebuild for version 1.6.3
Comment 26 Wolfram Schlich (RETIRED) gentoo-dev 2005-07-09 04:19:02 UTC
Any schedule on having this ebuild added to Portage?
If no one from the net-mail herd is willing to
add it, I'm going to add it myself I guess :)
Comment 27 Andrej Kacian (RETIRED) gentoo-dev 2005-07-09 04:42:47 UTC
Comment on attachment 62928 [details]
Ebuild for version 1.6.3

Please, set correct mime type for text attachments.
Comment 28 Andrej Kacian (RETIRED) gentoo-dev 2005-07-09 04:46:25 UTC
Wolfram, if you're going to add it, make sure its initscript contains "provide
postfix_greylist" in depend(), just like gld or postgrey.

Also, be sure to add net-mail as herd into metadata.xml, in addition to you as a
maintainer.

Thanks for caring for this package, I don't have setup to add and reliably
maintain it.
Comment 29 steveb 2005-07-09 12:46:01 UTC
(In reply to comment #26)  
> Any schedule on having this ebuild added to Portage?  
> If no one from the net-mail herd is willing to  
> add it, I'm going to add it myself I guess :)  
  
Wolfram! Thank you very much for taking care of this ebuild. Thank you, thank 
you, thank you. 
 
 
Kind Regards 
 
SteveB 
Comment 30 Ray Booysen 2005-09-15 01:09:55 UTC
Created attachment 68491 [details]
SQLGrey Ebuild for 1.6.6
Comment 31 Ray Booysen 2005-09-15 01:12:37 UTC
SQLGrey 1.6.6 working perfectly on my system.

Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.5-r1, 2.6.12-gentoo-r6 i686)
=================================================================
System uname: 2.6.12-gentoo-r6 i686 AMD Athlon(TM) XP 2500+
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.8.1-r1, 2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
CHOST="i586-pc-linux-gnu"
Comment 32 Łukasz Mierzwa 2005-09-18 13:37:39 UTC
It's doing just perfect on my x86 gentoo-hardened box. I would love to see it in portage.
Comment 33 lkd-gentoo 2005-10-22 18:11:03 UTC
Just a ping regarding sqlgrey-1.6.6:

Using portage sync from 2005/10/22, ran into one snag that's not directly
sqlgrey's fault.

Took me quite by surprise when starting the sqlgrey initscript resulted in a
"Can't call method "do" on an undefined value at /usr/sbin/sqlgrey line 298." a
few seconds later.

It depends on DBD-SQLite if sqlite support is expected.  Only problem is that
this Perl build doesn't actually pull sqlite itself as a dependency.

Might be worth mentioning in documentation that the sqlite dependencies need to
be emerged by hand.
Comment 34 Lionel Bouton 2005-10-23 17:43:35 UTC
Without a local sqlite, I can't see any purpose for DBD-SQLite... Shouldn't this
be filed as a DBD-SQLite bug?
Comment 35 Gudleik Rasch 2005-10-25 14:28:53 UTC
sqlgrey-1.6.6.ebuild works for me. thank you.
Comment 36 Ramin Khatibi 2006-01-10 15:10:11 UTC
had an issues installing 1.6.6 this week. It would error out with an error when trying to create the username. I changed the following and the ebuild worked.

pkg_setup() {
	has_version dev-perl/IO-Multiplex || die "IO-Multiplex needed. Please emerge it or run g-cpan.pl IO::Multiplex"
	id sqlgrey 2>/dev/null || enewgroup sqlgrey
	id sqlgrey 2>/dev/null || enewuser sqlgrey -1 /bin/false /var/spool/sqlgrey sqlgrey
}

to 

pkg_setup() {
        has_version dev-perl/IO-Multiplex || die "IO-Multiplex needed. Please emerge it or run g-cpa
n.pl IO::Multiplex"
        enewgroup ${PN}
        enewuser ${PN} -1 -1 /var/spool/sqlgrey ${PN}
}

kashani
Comment 37 steveb 2006-01-10 17:12:37 UTC
Created attachment 76791 [details]
mail-filter/sqlgrey-1.7.3.ebuild

Fixed the enewuser stuff and changed the config stuff to:
emerge --config ${PF}
Comment 38 Lionel Bouton 2006-01-14 13:41:28 UTC
Created attachment 77107 [details]
ebuild for 1.6.7 and 1.7.3

Based on steve's ebuild, only removed the "id sqlgrey 2>/dev/null ||" checks. They aren't needed. enewuser and enewgroup from eutils.class make the proper checks themselves.
Comment 39 Ramin Khatibi 2006-02-28 16:42:14 UTC
This format does not not work and fails with lots of errors.
emerge --config sqlgrey-1.7.3

nms01 sqlgrey # emerge --config sqlgrey-1.7.3

Traceback (most recent call last):
  File "/usr/bin/emerge", line 2817, in ?
    pkgs = portage.db[portage.root]["vartree"].dbapi.match(myfiles[0])
  File "/usr/lib/portage/pym/portage.py", line 4842, in match
    mymatch=match_from_list(mydep,self.cp_list(mykey,use_cache=use_cache))
  File "/usr/lib/portage/pym/portage.py", line 4134, in match_from_list
    raise KeyError, "Specific key requires an operator (%s) (try adding an '=')" % (mydep)
KeyError: "Specific key requires an operator (mail-filter/sqlgrey-1.7.3) (try adding an '=')"

whereas this format works fine
emerge --config sqlgrey

sqlgrey also doesn't work by with Mysql 5.0 because of the whole latin1 vs utf8 thing. I dumped the schema from a Mysql 4.0 install and changed TYPE=MyISAM to TYPE=MyISAM, DEFAULT CHARACTER SET latin1. I'm not sure where that should go in the ebuild or code.

Ramin
Comment 40 steveb 2006-02-28 17:33:02 UTC
(In reply to comment #39)
> sqlgrey also doesn't work by with Mysql 5.0 because of the whole latin1 vs utf8
> thing.
>

Well. I can't confirm this. SQLGrey 1.7.3 is runing here on MySQL 5.0.18 without any problems.

BTW: This is my DB definition:
-- phpMyAdmin SQL Dump
-- version 2.7.0-pl2
-- http://www.phpmyadmin.net
-- 
-- Host: localhost
-- Generation Time: Mar 01, 2006 at 02:28 AM
-- Server version: 5.0.18
-- PHP Version: 5.0.5-pl5-gentoo

SET FOREIGN_KEY_CHECKS=0;

SET AUTOCOMMIT=0;
START TRANSACTION;

-- 
-- Database: `sqlgrey`
-- 

-- --------------------------------------------------------

-- 
-- Table structure for table `config`
-- 

DROP TABLE IF EXISTS `config`;
CREATE TABLE IF NOT EXISTS `config` (
  `parameter` varchar(255) NOT NULL,
  `value` varchar(255) default NULL,
  PRIMARY KEY  (`parameter`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

-- 
-- Table structure for table `connect`
-- 

DROP TABLE IF EXISTS `connect`;
CREATE TABLE IF NOT EXISTS `connect` (
  `sender_name` varchar(64) NOT NULL,
  `sender_domain` varchar(64) NOT NULL,
  `src` varchar(64) NOT NULL,
  `rcpt` varchar(64) NOT NULL,
  `first_seen` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  KEY `connect_idx` (`src`,`sender_domain`,`sender_name`),
  KEY `connect_fseen` (`first_seen`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

-- 
-- Table structure for table `domain_awl`
-- 

DROP TABLE IF EXISTS `domain_awl`;
CREATE TABLE IF NOT EXISTS `domain_awl` (
  `sender_domain` varchar(255) NOT NULL,
  `src` varchar(39) NOT NULL,
  `first_seen` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `last_seen` timestamp NOT NULL default '0000-00-00 00:00:00',
  PRIMARY KEY  (`src`,`sender_domain`),
  KEY `domain_awl_lseen` (`last_seen`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

-- 
-- Table structure for table `from_awl`
-- 

DROP TABLE IF EXISTS `from_awl`;
CREATE TABLE IF NOT EXISTS `from_awl` (
  `sender_name` varchar(64) NOT NULL,
  `sender_domain` varchar(255) NOT NULL,
  `src` varchar(39) character set latin1 NOT NULL default '',
  `first_seen` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `last_seen` timestamp NOT NULL default '0000-00-00 00:00:00',
  PRIMARY KEY  (`src`,`sender_domain`,`sender_name`),
  KEY `from_awl_lseen` (`last_seen`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

-- 
-- Table structure for table `optin_domain`
-- 

DROP TABLE IF EXISTS `optin_domain`;
CREATE TABLE IF NOT EXISTS `optin_domain` (
  `domain` varchar(255) NOT NULL,
  PRIMARY KEY  (`domain`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

-- 
-- Table structure for table `optin_email`
-- 

DROP TABLE IF EXISTS `optin_email`;
CREATE TABLE IF NOT EXISTS `optin_email` (
  `email` varchar(255) NOT NULL,
  PRIMARY KEY  (`email`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

-- 
-- Table structure for table `optout_domain`
-- 

DROP TABLE IF EXISTS `optout_domain`;
CREATE TABLE IF NOT EXISTS `optout_domain` (
  `domain` varchar(255) NOT NULL,
  PRIMARY KEY  (`domain`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

-- 
-- Table structure for table `optout_email`
-- 

DROP TABLE IF EXISTS `optout_email`;
CREATE TABLE IF NOT EXISTS `optout_email` (
  `email` varchar(255) NOT NULL,
  PRIMARY KEY  (`email`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

SET FOREIGN_KEY_CHECKS=1;

COMMIT;
Comment 41 Francesco R. (RETIRED) gentoo-dev 2006-10-04 04:03:26 UTC
The ebuild work for me both on x86 and amd64 using mysql use-flag.
Added to the tree, with net-mail herd.

Thanks all and bug me if it broke.
Comment 42 Juan 2006-11-18 15:37:52 UTC
While sqlgrey is greylisting fine, I get this when I restart the service:

shadow mail # /etc/init.d/sqlgrey restart
 * Shutting down SQLgrey ...
Name "DBIx::DBCluster::DEBUG" used only once: possible typo at /usr/sbin/sqlgrey line 2413.
Name "DBIx::DBCluster::WRITE_HOSTS_NEVER_READ" used only once: possible typo at /usr/sbin/sqlgrey line 827.
Name "DBIx::DBCluster::CLUSTERS" used only once: possible typo at /usr/sbin/sqlgrey line 818.                   [ ok ]
 * Starting SQLgrey ...
Name "DBIx::DBCluster::DEBUG" used only once: possible typo at /usr/sbin/sqlgrey line 2413.
Name "DBIx::DBCluster::WRITE_HOSTS_NEVER_READ" used only once: possible typo at /usr/sbin/sqlgrey line 827.
Name "DBIx::DBCluster::CLUSTERS" used only once: possible typo at /usr/sbin/sqlgrey line 818.                   [ ok ]

My logs show all is good. Not sure why I get this error but it apparently isn't hurting anything... or is it? =)
Comment 43 Juan 2006-11-18 15:38:35 UTC
My bad. Using the 1.7.3 ebuild.
Comment 44 Juan 2006-11-19 00:37:05 UTC
well, since I don't have a clustered SQL, I commented out the offending lines from /usr/sbin/sqlgrey and the error is gone. Leaving db_cluster commented out or setting it to off had no effect (sqlgrey.conf).
Comment 45 Michael Crawford (ali3nx) 2007-02-22 14:54:21 UTC
I was just reviewing my mailserver config preparing to move the pg database to a new quad woodcrest with a terabyte of raid5 and 8 gigs of ram when I noticed the database schema for amavisd-new had changed from the listed example on gentoo-wiki located at http://gentoo-wiki.com/HOWTO_Email:_A_Complete_Virtual_System 
which I've contributed to on a few occasions.

Since this server is mission critical I started looking around for an upstream published/recommended pgsql schema for sqlgrey and found none. Perhaps upstream could publish and or include database schemas for pgsql/mysql/sqlite in docs or contrib for systems admins to make use of. The sql schema offered at http://gentoo-wiki.com/HOWTO_Email:_A_Complete_Virtual_System_-_GreyListing may be unmaintained or incompatible in current and future releases. Often schema changes in cooperating mta applications can be difficult to backtrace if the sql schema isn't published by the developers. Many thanks to Lionel Bouton if he could advise where to find upstream supported sql schemas and if he could add them to docs/contrib in future releases. 
Comment 46 Lionel Bouton 2007-02-22 15:34:28 UTC
(In reply to comment #45)
> 
> [...] Perhaps upstream
> could publish and or include database schemas for pgsql/mysql/sqlite in docs or
> contrib for systems admins to make use of. The sql schema offered at
> http://gentoo-wiki.com/HOWTO_Email:_A_Complete_Virtual_System_-_GreyListing may
> be unmaintained or incompatible in current and future releases. Often schema
> changes in cooperating mta applications can be difficult to backtrace if the
> sql schema isn't published by the developers. Many thanks to Lionel Bouton if
> he could advise where to find upstream supported sql schemas and if he could
> add them to docs/contrib in future releases. 
> 

I'm so aware of database schema problems that I built database schema migrations in SQLgrey itself from the start. You shouldn't ever need to create or update a schema as SQLgrey detects the version of the schema and automatically upgrades it at startup time if it needs to.

I like my softs to ask the bare minimum it needs from its users: less maintenance for them, less support to do for me...
Comment 47 Lionel Bouton 2007-02-22 15:36:29 UTC
(In reply to comment #44)
> well, since I don't have a clustered SQL, I commented out the offending lines
> from /usr/sbin/sqlgrey and the error is gone. Leaving db_cluster commented out
> or setting it to off had no effect (sqlgrey.conf).
> 

This is fixed in 1.7.5 and was only cosmetic: no harm done.