hello,
postfix is giving this warning : warning: database /etc/postfix/vmail_ssl.map.db is older than source file /etc/postfix/vmail_ssl.map
i tried to run the below suggested commands from cwp forum thread : http://forum.centos-webpanel.com/postfix/i-can-send-email-but-i-can%27t-receive/
$ postmap -F hash:/etc/postfix/vmail_ssl.map
$ service postfix reload
but no luck , the warning is still appearing .
can someone suggest me a workaround for this ?
Regards,
Zeeshan Javed
the service postfix reload had no effect so i tried service postfix stop and service postfix start. and now the warning has changed to as below:
what should be the correct ower for the below two files? i tried changing it to root and the postfix service crashed and failed to restart ????
: warning: not owned by root: /etc/postfix/./vacation.php
: warning: not owned by root: /etc/postfix/./mysql-virtual_vacation.cf
[root@server run]# ll /etc/postfix/.
total 296
-rw-r--r-- 1 root root 21535 Sep 25 2019 access
-rw-r--r-- 1 root root 13194 Sep 25 2019 canonical
-rw-r--r-- 1 root root 10221 Sep 25 2019 generic
-rw-r--r-- 1 root root 23802 Sep 25 2019 header_checks
-rw-r--r-- 1 root root 3521 May 22 21:29 main.cf
-rw-r--r-- 1 root root 3420 May 22 08:44 main.cf_backup
-rw-r--r-- 1 root root 4738 May 22 08:44 master.cf
-rw-r--r-- 1 root root 4628 May 22 08:44 master.cf_backup
-rw-r--r-- 1 root root 317 Mar 27 2017 mynetworks
-rw-r----- 1 root mail 144 May 22 08:44 mysql-relay_domains_maps.cf
-rw-r----- 1 root mail 242 May 22 08:44 mysql-virtual_alias_default_maps.cf
-rw-r----- 1 root mail 159 May 22 08:44 mysql-virtual_alias_maps.cf
-rw-r----- 1 root mail 150 May 22 08:44 mysql-virtual_alias_pipe_maps.cf
-rw-r----- 1 root mail 161 May 22 08:44 mysql-virtual_domains_maps.cf
-rw-r----- 1 root mail 144 May 22 08:44 mysql-virtual_mailbox_limit_maps.cf
-rw-r----- 1 root mail 146 May 22 08:44 mysql-virtual_mailbox_maps.cf
-rw-r----- 1 vacation mail 217 May 22 08:44 mysql-virtual_vacation.cf
-rw-r--r-- 1 root root 0 Mar 19 19:22 postfix-files
-rw-r--r-- 1 root root 6929 Sep 25 2019 relocated
-rw-r--r-- 1 root root 153 Mar 27 2017 sender_blacklist
-rw-r--r-- 1 root root 12288 Mar 21 15:29 sender_blacklist.db
-rw-r--r-- 1 root root 137 Mar 27 2017 sender_whitelist
-rw-r--r-- 1 root root 12288 Mar 21 15:29 sender_whitelist.db
-rw-r--r-- 1 root root 50 May 22 08:44 transport
-rw-r--r-- 1 root root 12288 May 22 08:44 transport.db
-rw-r--r-- 1 root root 4714 Apr 26 16:27 vacation_class.php
-rw-r--r-- 1 root root 135 Mar 27 2017 vacation.conf
-rwxr-xr-x 1 vacation root 2599 Mar 10 01:47 vacation.php
-rw-r--r-- 1 root root 24211 Mar 27 2017 vacation.pl
-rw-r--r-- 1 root root 2394 Apr 26 16:27 vacation.zip
-rw-r--r-- 1 root root 13963 Sep 25 2019 virtual
-rw-r--r-- 1 root root 12288 May 22 23:17 virtual.db
-rw-r--r-- 1 root root 0 Mar 19 19:21 virtual_regexp
-rw-r--r-- 1 root root 488 May 22 22:05 vmail_ssl.map
-rw-r--r-- 1 root root 45056 May 26 10:11 vmail_ssl.map.db
chown root:mail both of those files
on my other server which is also running cwp pro these files have same owner i.e.
-rw-r-----. 1 vacation mail 211 May 22 11:22 mysql-virtual_vacation.cf
-rwxr-xr-x. 1 vacation root 2599 Mar 10 01:47 vacation.php
and there is no error on that server.
the above mentioned warnings were gone after postfix service stop start multiple times . this is strange as there seems to be some mishandling of user permissions by cwp.
who is misleading permission, from our side it is fine
then why the same issue keep on appearing for multiple files and services and go away just by restarting the service ? same thing is happening with PID files which exists with a valid PID but it says cant find or open file. again it disappear after service restart
rebuild mail server will fix any issue with it. Pid which you didn't need to give attention
ok thanks, i will give it a try to rebuild mail server...