LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-06-2014, 01:49 AM   #1
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Rep: Reputation: Disabled
postgrey in centos:warning: connect to /var/spool/postfix/postgrey/socket


Hello,

I have postfix 2.11 installed from source and i installed postgrey through yum(centos server). I followed the following article:
Code:
http://forums.zpanelcp.com/Thread-HOW-TO-Install-Postgrey-ANTISPAM-for-Postfix
But the the maillog i see the following:
warning: connect to /var/spool/postfix/postgrey/socket: No such file or directory
warning: problem talking to server /var/spool/postfix/postgrey/socket: No such file or directory

When i did netstat -nlp|grep postgrey i got the following:
unix 2 [ ACC ] STREAM LISTENING 171706276 23701/socket /var/spool/postfix/postgrey/socket


Then why m i getting that error?
 
Old 08-06-2014, 09:42 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,635

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by SarahGurung View Post
Hello,
I have postfix 2.11 installed from source and i installed postgrey through yum(centos server). I followed the following article:
Code:
http://forums.zpanelcp.com/Thread-HOW-TO-Install-Postgrey-ANTISPAM-for-Postfix
But the the maillog i see the following:
warning: connect to /var/spool/postfix/postgrey/socket: No such file or directory
warning: problem talking to server /var/spool/postfix/postgrey/socket: No such file or directory

When i did netstat -nlp|grep postgrey i got the following:
unix 2 [ ACC ] STREAM LISTENING 171706276 23701/socket /var/spool/postfix/postgrey/socket

Then why m i getting that error?
That's not an error, it's a warning, as it clearly says. Since postgrey is running, are you actually having PROBLEMS with it, or are you just seeing that message??

And a quick search for the error would have led you to the CentOS fourms, where it is described, along with a solution. Did you try to look this up????
http://wiki.centos.org/HowTos/postgrey
http://wiki.centos.org/HowTos/SELinu...9e56191c257c01
 
Old 08-06-2014, 10:38 PM   #3
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
Hello,

Thank you for your reply. Well selinux is disabled so i don't think that should be creating problems and i did as mentioned there but stil then i see that warning,not sure why. And after the postgrey was on,i was not able to receive mails from gmail and it gave the following error:
Code:
postfix/smtpd[27968]: NOQUEUE: reject: RCPT from mail-ie0-f182.google.com[209.85.223.182]: 451 4.3.5 Server configuration problem; from=<test1@gmail.com> to=<test@example.com> proto=ESMTP helo=<mail-ie0-f182.google.com>

Only after i turned off postgrey,i started receiving mails from gmail. So what could be the possible reason?
 
Old 08-07-2014, 09:24 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,635

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by SarahGurung View Post
Hello,
Thank you for your reply. Well selinux is disabled so i don't think that should be creating problems and i did as mentioned there but stil then i see that warning,not sure why. And after the postgrey was on,i was not able to receive mails from gmail and it gave the following error:
Code:
postfix/smtpd[27968]: NOQUEUE: reject: RCPT from mail-ie0-f182.google.com[209.85.223.182]: 451 4.3.5 Server configuration problem; from=<test1@gmail.com> to=<test@example.com> proto=ESMTP helo=<mail-ie0-f182.google.com>
Only after i turned off postgrey,i started receiving mails from gmail. So what could be the possible reason?
Did you not see the part where it VERY CLEARLY SAYS "Server configuration problem"??? You posted it...that means you've got SOME error(s) somewhere in your installation that you need to address. The entire postgrey guide for CentOS is very clear, did you follow those steps? The warning message you posted initially can ONLY come from SELinux policies.....
 
Old 09-10-2014, 04:00 AM   #5
Greystone
LQ Newbie
 
Registered: Sep 2014
Posts: 1

Rep: Reputation: Disabled
Well, this message definitely can be generated by others than SELinux as well. Though I'm running on Debian I get the exact same error without SELinux even installed. The reason for this is, that in my default configuration Postgrey is not listening on the Unix socket but on INET. So try changing your check_policy_service command in /etc/postfix/main.cf to:

Code:
check_policy_service inet:127.0.0.1:10023
Find out which port and IP your Postgrey instance is listening to using

Code:
netstat -tpan
Maybe this also helps in your CentOS environment.

Last edited by Greystone; 09-10-2014 at 04:15 AM.
 
  


Reply



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
[SOLVED] Startup order for Postfix, Dovecot and Postgrey? kikinovak Slackware 2 07-13-2013 11:49 AM
Postfix, Amvisd and Postgrey mail server Whitelists not working scheidel21 Linux - Server 0 05-20-2010 11:56 AM
tar: var/spool/postfix/public/cleanup: socket ignored Skaperen Ubuntu 2 01-21-2010 03:51 PM
postfix - postgrey - lost connection after RSET JackDante Linux - Server 2 11-25-2009 08:42 AM
LXer: Killing That Spam With Postgrey And Postfix LXer Syndicated Linux News 0 07-02-2006 11:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:48 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration