1 (edited by mete 2015-04-01 02:15:35)

Topic: postfix & postfix-cluebringer services not starting at startup

======== Required information ====
- iRedMail version: 0.8.7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Linux/BSD distribution name and version: Ubuntu 14.10
- Related log if you're reporting an issue:
====

When I restart server, postfix and postfix-cluebringer don't start. Because of that I cannot send emails. After I manually started these services (sudo service postfix start; sudo service postfix-cluebringer start), I can send emails.

mete@abc:/etc$ sudo update-rc.d postfix-cluebringer defaults
insserv: warning: script 'K01jira1' missing LSB tags and overrides
insserv: warning: script 'K01confluence' missing LSB tags and overrides
insserv: warning: script 'K01crowd' missing LSB tags and overrides
insserv: warning: current stop runlevel(s) (0 1 6 S) of script `postfix-cluebringer' overrides LSB defaults (0 1 6).
insserv: warning: script 'jira1' missing LSB tags and overrides
insserv: warning: script 'confluence' missing LSB tags and overrides
insserv: warning: script 'crowd' missing LSB tags and overrides

----

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

2

Re: postfix & postfix-cluebringer services not starting at startup

These 2 services should be enabled by iRedMail by default. Not sure why they're not enabled on your server.

3

Re: postfix & postfix-cluebringer services not starting at startup

It was opening automatically before. I dont know what happened. Is there a way to fix that problem?

4

Re: postfix & postfix-cluebringer services not starting at startup

I also noticed that after I have upgraded my ubuntu, iredadmin url is not working. When I'm trying to start it manually I get errors.

mete@abc:/usr/share/apache2/iredadmin$ python iredadmin.py
Traceback (most recent call last):
  File "iredadmin.py", line 9, in <module>
    from libs import iredbase
  File "/usr/share/apache2/iRedAdmin-0.3.3/libs/iredbase.py", line 18, in <module>
    import iredutils
  File "/usr/share/apache2/iRedAdmin-0.3.3/libs/iredutils.py", line 13, in <module>
    import settings
ImportError: No module named settings

5

Re: postfix & postfix-cluebringer services not starting at startup

mete wrote:

ImportError: No module named settings

It means you don't have config file 'settings.py' under directory /usr/share/apache2/iredadmin/.

6

Re: postfix & postfix-cluebringer services not starting at startup

mete@abc:/usr/share/apache2/iredadmin$ ls -l
total 88
-r-xr-xr-x  1 iredadmin iredadmin    49 May 16  2014 AUTHORS
-r-xr-xr-x  1 iredadmin iredadmin  4666 May 16  2014 ChangeLog
dr-xr-xr-x  6 iredadmin iredadmin  4096 Nov 17 15:56 controllers
dr-xr-xr-x  3 iredadmin iredadmin  4096 Nov 17 15:56 docs
dr-xr-xr-x 18 iredadmin iredadmin  4096 Nov 17 15:56 i18n
-r-xr-xr-x  1 iredadmin iredadmin   402 May 16  2014 iredadmin.py
dr-xr-xr-x  6 iredadmin iredadmin  4096 Nov 17 15:56 libs
-r-xr-xr-x  1 iredadmin iredadmin 18092 May 16  2014 LICENSE
-r-xr-xr-x  1 iredadmin iredadmin   439 May 16  2014 README
-r--------  1 iredadmin iredadmin  3932 Nov 17 15:56 settings.py
-r-xr-xr-x  1 iredadmin iredadmin  4468 May 16  2014 settings.py.ldap.sample
-r-xr-xr-x  1 iredadmin iredadmin  3831 May 16  2014 settings.py.mysql.sample
-r-xr-xr-x  1 iredadmin iredadmin  3814 May 16  2014 settings.py.pgsql.sample
dr-xr-xr-x  4 iredadmin iredadmin  4096 Nov 17 15:56 static
dr-xr-xr-x  3 iredadmin iredadmin  4096 Nov 17 15:56 templates
dr-xr-xr-x  2 iredadmin iredadmin  4096 May 16  2014 tools

7

Re: postfix & postfix-cluebringer services not starting at startup

Did you upgrade Ubuntu from old release (e.g. 12.04, 13.xx), or just upgrade some packages?

8

Re: postfix & postfix-cluebringer services not starting at startup

Just upgraded some packages. But it also upgraded postfix. Then iredadmin url started not working.

9

Re: postfix & postfix-cluebringer services not starting at startup

*) Does it work if you restart Apache or uwsgi (if you're running Nginx) service?
*) Please show us content of file /etc/apache2/conf-available/iredadmin.conf.

10 (edited by mete 2015-04-03 08:09:15)

Re: postfix & postfix-cluebringer services not starting at startup

It doesnt work when I restart Apache. 404 Not found error.

root@abc:/etc/init.d# cat /etc/apache2/conf-available/iredadmin.conf
WSGISocketPrefix /var/run/wsgi
WSGIDaemonProcess iredadmin user=iredadmin threads=15
WSGIProcessGroup iredadmin

AddType text/html .py

<Directory /usr/share/apache2/iredadmin/>
    Order allow,deny
    Allow from all
</Directory>

11

Re: postfix & postfix-cluebringer services not starting at startup

Which URL was not found? And which files did you removed?

12

Re: postfix & postfix-cluebringer services not starting at startup

I didn't remove anything. www.mywebsite.com/iredadmin not found. It was working before updates.

13

Re: postfix & postfix-cluebringer services not starting at startup

Did you access web via https or http?

14

Re: postfix & postfix-cluebringer services not starting at startup

Thanks. https worked.

15

Re: postfix & postfix-cluebringer services not starting at startup

Can you give me any advice about auto start problem of postfix and postfix-cluebringer services?

16

Re: postfix & postfix-cluebringer services not starting at startup

mete wrote:

Can you give me any advice about auto start problem of postfix and postfix-cluebringer services?

First of all, these 2 services should be enabled by iRedMail by default, not sure why they're not enabled on your server.
I suggest you enable them manually with command 'update-rc.d'.

17

Re: postfix & postfix-cluebringer services not starting at startup

It says:

sudo update-rc.d postfix-cluebringer defaults
insserv: warning: current stop runlevel(s) (0 1 6 S) of script `postfix-cluebringer' overrides LSB defaults (0 1 6).

18

Re: postfix & postfix-cluebringer services not starting at startup

It's ok. just a warning and override default runlevels.

19

Re: postfix & postfix-cluebringer services not starting at startup

Anything else that I can check?

20

Re: postfix & postfix-cluebringer services not starting at startup

mete wrote:

Anything else that I can check?

No idea yet. sorry.