LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   postgrey in centos:warning: connect to /var/spool/postfix/postgrey/socket (https://www.linuxquestions.org/questions/linux-security-4/postgrey-in-centos-warning-connect-to-var-spool-postfix-postgrey-socket-4175513678/)

SarahGurung 08-06-2014 01:49 AM

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?

TB0ne 08-06-2014 09:42 AM

Quote:

Originally Posted by SarahGurung (Post 5216015)
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

SarahGurung 08-06-2014 10:38 PM

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?

TB0ne 08-07-2014 09:24 AM

Quote:

Originally Posted by SarahGurung (Post 5216647)
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.....

Greystone 09-10-2014 04:00 AM

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.


All times are GMT -5. The time now is 01:05 AM.