1

Topic: /var/log/maillog disappeared

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


Hello. I deleted maillog file and my server dont create new, i tried restart postfix. Please help.

----

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

2

Re: /var/log/maillog disappeared

Restart syslog service please.

3

Re: /var/log/maillog disappeared

still this same.

root@ns352115:/var/log # /etc/rc.d/syslogd restart
Stopping syslogd.
Waiting for PIDS: 56401.
Starting syslogd.
root@ns352115:/var/log # ls -l mail*
ls: No match.

4

Re: /var/log/maillog disappeared

Restart both syslog and postfix services.

5

Re: /var/log/maillog disappeared

This same:

# /usr/local/etc/rc.d/postfix restart
postfix: Postfix is running with backwards-compatible default settings
postfix: See http://www.postfix.org/COMPATIBILITY_README.html for details
postfix: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload"
postfix/postfix-script: stopping the Postfix mail system
postfix: Postfix is running with backwards-compatible default settings
postfix: See http://www.postfix.org/COMPATIBILITY_README.html for details
postfix: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload"
postfix/postfix-script: starting the Postfix mail system
root@ns352115:~ # /etc/rc.d/syslogd restart
Stopping syslogd.
Waiting for PIDS: 56840.
Starting syslogd.
root@ns352115:~ # ls /var/log/mail*
ls: No match.

6

Re: /var/log/maillog disappeared

Weird, restarting syslog service should create /var/log/maillog as defined in syslog config file.

OK, as a temporary solution, please create it manually, owner should be root:wheel, permission 0640.

7

Re: /var/log/maillog disappeared

thanks. now loging is working.

but in log i have error:

Apr 22 17:49:21 ns352115 postfix[76631]: Postfix is running with backwards-compatible default settings
Apr 22 17:49:21 ns352115 postfix[76631]: See http://www.postfix.org/COMPATIBILITY_README.html for details
Apr 22 17:49:21 ns352115 postfix[76631]: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload"
Apr 22 17:49:21 ns352115 postfix/postfix-script[76637]: stopping the Postfix mail system
Apr 22 17:49:21 ns352115 postfix/master[76575]: terminating on signal 15
Apr 22 17:49:21 ns352115 postfix[76649]: Postfix is running with backwards-compatible default settings
Apr 22 17:49:21 ns352115 postfix[76649]: See http://www.postfix.org/COMPATIBILITY_README.html for details
Apr 22 17:49:21 ns352115 postfix[76649]: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload"
Apr 22 17:49:21 ns352115 postfix/postfix-script[76720]: starting the Postfix mail system
Apr 22 17:49:21 ns352115 postfix/master[76722]: /usr/local/etc/postfix/master.cf: line 144: using backwards-compatible default setting chroot=y
Apr 22 17:49:21 ns352115 postfix/master[76722]: /usr/local/etc/postfix/master.cf: line 150: using backwards-compatible default setting chroot=y
Apr 22 17:49:21 ns352115 postfix/master[76722]: daemon started -- version 3.1.0, configuration /usr/local/etc/postfix

8

Re: /var/log/maillog disappeared

This is not an error. To fix it, please run command below:

postconf -e compatibility_level=2
service postfix reload

9

Re: /var/log/maillog disappeared

Thanks