Topic: iredapd -1.5.0 problems
==== Required information ====
- iRedMail version: 0.9.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Apache
- Linux/BSD distribution name and version: Debian Jessie
- Related log if you're reporting an issue:
====
iredapd suddenly stops without prior notice and no information what so ever in either its own log file or in syslog. Only indication is this from mail.log:
warning: connect to 127.0.0.1:7777: Connection refused
warning: problem talking to server 127.0.0.1:7777: Connection refused
When iredapd starts this is what is logged:
2015-05-19 23:33:19 INFO Starting iRedAPD (version: 1.5.0, backend: ldap), listening on 127.0.0.1:7777.
2015-05-19 23:33:19 INFO Loading plugin: reject_null_sender
2015-05-19 23:33:19 INFO Loading plugin: ldap_maillist_access_policy
2015-05-19 23:33:19 INFO Loading plugin: ldap_amavisd_block_blacklisted_senders
2015-05-19 23:33:19 INFO Loading plugin: ldap_recipient_restrictions
2015-05-19 23:33:19 INFO Loading plugin: amavisd_message_size_limit
To mitigate the problem I have been force to write the following script(/usr/local/sbin/check_iredapd.sh):
#!/bin/sh
CMD=/etc/init.d/iredapd
[ -x $CMD ] || exit 0
STATUS=$($CMD status)
[ $? != 0 ] && $CMD start 2>&1 > /dev/null
exit 0
And create the following file /etc/cron.d/iredapd:
MAILTO=root
* * * * * root [ -x /usr/local/sbin/check_iredapd.sh ] && /usr/local/sbin/check_iredapd.sh
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.