Nov 11

Every time I come to recreate the Postfix database file when I edit the file /etc/postfix/virtual.cf I forget what command I need to recreate virtual.cf.db

Hopefully I’ll check my blog next time. The command is postmap. Hope this is useful for someone else too!

postmap /etc/postfix/virtual.cf
/etc/init.d/postfix restart

You might also like

If you like this post then please subscribe to my full RSS feed. You can also click here to subscribe by email. There are also my fabulous photos and funny videos to explore too!

5 Responses to “How to create Postfix database files”

  1. Joe Jacobs says:

    Funnily enough I do the same thing quite often as well. Guess I’ll just have to remember to check your blog next time!

  2. Steve says:

    It gets me every time too. I sit there thinking that I know I have to rebuild the hash files but I can never remember the command – probably because of its name, which although technically correct in that its to do with postfix map files, isn’t that obvious.

    • Donncha says:

      Me too. I stared at the command prompt thinking it was “hash” something or other. It’s actually not that easy to find an answer either. I had to check more than a page or two to find postmap.

      Not anymore eh? :)

  3. Mihai Secasiu says:

    Editing the files and running postmap is fun :) but webmin/virtualmin is faster and you don’t have to remember to postmap :)

  4. Geoff Kendal says:

    I always forget this too… My solution was to just put a comment at the top of my virtual.cf file:

    # postmap /etc/postfix/virtual.cf && /etc/init.d/postfix restart

    So when I’ve finished editing, copy that line, save the file, paste onto the prompt… You don’t even have to look at your blog, it just there waiting for you!! :)

Leave a Reply

preload preload preload

Holy Shmoly! is Digg proof thanks to caching by WP Super Cache