www/content/blog/miscellaneous/qmail.md

21 lines
597 B
Markdown
Raw Normal View History

2020-04-28 17:29:52 +02:00
---
title: "Qmail"
date: 2018-03-05
2021-03-12 18:12:41 +01:00
description: Some qmail commands
tags:
- toolbox
2020-04-28 17:29:52 +02:00
---
## Commands
- Get statistics : `qmail-qstat`
- list queued mails : `qmail-qread`
- Read an email in the queue (NNNN is the #id from qmail-qread) : `find /var/qmail/queue -name NNNN| xargs cat | less`
- Change queue lifetime for qmail in seconds (example here for 15 days) : `echo 1296000 > /var/qmail/control/queuelifetime`
## References
- http://www.lifewithqmail.org/lwq.html
- http://www.fileformat.info/tip/linux/qmailnow.htm
- https://www.hivelocity.net/kb/how-to-change-queue-lifetime-for-qmail/