LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 02-18-2008, 12:34 AM   #1
jonespg
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:127.0.0.1:60000
Then everything comes through.

I have scanned /etc/postfix/main.cf /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 12:46 AM.
 
Old 02-18-2008, 10:48 PM   #2
dkm999
Member
 
Registered: Nov 2006
Location: Seattle, WA
Distribution: Fedora
Posts: 401

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:127.0.0.1:60000). 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 127.0.0.1:60000, 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, 12:35 AM   #3
jonespg
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
BINDPORT=60000
which matched the specification in /etc/postfix/main.cf
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 01:21 AM.
 
  


Reply

Tags
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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 10:18 AM
How to separate Incoming Mail and Outgoing Mail on SENDMAIL LiloAma Linux - Networking 1 03-22-2004 02:24 AM
Postfix mail server not accepting incoming mail from the external interface rexmundi Linux - Networking 7 12-22-2003 03:41 PM
incoming mail not coming in Michele Linux - Newbie 2 08-18-2003 02:26 PM
incoming mail exigent Linux - Networking 7 09-17-2002 04:45 PM


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

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