Sendmail: How does one blacklist annoying spammers?

Kevin J. Cummings cummings at
Sun Jun 27 21:42:25 UTC 2010

On 06/27/2010 04:23 PM, Daniel B. Thurman wrote:
> Looks like I am running to a couple of problems:
> 1) Starting greylist-milter daemon:
>     a) # service milter-greylist restart
>         Stopping Milter-Greylist:                      [  OK  ]
>         Starting Milter-Greylist: /usr/sbin/milter-greylist: Symbol `GeoIP_\
>         country_code' has different size in shared object, consider
> re-linking [  OK  ]
>     b)  In /var.logs/maillog:
>          [...] cannot read dumpfile
> "/var/lib/milter-greylist/db/greylist.db"

I don't have either of these.  My mail server is still running F11.

> 2) Restarting Sendmail (SELinux issue?)
>     Starting sendmail: 451 4.0.0 /etc/mail/ line 1833: \
>     Xgreylist: local socket name
> /var/run/milter-greylist/milter-greylist.sock \
>     unsafe: Permission denied

My socket has the following permissions:

> srwxr-xr-x. 1 grmilter grmilter 0 2010-06-27 17:23 /var/run/milter-greylist/milter-greylist.sock

Check your ownership and permissions.  I may have mucked with them years
ago, ISTR running milter-greylist at a time before it was packaged up in
an RPM, and having different userids than the RPM when I finally
converted over (or was that the SPF milter?)

Also, does your .etc.sysconfig/milter-greylist look like this?

> OPTIONS="$OPTIONS -p /var/run/milter-greylist/milter-greylist.sock"

I have 4 milters up an running with sendmail:

sendmail-milter-spf, milter-greylist, clamav milter, and spamass-milter

as well as 4 dnsbl (used to be 5, but one of them disappeared).  I think
I got the spf and spamass milter RPMS from

Kevin J. Cummings
kjchome at
cummings at
cummings at
Registered Linux User #1232 (

More information about the users mailing list