-
Notifications
You must be signed in to change notification settings - Fork 12
/
PIC.local2virt
44 lines (35 loc) · 1.67 KB
/
PIC.local2virt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Original message:
Hi.
qmail-inject Fill in the complete envelope and header:
| (envelope) from [email protected] to [email protected]
| From: [email protected]
| To: [email protected]
|
| Hi.
V
qmail-queue Store message safely on disk.
Trigger qmail-send.
|
V
qmail-send Look at envelope recipient, [email protected].
| Is tommy.gov in locals? No.
| Is [email protected] in virtualdomains? No.
| Is tommy.gov in virtualdomains? Yes: "tommy.gov:fred".
| Deliver locally to [email protected].
V
qmail-lspawn ./Mailbox
| Look at mailbox name, fred-dude.
| Is fred-dude listed in qmail-users? No.
| Is there a fred-dude account? No.
| Is there a fred account? Yes.
| Is fred's uid nonzero? Yes.
| Is ~fred visible to the qmailp user? Yes.
| Is ~fred owned by fred? Yes.
| Give control of the message to fred.
| Run qmail-local.
V
qmail-local fred ~fred fred-dude - dude tommy.gov [email protected] ./Mailbox
Does ~fred/.qmail-dude exist? No.
Does ~fred/.qmail-default exist? Yes: "./Mail.tommy".
Write message to ./Mail.tommy in mbox format.