1 (edited by klerik 2012-02-19 16:22:18)

Topic: policyd doesnt start

- Linux/BSD distribution name and version: openSUSE 12.1
- iRedMail version and backend (LDAP/MySQL): 0.7.4 and MySQL
- log:
Feb 19 09:15:17 azeroth policyd[6216]: Starting policyd libgcc_s.so.1 must be installed for pthread_cancel to work
Feb 19 09:15:17 azeroth policyd[6216]: ..failed
Feb 19 09:15:17 azeroth systemd[1]: policyd.service: control process exited, code=exited status=7
Feb 19 09:15:17 azeroth systemd[1]: Unit policyd.service entered failed state.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: policyd doesnt start

Please figure out which RPM package provides file "libgcc_s.so.1", then install it and try again.

3

Re: policyd doesnt start

I did a quick search in Google, looks like you have to install package 'libgcc46'.

# zypper install libgcc46

4

Re: policyd doesnt start

libgcc46-4.6.2_20111026-1.1.4.x86_64.rpm provides libgcc_s.so.1 and when I reinstall this package then nothing hapen, still the same problem

5

Re: policyd doesnt start

zypper install -f libgcc46 not help

6

Re: policyd doesnt start

Please change parameter DEBUG to 1 in Policyd config file, restart Policyd service and monitor the log file. Let's see what happens.

7

Re: policyd doesnt start

U can delete this topic, i try iRedMail, because I thought the system is better then my configuration with only postfix, dovecot and spamassassin, but because the policyd not work, I go back to my solution of mail server. Thanks for all.

8

Re: policyd doesnt start

Interesting. You go back just because there's an issue happened.

9 (edited by juvix 2012-02-19 22:56:34)

Re: policyd doesnt start

I agree... He is upset because something didn't work out with a FREE solution in which he is receiving FREE support.

I paid for my subscription just because you're awesome Zhang and of course I love iredadmin-pro

10

Re: policyd doesnt start

Yes, sorry. This is my primary mail server and I have only this weekend to try iRedMail and because issue with policyd is "strange", I must return all to provious settings. But I think iRedMail is good piece of software/scripts and when I have more time, I try it again.

11

Re: policyd doesnt start

OpenSuSe 12.1

I want to use iRedMail and I have this same problem with policyd. I want to test it for functionality for production server but the first installation failed. If it does not function, I can not buy Pro version. Can anyone help me? Thank's

==> /var/log/mail.info <==
Mar 18 10:45:30 dsmail1 policyd:  ---- RECIPIENT THROTTLE CONFIG ----
Mar 18 10:45:30 dsmail1 policyd: config: recipient throttle> 0
Mar 18 10:45:30 dsmail1 policyd: config: recipient msglimit> 64
Mar 18 10:45:30 dsmail1 policyd: config: recipient timelimit> 3600
Mar 18 10:45:30 dsmail1 policyd: config: recipient expire inactive> 2678400
Mar 18 10:45:30 dsmail1 policyd: config: postfix_recipient_quota_exceeded> action=defer_if_permit Policy Rejection- Quota Exceeded.#012#012
Mar 18 10:45:30 dsmail1 policyd: config: quota_exceeded_temp_reject> 1
Mar 18 10:45:30 dsmail1 policyd:
Mar 18 10:45:30 dsmail1 policyd: starting policyd v1.82
Mar 18 10:45:30 dsmail1 policyd: DEBUG: fd: 0: rlimit: max: 4097 cur: 4097

==> /var/log/messages <==
Mar 18 10:29:39 dsmail1 startproc: startproc:  exit status of parent of /usr/sbin/policyd: 255
Mar 18 10:29:39 dsmail1 policyd[27865]: Starting policyd ..failed
Mar 18 10:29:39 dsmail1 systemd[1]: policyd.service: control process exited, code=exited status=7
Mar 18 10:29:39 dsmail1 systemd[1]: Unit policyd.service entered failed state.
Mar 18 10:30:46 dsmail1 policyd[27903]: Starting policyd ..done
Mar 18 10:30:46 dsmail1 policyd[27903]: libgcc_s.so.1 must be installed for pthread_cancel to work
Mar 18 10:30:46 dsmail1 policyd[27915]: Shutting down policyd ..done
Mar 18 10:45:30 dsmail1 policyd[28058]: Starting policyd ..done
Mar 18 10:45:30 dsmail1 policyd[28058]: libgcc_s.so.1 must be installed for pthread_cancel to work
Mar 18 10:45:30 dsmail1 policyd[28071]: Shutting down policyd ..done

libgcc_s.so.1 is installed in my system:

dsmail1:~ # locate libgcc_s.so.1
/lib/libgcc_s.so.1
/lib64/libgcc_s.so.1
/usr/lib/debug/lib64/libgcc_s.so.1.debug

12

Re: policyd doesnt start

Is it a x86 or x86_64 (amd64) server OS?

Could you please show me output of below commands:

# uname -a
# rpm -qi policyd

13

Re: policyd doesnt start

It is  VMWARE virtual server

dsmail1:/etc # uname -a
Linux dsmail1 3.1.9-1.4-desktop #1 SMP PREEMPT Fri Jan 27 08:55:10 UTC 2012 (efb5ff4) x86_64 x86_64 x86_64 GNU/Linux
dsmail1:/etc # rpm -qi policyd
Name        : policyd
Version     : 1.82
Release     : 3.4
Architecture: x86_64
Install Date: Sun Mar 18 10:53:04 2012
Group       : Productivity/Networking/Email/Servers
Size        : 242742
License     : GPL v2
Signature   : DSA/SHA1, Thu Oct 20 23:47:23 2011, Key ID 09e86b94367fe7fc
Source RPM  : policyd-1.82-3.4.src.rpm
Build Date  : Thu Oct 20 23:47:03 2011
Build Host  : build27
Relocations : (not relocatable)
Vendor      : obs://build.opensuse.org/server:mail
URL         : [url]http://policyd.sourceforge.net[/url]
Summary     : Anti-spam plugin for Postfix
Description :
Policyd is an anti-spam plugin for Postfix (written in C) that does
Greylisting, Sender-(envelope, SASL or host / ip)-based throttling
(on messages and/or volume per defined time unit), Recipient rate
limiting, Spamtrap monitoring / blacklisting, HELO auto blacklisting
and HELO randomization preventation.


Authors:
--------
     Cami Sardinha <cami@mweb.co.za>
Distribution: server:mail / openSUSE_Factory

14

Re: policyd doesnt start

OK, seems i solved this issue by rebuilding RPM package with addition flag: -lgcc_s.

Please try to fix it with below steps:

1) Backup policyd config file:

# cp /etc/policyd.conf /etc/policyd.conf.bak

2) Delete policyd package.

# rpm -e policyd

3) Install the one i rebuilt.

# rpm -ivh http://iredmail.org/yum/opensuse/12.1/policyd-1.82-3.5.x86_64.rpm

4) Reverse config file:

# cp /etc/policyd.conf.bak /etc/policyd.conf

5) Start it:

# /etc/init.d/policyd restart

That's all.

Please do let me know whether it works for you or not. Thanks. smile

15

Re: policyd doesnt start

It works now. Thank you for quick solution but I have to be sure, that will be works after OpenSuSe update of policyd. Can you confirm me it?

16

Re: policyd doesnt start

It will be fine.

Policyd is provided by iRedMail's zypper repository, not openSUSE official repositories.
Currently, Policyd-1.82 is the latest stable release, released on 2007-08-20. We will switch to Policyd-2 (complete rewritten in Perl programming language) in about one year.

17

Re: policyd doesnt start

Thank's a lot. I can start to test it now. If it will be OK for my use, I'm sure I will buy Pro version.