1 (edited by BlackMuddler 2011-03-08 17:15:33)

Topic: [SOLVED] iRedAPD dont start..

Hi ..

First - I uses iRedmail 0.6.0 - iRedAdmin-Pro 1.4.1 and iRedAPD 1.3.4

Now: Debug is enabled in files iredapd and iredapd-rr. Both tells me with start the following:

iredapd:

2011-03-08 07:55:35 DEBUG Setting umask
2011-03-08 07:55:35 DEBUG Changing working directory to "/"
2011-03-08 07:55:35 DEBUG Redirecting file descriptors
2011-03-08 07:57:28 INFO Starting iredapd (v1.3.4, pid: 2688), listening on 127.0.0.1:7777.
2011-03-08 07:57:28 DEBUG Forking first child.
2011-03-08 07:57:28 DEBUG Creating new session
2011-03-08 07:57:28 DEBUG Forking second child.
2011-03-08 07:57:28 DEBUG Setting umask
2011-03-08 07:57:28 DEBUG Changing working directory to "/"
2011-03-08 07:57:28 DEBUG Redirecting file descriptors

iredapd-rr

2011-03-08 07:55:46 DEBUG Setting umask
2011-03-08 07:55:46 DEBUG Changing working directory to "/"
2011-03-08 07:55:46 DEBUG Redirecting file descriptors
2011-03-08 07:57:28 INFO Starting iredapd (v1.3.4, pid: 2692), listening on 127.0.0.1:7778.
2011-03-08 07:57:28 DEBUG Forking first child.
2011-03-08 07:57:28 DEBUG Creating new session
2011-03-08 07:57:28 DEBUG Forking second child.
2011-03-08 07:57:28 DEBUG Setting umask
2011-03-08 07:57:28 DEBUG Changing working directory to "/"
2011-03-08 07:57:28 DEBUG Redirecting file descriptors

Nothing more - the script stops, dont generate /var/run/*.pid file and no running proces. Netstat -ntlp confirm that.

and therefore postfix complain about that:

Mar  8 08:18:05 mail postfix/smtpd[3030]: warning: connect to 127.0.0.1:7778: Connection refused
Mar  8 08:18:05 mail postfix/smtpd[3030]: warning: problem talking to server 127.0.0.1:7778: Connection refused
Mar  8 08:18:06 mail postfix/smtpd[3030]: warning: connect to 127.0.0.1:7778: Connection refused
Mar  8 08:18:06 mail postfix/smtpd[3030]: warning: problem talking to server 127.0.0.1:7778: Connection refused

Have checked and double checked everything - what can I do from here to get it to working - what may I have overlooked?

Thanks in advance

BlackMuddler

----

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

2

Re: [SOLVED] iRedAPD dont start..

Could you please try to set "run_as_daemon = no" in iredapd.ini and iredapd-rr.ini?
Then restart iredapd service, it will log to your terminal directly, so that you can check what's happening directly.

3 (edited by BlackMuddler 2011-03-08 15:56:48)

Re: [SOLVED] iRedAPD dont start..

ZhangHuangbin wrote:

Could you please try to set "run_as_daemon = no" in iredapd.ini and iredapd-rr.ini?
Then restart iredapd service, it will log to your terminal directly, so that you can check what's happening directly.

Thank you for quick reply - but I have just figured it out - The user for running iredapd was wrongly written .. So sorry for that mistake.. I running fine again ..

Can I edit the thread header to include [SOLVED] in start?

4

Re: [SOLVED] iRedAPD dont start..

BlackMuddler wrote:

Can I edit the thread header to include [SOLVED] in start?

Go ahead. smile

5

Re: [SOLVED] iRedAPD dont start..

ZhangHuangbin wrote:
BlackMuddler wrote:

Can I edit the thread header to include [SOLVED] in start?

Go ahead. smile

I dont think I can yikes - cant find a edit on the thread overview page

6

Re: [SOLVED] iRedAPD dont start..

Try searching "Edit" in this page

7 (edited by BlackMuddler 2011-03-08 17:21:13)

Re: [SOLVED] iRedAPD dont start..

ZhangHuangbin wrote:

Try searching "Edit" in this page

Thank you and sorry to be a noob .. tongue

8

Re: [SOLVED] iRedAPD dont start..

Hi,

First - I am experimenting with iRedMail-0.7.0-beta5 - iRedAdmin-Pro-LDAP-1.4.1 and iRedAPD 1.3.4 in an ezjail on a freebsd 8.2 box.

I think it is useful to extra stress the need to replace the default ldap-password in iredapd.ini (and iredapd-rr.ini) with the ldap-password that has been set during the wonderful iRedMail installation.

From Installation Instruction for iRedAPD

* Open /opt/iredapd/etc/iredapd.ini and set correct values.

If you get errors like this

/var/log/iredapd.log

2011-03-17 01:38:24 INFO Starting iredapd (v1.3.4, pid: 9318), listening on 127.0.0.1:7778.
2011-03-17 01:51:20 ERROR LDAP bind failed: incorrect bind dn or password.

or

/var/log/maillog

Mar 17 01:01:32 mail postfix/smtpd[9271]: warning: connect to 127.0.0.1:7778: Connection refused
Mar 17 01:01:32 mail postfix/smtpd[9271]: warning: problem talking to server 127.0.0.1:7778: Connection refused

Replace the password in value bindpw with the correct password for the vmail-user in ldap.

/opt/iredapd/etc/iredapd.ini

...
[ldap]
uri         = ldap://127.0.0.1:389
binddn      = cn=vmail,dc=iredmail,dc=org
bindpw      = mRAEWpGRtlCs1O0QuWpXoaJ36EjRql
basedn      = o=domains,dc=iredmail,dc=org
...

The correct password can be found using unix-command: grep bind_pw `find /usr/local/etc/postfix`

mail# grep bind_pw `find /usr/local/etc/postfix`
/usr/local/etc/postfix/ldap/virtual_mailbox_domains.cf:bind_pw  = ea1iHimFsXBOULuyR7kbvRVO4
/usr/local/etc/postfix/ldap/relay_domains.cf:bind_pw            = ea1iHimFsXBOULuyR7kbvRVO4
/usr/local/etc/postfix/ldap/transport_maps_domain.cf:bind_pw    = ea1iHimFsXBOULuyR7kbvRVO4

p.s. Hopefully the installation of iRedAPD will be an integrated part of the iRedMail installation in the near future.

9

Re: [SOLVED] iRedAPD dont start..

bob savage wrote:

p.s. Hopefully the installation of iRedAPD will be an integrated part of the iRedMail installation in the near future.

Already integrated in v0.7.0-beta6 for both OpenLDAP and MySQL backend.