Bug 809400

Summary: Postgrey from default Repo does not install postgrey.service
Product: [openSUSE] openSUSE 12.3 Reporter: Forgotten User 0SfHqLcqFR <forgotten_0SfHqLcqFR>
Component: OtherAssignee: Christian Wittmer <chris>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: dengel, luuk34
Version: Final   
Target Milestone: ---   
Hardware: HP   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Forgotten User 0SfHqLcqFR 2013-03-14 14:09:06 UTC
User-Agent:       Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0

Fresh installation of Postgrey does not install postgrey.service files at all.

Therefore Postgrey does not start nor stop properly.

Reproducible: Always

Steps to Reproduce:
1. Install Postgrey
2. Try to start or stop postgrey
3. Check errors
Actual Results:  
no systemd files for Postgrey under
/lib/systemd/system/ and under /etc/systemd/system/

Expected Results:  
Distribute the working Postgrey Version which includes all files for systemd from http://download.opensuse.org/repositories/server:/mail/openSUSE_12.3 Repo
Comment 1 Andreas Jaeger 2013-03-27 08:04:47 UTC
Jörg, it should work without service files at all - with the traditional SysV init files.

Please show the output of
systemctl status postgreq.service
Comment 2 Forgotten User 0SfHqLcqFR 2013-03-27 08:57:52 UTC
It is working somehow but nor right. I can start postgrey with init script but got an error. But i cant stop postgrey even the system tells me it was stopped.. i have to kill the process.
it is pretty easy to duplicate.


-Please show the output of
-systemctl status postgreq.service
-------------------------------------------------
linux-l098:~ # systemctl status postgrey.service
postgrey.service - LSB: Postgrey a greylisting server for postfix
	  Loaded: loaded (/etc/init.d/postgrey)
	  Active: failed (Result: exit-code) since Wed, 2013-03-27 09:48:25 CET; 3min 46s ago
	 Process: 15828 ExecStart=/etc/init.d/postgrey start (code=exited, status=7)
	  CGroup: name=systemd:/system/postgrey.service

Mar 27 09:48:25 linux-l098.site postgrey[15836]: 2013/03/27-09:48:25 postgrey (type Net::Server::Multiplex) starting! pid(15836)
Mar 27 09:48:25 linux-l098.site postgrey[15836]: Using default listen value of 128
Mar 27 09:48:25 linux-l098.site postgrey[15836]: Binding to UNIX socket file /var/spool/postfix/postgrey/socket using SOCK_STREAM
Mar 27 09:48:25 linux-l098.site postgrey[15836]: Setting gid to "51 51"
Mar 27 09:48:25 linux-l098.site postgrey[15836]: Setting uid to "498"
Mar 27 09:48:25 linux-l098.site postgrey[15836]: FATAL: ERROR: locked: /var/lib/postgrey/postgrey.lock
Mar 27 09:48:25 linux-l098.site postgrey[15828]: ..failed
Mar 27 09:48:25 linux-l098.site systemd[1]: Failed to start LSB: Postgrey a greylisting server for postfix.
Mar 27 09:48:25 linux-l098.site systemd[1]: Unit postgrey.service entered failed state
Mar 27 09:50:11 linux-l098.site postgrey[15723]: 2013/03/27-09:50:11 Server closing!
---------------------------------------------------------------------------
linux-l098:~ # systemctl start postgrey.service
Job for postgrey.service failed. See 'systemctl status postgrey.service' and 'journalctl -n' for details.
----------------------------------------------------------------------------
linux-l098:~ # rcpostgrey start
redirecting to systemctl  start postgrey
Job for postgrey.service failed. See 'systemctl status postgrey.service' and 'journalctl -n' for details.
-----------------------------------------------------------------------------
linux-l098:~ # ps -aux | grep postgr
postgrey 15890  0.0  0.2  14336  9924 ?        Ss   09:53   0:00 /usr/sbin/postgrey -d --unix=/var/spool/postfix/postgrey/socket --auto-whitelist-clients
------------------------------------------------------------------------------
linux-l098:~ # rcpostgrey stop
redirecting to systemctl  stop postgrey
linux-l098:~ # rcpostgrey status
Checking for service postgrey:                                                                                                                                unused
postgrey.service - LSB: Postgrey a greylisting server for postfix
----------------------------------------------------------------------------
linux-l098:~ # ps -aux | grep postgr
postgrey 15890  0.0  0.2  14336  9924 ?        Ss   09:53   0:00 /usr/sbin/postgrey -d --unix=/var/spool/postfix/postgrey/socket --auto-whitelist-clients
Comment 3 Luuk V 2013-07-12 10:36:25 UTC
I see this is on 'needinfo'
I think this is the same bug as this one:
https://bugzilla.novell.com/show_bug.cgi?id=815160
and also relates to:
https://bugzilla.novell.com/show_bug.cgi?id=782364

I'm running on "openSUSE 12.3 (x86_64)", and have same probles with postgrey...


opensuse:/etc # /etc/init.d/postgrey status 
Checking for service postgrey: ..unused
postgrey.service - LSB: Postgrey a greylisting server for postfix
          Loaded: loaded (/etc/init.d/postgrey)
          Active: failed (Result: exit-code) since Thu, 2013-07-11 17:32:22 CEST; 19h ago
         Process: 3689 ExecStart=/etc/init.d/postgrey start (code=exited, status=7)
          CGroup: name=systemd:/system/postgrey.service
                  └ 3697 /usr/sbin/postgrey -d --inet=127.0.0.1:10031 --aut...

opensuse:/etc # ps -ef | grep posrgrey
root     24424 22880  0 12:35 pts/0    00:00:00 grep --color=auto posrgrey
Comment 4 Christian Wittmer 2014-03-18 00:14:52 UTC
*** Bug 815160 has been marked as a duplicate of this bug. ***
Comment 5 Christian Wittmer 2014-03-18 00:17:37 UTC
is a duplicate

*** This bug has been marked as a duplicate of bug 782364 ***
Comment 6 Bernhard Wiedemann 2014-03-18 01:00:18 UTC
This is an autogenerated message for OBS integration:
This bug (809400) was mentioned in
https://build.opensuse.org/request/show/226515 12.3 / postgrey
Comment 7 Bernhard Wiedemann 2014-03-18 14:00:26 UTC
This is an autogenerated message for OBS integration:
This bug (809400) was mentioned in
https://build.opensuse.org/request/show/226595 13.1+12.3 / postgrey
Comment 8 Swamp Workflow Management 2014-03-25 10:06:10 UTC
openSUSE-RU-2014:0441-1: An update that has four recommended fixes can now be installed.

Category: recommended (low)
Bug References: 782364,809400,815160,862552
CVE References: 
Sources used:
openSUSE 12.3 (src):    postgrey-1.34-22.3.1, postgrey-1.34-22.4.1