Control Web Panel

WebPanel => E-Mail => Topic started by: Demontara on May 15, 2020, 08:35:23 PM

Title: Maillog get error /etc/postfix/vmail_ssl.map
Post by: Demontara on May 15, 2020, 08:35:23 PM
Hi,

I see this error in the mail log file /var/log/maillog

warning: database /etc/postfix/vmail_ssl.map.db is older than source file /etc/postfix/vmail_ssl.map


How can i fix this error ?

Regards,
Title: Re: Maillog get error /etc/postfix/vmail_ssl.map
Post by: rcschaff on May 15, 2020, 09:28:40 PM
postmap /etc/postfix/vmail_ssl

systemctl restart postfix
Title: Re: Maillog get error /etc/postfix/vmail_ssl.map
Post by: Demontara on May 15, 2020, 10:26:24 PM
Thank you,
But this command fix : postmap /etc/postfix/vmail_ssl.map

postmap /etc/postfix/vmail_ssl

systemctl restart postfix
Title: Re: Maillog get error /etc/postfix/vmail_ssl.map
Post by: rcschaff on May 15, 2020, 10:36:53 PM
Yeah Sorry.  Doing 200 things at once.  Only type quick responses and often  missing things.  Glad you got it working. :)
Title: Re: Maillog get error /etc/postfix/vmail_ssl.map
Post by: idovecer on July 11, 2021, 10:53:58 AM
I have the similar problem, but generating database isn't possible with this command
postmap /etc/postfix/vmail_ssl.map

because I'm getting this:
postmap: warning: /etc/postfix/vmail_ssl.map.db: duplicate entry: "webmail.somedomain.com"
postmap: warning: /etc/postfix/vmail_ssl.map.db: duplicate entry: "mail.somedomain.com"
postmap: warning: /etc/postfix/vmail_ssl.map.db: duplicate entry: "webmail.somedomain2.com"
postmap: warning: /etc/postfix/vmail_ssl.map.db: duplicate entry: "mail.somedomain2.com"
etc...

And it is right, this file vmail_ssl.map has really double entries, but why?
It is generated at night, so I guess there is some bug that is generating double lines.

Is this a bug?
Title: Re: Maillog get error /etc/postfix/vmail_ssl.map
Post by: idovecer on July 13, 2021, 06:57:35 AM
Solution (or maybe temporary patch):

https://forum.centos-webpanel.com/index.php?topic=10991.msg37926#msg37926