Postifix errors

Discussion in 'Server Operation' started by Hans, Feb 27, 2007.

  1. Hans

    Hans Moderator Moderator

    Since today i have the following error in my /var/log/mail.warn file:

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

    I gave the command postmap /etc/postfix/virtusertable to and restarted postfix to solve the problem, but this but it does not help.

    What steps can i take to solve this problem and more important, how is it possible that this suddenly occur?

    ***edit***

    Now I've tried these commands:

    updatedb
    locate hosts
    postmap /etc/postfix/virtusertable
    /etc/init.d/postfix restart

    And i verify the results...

    ***edit***

    It's working.
    The commands:

    updatedb
    locate hosts

    did the trick. :)

    I'm still wondering how this could happen?
    Can anyone tell me more, why errors like descibed above suddenly can appear?
     
    Last edited: Feb 27, 2007
  2. falko

    falko Super Moderator Howtoforge Staff

    These commands do nothing but search for everything that contains the string "hosts" in the name. It does not fix anything.

    If your Postfix is running chrooted, there might be a second virtusertable file (ususally /var/spool/postfix/etc/postfix/virtusertable), and maybe Postfix is complaining about that one?
     
  3. Hans

    Hans Moderator Moderator

    The output of "locate virtusertable" is:

    /etc/postfix/virtusertable
    /etc/postfix/virtusertable.db
    /root/ispconfig/isp/conf/virtusertable.master

    The server has been completely setup according the setup here: http://www.howtoforge.com/perfect_setup_debian_sarge


    I still do not have errors anymore, but i was interested in the cause.
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Looks ok.

    Maybe someone (or a script) restarted Postfix after /etc/postfix/virtusertable was modified, but before the postmap command was run?
     
  5. Hans

    Hans Moderator Moderator

    Thanks for your reply Falko,
    I'll check that.
     

Share This Page