Page 1 of 1

Cannot send or receive emails

Posted: Wed Feb 06, 2019 1:13 pm
by jpcuk

I Installed the community, mail and document servers onto a VM running docker using

I had some permission issues with the mysql server (container kept restarting) that got resolved by changing the permissions on /app/onlyoffice/mysql/* to named:docker.

However, I am now running into issues getting mail flow working.

If I try to send an email from an activated account, I get the following bounce-back:

Reason: "AuthenticationInvalidCredentials: Incorrect authentication data"

Likewise, emails never get received but the following permission issues are present in the mail server logs (real domain name replaced with "domain"):

Feb 6 12:05:49 domain postfix/pipe[32266]: D03F12E00CF: to=<>, relay=dovecot, delay=13441, delays=13436/0.02/0/4.6, dsn=4.3.0, status=deferred (temporary failure. Command output: Can't open log file /var/log/dovecot-sieve.log: Permission denied )

Feb 06 10:35:50 lmtp: Fatal: master: service(lmtp): child 30010 returned error 80 (Can't open log file)

Permissions on all of the dovecot log files are as default - vmail:vmail (or 2000:2000 as it appears from the docker host).

I have tried different user and group owners for the dovecot log files and restarting the postfix & dovecot processes and also restarting the mail server container but nothing so far has helped.

Any suggestions?



Re: Cannot send or receive emails

Posted: Fri Feb 08, 2019 5:31 am
by jpcuk

Just an update on this issue - I removed and re-installed via docker and set a full hostname + domain name rather than just domain for the mail server and that resolved the sending email issue.

The receiving of emails still remains an issue - I can see them come in via postfix in the maillog but then the same permissions issue with dovecot-sieve.log gets logged and the mail is never delivered.

I am not convinced it's actually file permissions on the dovecot-sieve.log and dovecot-lmtp.log files as setting them to 777 doesn't fix anything or any combination of UID & GID that I've applied to those files so far.



Re: Cannot send or receive emails

Posted: Mon Feb 11, 2019 7:51 am
by Maxim
Hello jpcuk!
Did you install using script?

Re: Cannot send or receive emails

Posted: Mon Feb 11, 2019 11:38 am
by jpcuk
Hi Maxim,

Yes, I used the install script (it ran through successfully) but there were the permissions issues with the mysql container data directories initially that needed correcting as described before restarting the other containers and getting everything to run.