QmailtoasterMain Page | About | Help | FAQ | Special pages | Log in

Printable version | Disclaimers | Privacy policy

Rebuilding cdb files

From Qmailtoaster

Rebuilding cdb files

I cannot seem to remember the commands to rebuild the cdbs, so I bashed one up to do it for me, automagically...put it in /etc/cron.hourly...this way all your cdbs are never more than an hour old.

#!/bin/bash
#rebuilds simcontrol.cdb
/var/qmail/bin/simscanmk
sleep 2
#rebuilds simversions.cdb
/var/qmail/bin/simscanmk -g
sleep 2
#rebuilds badloadertypes--rare-ok to comment out
/var/qmail/bin/qmail-badloadertypes
sleep 2
#rebuilds badmimetypes--rare-ok to comment out
/var/qmail/bin/qmail-badmimetypes
sleep 2
#rebuilds tcp.smtp and reloads new configs
qmailctl cdb
#eof

WORKSFORME. (don't forget to chmod +x the file you save that as, like I did)


Note, as of QmailToaster v1.3,

# qmailctl cdb

does it all, so there's no more need for this.

User Tips & Tricks

Retrieved from "http://wiki.qmailtoaster.com/index.php/Rebuilding_cdb_files"

This page has been accessed 8,622 times. This page was last modified on 1 November 2006, at 14:49. Content is available under GNU Free Documentation License 1.2.


Find

Browse
Main page
Community portal
Current events
Recent changes
Random page
Help
Edit
View source
Editing help
This page
Discuss this page
New section
Printable version
Context
Page history
What links here
Related changes
My pages
Log in / create account
Special pages
New pages
File list
Statistics
More...