1

Topic: Mail exchange did not work

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.6
- Linux/BSD distribution name and version:  Debian Jessie
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====

Using the configuration described above, I was not able to send a mail from user: postmaster@x.com to master@x.com knowing that Postgres exists in separate docker container. Using Thunderbird as a mail client to test the configuration, it said : "server configuration problems" after trying to send an e-mail.
P.S: The users have been recognized by Thunderbird.

What's missing ?

----

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

2

Re: Mail exchange did not work

mohamedmaalej.sde wrote:

it said : "server configuration problems" after trying to send an e-mail.

Seems iRedAPD service is not running.

Any error while restarting iredapd service? Also any error in /var/log/iredapd/iredapd.log?

3

Re: Mail exchange did not work

It gave this message "iredapd: unrecognized service" !

4

Re: Mail exchange did not work

*) Is this a new iRedMail installation? Or upgrade from an old iRedMail release?
*) Please add a systemd service with command below:

ln -s /opt/iredapd/scripts/iredapd.service /etc/systemd/system/multi-user.target.wants/iredapd.service
systemctl daemon-reload
systemctl restart iredapd

5

Re: Mail exchange did not work

Hi, thank you very much for your tips.

*) Yes, it's a fresh Iredmail installation

*) the first command "ln -s" said that the link already exists; the second one and the third one failed and both generated this message "Failed to get D-Bus connection: Unknown error -1"

Please advise.

6

Re: Mail exchange did not work

mohamedmaalej.sde wrote:

*) the first command "ln -s" said that the link already exists; the second one and the third one failed and both generated this message "Failed to get D-Bus connection: Unknown error -1"

Please show us output:

systemctl list-unit-files | grep -i 'dbus'

Seems some dbus service is not running.

7

Re: Mail exchange did not work

Here is the output of the command:

dbus-org.freedesktop.hostname1.service static 
dbus-org.freedesktop.locale1.service   static 
dbus-org.freedesktop.login1.service    static 
dbus-org.freedesktop.machine1.service  static 
dbus-org.freedesktop.timedate1.service static 
dbus.service                           static 
dbus.socket                            static

8

Re: Mail exchange did not work

P.S: I tried to install iredmail and postgres on a single docker  container  (https://github.com/docker-build/iRedMail), but got the same iredapd issues.

9

Re: Mail exchange did not work

Is dbus service running?

10

Re: Mail exchange did not work

Yes

11

Re: Mail exchange did not work

No idea right now. sad

Does it work if you remove /etc/systemd/system/multi-user.target.wants/iredapd.service (a symbol link) and re-create it?

12

Re: Mail exchange did not work

I will check it. Is it OK to run iredapd using python ? (from /opt/iredapd/iredapd.py)

13 (edited by mohamedmaalej.sde 2017-02-02 17:25:53)

Re: Mail exchange did not work

Do you have any official  iredapd docker image using Postgresql as a database ?

14

Re: Mail exchange did not work

mohamedmaalej.sde wrote:

Is it OK to run iredapd using python ? (from /opt/iredapd/iredapd.py)

Yes. like this:

python /opt/iredapd/iredapd.py

15

Re: Mail exchange did not work

I did it. It said that iredapd and amavisd databases were not found. I created the databases and granted logging in to users but got finally :"Programming error: relation "users" does not exist"

16

Re: Mail exchange did not work

This is not right. Did you see any error in file "iRedMail-0.9.6/runtime/install.log" and "iRedMail-0.9.6/runtime/pkg.install.log"?

Seems your iRedMail installation was not success, it's better to reinstall server OS then install iRedMail again.

17 (edited by mohamedmaalej.sde 2017-02-06 21:39:54)

Re: Mail exchange did not work

I am working in a Docker environment  (Debian docker image) and want to install iredmail on it (inside the Docker container).
Have you ever tried to install iredmail on a Docker environment ?

18

Re: Mail exchange did not work

mohamedmaalej.sde wrote:

Have you ever tried to install iredmail on a Docker environment ?

No. Just show me errors, so that i can help.

19 (edited by mohamedmaalej.sde 2017-02-07 17:52:21)

Re: Mail exchange did not work

OK thank you very much.

Regarding "iRedMail-0.9.6/runtime/pkg.install.log" , everything is OK, that been said no errors has been noticed.

Here are the messages (in iRedMail-0.9.6/runtime/install.log ) :

psql : database amavisd does not exist
psql: database iredapd does not exist

I have created those databases and granted the  login to the corresponding users but got that message saying "Programming error: Relation 'users' does not exist" (in /var/log/iredapd/iredapd.log )

20

Re: Mail exchange did not work

mohamedmaalej.sde wrote:

psql : database amavisd does not exist
psql: database iredapd does not exist

For amavisd, you can import its SQL template file: iRedMail-0.9.6/samples/amavisd/amavisd.pgsql.
For iRedAPD, please import its SQL tempate files:

- /opt/iredapd/SQL/iredapd.pgsql
- /opt/iredapd/SQL/greylisting_whitelist_domains.sql

mohamedmaalej.sde wrote:

I have created those databases and granted the  login to the corresponding users but got that message saying "Programming error: Relation 'users' does not exist" (in /var/log/iredapd/iredapd.log )

"users" table should be created after you imported sql temlate mentioned above.

21

Re: Mail exchange did not work

Thank you very much. Finally, after executing those SQL files, it was still not working. I tried to start amavisd service. Finally, it worked. I have successfully exchanged e-mails using Thunderbird between two users.

Again, thank you very much for your help and support.