I regularly have to check my qpsmtpd and qmail logs, but as the server is so busy it rotates the logs at 4.8mb, and only keeps a weeks history, I would like to keep 30 days worth of logs, how would i do it?
You need to create custom template fragments for the logrotate configuration files for the affected services and add the desired settings in there.
db configuration setprop qmail KeepLog 50sv t /service/qmaildb configuration setprop qpsmtpd KeepLog 50sv t /service/qpsmtpddb configuration setprop sqpsmtpd KeepLog 50sv t /service/sqpsmtpd
Just want to know if we could have emailed the logs also. I want to keep all the record logs for qpsmtpd but I want the logs save externally I have less space on this server.