Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 02-18-2008, 01:34 AM   #1
LQ Newbie
Registered: Feb 2004
Location: Portland,OR
Distribution: xubuntu
Posts: 24

Rep: Reputation: 15
postgrey stopping all incoming mail

I have been using postfix/postgrey on a home server successfully for a few weeks until recently an unknown change caused the greylisting to block all mail (white, black and gray). When I disable greylisting by commenting out:
# check_policy_service inet:
Then everything comes through.

I have scanned /etc/postfix/ /etc/postfix-policyd.conf and /etc/greylistd/config to check the delays; all at 2 minutes.

I'm not sure if either of these mean anything, but when I read the boot-up messages it says postgrey:
"no connection to syslog available"
The other message I get is when start/stopping greylistd
$ sudo greylistd stop
Could not bind/listen to socket /var/run/greylistd/socket: (98, 'Address already in use')

Is there anything obvious anyone can think of? thanks, PJ

Last edited by jonespg; 02-18-2008 at 01:46 AM.
Old 02-18-2008, 11:48 PM   #2
Registered: Nov 2006
Location: Seattle, WA
Distribution: Fedora
Posts: 407

Rep: Reputation: 35
From your description, it seems that Postfix is the one that is blocking your incoming e-mail; the line specifying the 'check_policy_service' does indeed cause this behavior. If you tell Postfix to check if a policy server will allow the message, and that server doesn't respond, Postfix will not allow the message through.

It seems that you need to have a harder look at the way the postgrey stuff is set up, because it does not appear that a live postgrey process is listening where Postfix expects it to be listening. I commend you to the manpage for netstat, a utility that will list for you the active sockets of a particular type, along with the program that is responsible for the connection (if you ask nicely).

Your post indicates that your setup is using a loopback TCP connection as the conduit between Postfix and postgrey (inet: This indicates that Postfix will send a query on that TCP port, and expect a reply there. But your log report indicates that postgrey is trying to bind to a (unix) socket, not a TCP socket, so it is unlikely that these two processes will be able to exchange messages successfully.

I am not sure what caused this change, but it needs to be corrected: either you need to convince postgrey to listen on, or you need to tell Postfix to talk on the unix socket /var/run/greylistd/socket. I will leave as an exercise for you to work out which you like better, and how to alter the relevant configuration file to make this so.
Old 02-19-2008, 01:35 AM   #3
LQ Newbie
Registered: Feb 2004
Location: Portland,OR
Distribution: xubuntu
Posts: 24

Original Poster
Rep: Reputation: 15
Thanks for the insightful reply. I will update all when I have it fixed. PJ

45 minutes later

fixed! The change I made was in /etc/postfix-policyd.conf I changed the following line:
BINDPORT=10031 to
which matched the specification in /etc/postfix/
and then uncommented the previously noted line.

A real testament to the strength of peer supported HOWTOs and user groups when an amateur like me can get this running. thanks, PJ

Last edited by jonespg; 02-19-2008 at 02:21 AM.


greylist, postfix

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to make Sendmail forward all incoming mail to localhost port 26 (Domino mail) speedgelb Linux - Software 3 09-27-2013 11:18 AM
How to separate Incoming Mail and Outgoing Mail on SENDMAIL LiloAma Linux - Networking 1 03-22-2004 03:24 AM
Postfix mail server not accepting incoming mail from the external interface rexmundi Linux - Networking 7 12-22-2003 04:41 PM
incoming mail not coming in Michele Linux - Newbie 2 08-18-2003 03:26 PM
incoming mail exigent Linux - Networking 7 09-17-2002 05:45 PM > Forums > Linux Forums > Linux - Server

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

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