postgrey in centos:warning: connect to /var/spool/postfix/postgrey/socket
Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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??
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?
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.....
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.