aboutsummaryrefslogtreecommitdiff
path: root/content/blog/miscellaneous/qmail.md
blob: 37dcd484d1ac9e05956923ad260742acf936a202 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
title: "Qmail"
date: 2018-03-05
description: Some qmail commands
tags:
  - toolbox
---

## 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/