1

Topic: Mail logging stopped after upgrade to Easy 2020043001

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 2020043001
- Deployed with iRedMail Easy or the downloadable installer? Easy
- Linux/BSD distribution name and version: Debain 9
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
I noticed today that mail logging has been disabled since the last upgrade

Deployment history:
2020043001    00:04:01    2020-05-08 07:00:50

ls -ltr /var/log
...
-rw-r----- 1 root   root           0 May 10 06:25 mail.log  

Nothing in that file, checked the one before..

tail /var/log/mail.log.1
...
May  8 08:58:48 mail postfix/dnsblog[14763]: addr 167.99.xxx.255 listed by domain zen.spamhaus.org as 127.0.0.3                                                                                                                   May  8 08:58:48 mail postfix/dnsblog[14762]: addr 167.99.xxx.255 listed by domain b.barracudacentral.org as 127.0.0.2                                                                                                             May  8 08:58:54 mail postfix/postscreen[14761]: DNSBL rank 5 for [167.99.xx8.255]:35468                                                                                                                                           May  8 08:58:54 mail postfix/postscreen[14761]: DISCONNECT [167.99.xxx.255]:35468 

Last log from May 8th 9 AM

I restarted the Postfix and Dovecot services, but still no logs. How should I turn them back on?

Also, /var/log/dovecot/<files> are empty.

...
-rw-r----- 1 root root      0 May  8 09:02 managesieve.log                                                                                                                                                                        -rw-r----- 1 root root      0 May  9 06:25 pop3.log                                                                                                                                                                               -rw-r----- 1 root root      0 May  9 06:25 lda.log                                                                                                                                                                                -rw-r----- 1 root root      0 May  9 06:25 imap.log                                                                                                                                                                               -rw-r----- 1 root root      0 May  9 06:25 dovecot.log 

But the last log is from:

tail /var/log/dovecot/dovecot.log.1
...
May  8 06:45:37 mail dovecot: imap-hibernate(xxx): Connection closed in=13 out=37                                                                                                                                     May  8 06:45:37 mail dovecot: imap-hibernate(xxx): Connection closed in=13 out=37  

Also May 8th

2

Re: Mail logging stopped after upgrade to Easy 2020043001

Please show me output of command below:

ls -l /dev/log

It's possible that systemd creates /dev/log with its own log socket, which causes no log in files under /var/log/.

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

3

Re: Mail logging stopped after upgrade to Easy 2020043001

One line from output:

lrwxrwxrwx 1 root root 28 Jun 25 18:44 /dev/log -> /run/systemd/journal/dev-log

4

Re: Mail logging stopped after upgrade to Easy 2020043001

You should see file "/run/systemd/journal/syslog", simply link it to /dev/log will fix this issue:

ln -sf /run/systemd/journal/syslog /dev/log

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

5

Re: Mail logging stopped after upgrade to Easy 2020043001

Yes this works. Now logs have started logging again.
Thank you.