Archives for Linux - Page 5
Dovecot: (keywords_update_records): assertion failed: (data_offset >= sizeof(struct mail_index_record))
This means your index is corrupted, we need to rebuild it find /user/emailfolder -name ‘dovecot*’ -type f -delete”
Apache: AuthType configured with no corresponding authorization directives
This happens when we upgrade my Apache to , it turns out that we haven’t got removed the old authentication configuration completely, we just remove the require valid...
Secure Web/Mail/Database with certificate
Web/Mail/Database can use the same certificate to allow its client to connect to the server. Postfix: Dovecot (POP3/IMAP server) SSL certificate settings are defined in Dovecot main config...
Ubuntu: cp copy overwrite without prompting
when you run: cp -rf /source/* /destination , it always ask you to confirm the overwrite action. Root cause: it’s probably the cp has been alias as cp -i...
Python: Realtime web print out
There are some situation when we run a time-consuming process, we need to see the output of that command to see its progress. Normally, we would have to wait...
Can’t Use apt i.e. /boot is 100% full
NOTE: this is only if you can’t use apt to clean up due to a 100% full /boot 1. Get the list of kernel images Get the list of...
Dovecot – Iredmail SSL installation
First of all, we need to order a certificate , this certificate is the same with normal web server certificate. The certificate will have 3 files: cert, key, cabundle....
Kill all close wait process
We have seen many cases where the client didn’t close the connection correctly, the process is stuck at CLOSE_WAIT status, i never clear the database connection. We have this...
Auto Restart apache when connection is high
In some situations, our web server receive too many connections. The number is much higher than normal, that could be an issue with our code, or we are being...
Nagios: Add new plugin
Nagios config file is in Nagios plugin script is in