]> git.proxmox.com Git - pmg-log-tracker.git/blame - README
bump version to 2.5.0
[pmg-log-tracker.git] / README
CommitLineData
457d8335
ML
1The pmg-log-tracker extracts information out of the syslog to match all entries
2related to a single mail. It does so by using the PID of 'smtpd' entries in the
3log as key for the SEntry structs. The QID, an ID consisting of at least 2 all
4upper case hex digits, is used for both QEntry structs and FEntry structs.
5
6As a rule of thumb, SEntrys are used wherever the services 'postscreen' and
7'smtpd' are involved. QEntrys on the other hand are only used when a queue is
8involved (e.g. after-queue filtering passing the postscreen checks,
9before-queue filtering when the mail is 'accepted'). FEntrys are used whenever
10the filter (pmg-smtp-filter) is involved.
11
12The typical flow of a mail (after-queue):
13
141. postscreen (NOQUEUE -> mail finished)
152. smtpd (pid matching)
163. cleanup -> qmgr (mail in queue, QID matching)
174. pmg-smtp-filter (rule system, accept/block, long (Q)ID matching)
185. lmtp/smtp/local/error (QID matching, filter ID matching in lmtp)
196. qmgr ('removed')
207. smtpd ('disconnected from')
21
22Both 6 and 7 are required before the mail can be printed completely.
f41b809a
ML
236 and 7 can be logged in arbitrary order.
24
25The typical flow of a mail (before-queue):
26
271. postscreen (NOQUEUE -> mail finished)
282. smtpd 1 (pid matching)
293. pmg-smtp-filter (rule system, accept/block, long (Q)ID matching)
30 - on accept match the QID
314. smtpd 2 (pid matching)
325. (optional, only on 'accept') cleanup -> qmgr (mail in queue, QID matching)
336. (optional, only on 'accept') smtp (QID matching)
347. (optional, only on 'accept') qmgr ('removed')
358. smtpd 2 ('disconnect from')
369. smtpd 1 (proxy-accept/proxy-reject, filter (Q)ID matching)
3710. smtpd 1 ('disconnect from')
38
397, 8 and 10 are required before the mail can be printed completely.
407, 8 and 10 can be logged in arbitrary order.