-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsmtpauth.5.in
64 lines (64 loc) · 1.31 KB
/
smtpauth.5.in
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
.\"
.\" %A%
.\"
.Dd Mar 31, 2004
.Dt SMTPAUTH 5
.Os MASTODON
.Sh NAME
.Nm smtpauth
.Nd greylist file for
.Sy postoffice
.Sh SYNOPSIS
.Sy /var/db/smtpauth.db
.Sh DESCRIPTION
This file records client access to the
.Sy postoffice
SMTP server.
It contains records that either have the
address given in the SMTP
.Ql MAIL FROM:
command, or the
.Sy username
from the SMTP
.Ql MAIL FROM:
and the
.Sy IP address
that the mail connected from.
In both cases, this address is followed by
two dates (in UNIX
.Sy time_t
format) which are, in order, the
time when
.Nm postoffice
will accept mail from this user, and
the time
when the last connection was made.
.Pp
This file is a
.Xr @NDBM@ 3
database and is not human readable; the
.Xr authexpire 8
program is used to maintain it and remove old records.
.Pp
The record format used in this database is:
.Bl -tag -width USER@[IP] -compact
.It ADDRESS
Either the SMTP
.Ql MAIL FROM:
address or the username from that address, followed
by the IP address of the connecting machine (quoted
with
.Ql [] )
.It DATE DATE
When the client can connect and when the client last connected (both
in seconds after the epoch). If the client is forbidden (via the
.Fl d
flag in
.Xr authexpire 8 ),
the first DATE will be the magic token
.Sy * .
.El
.Sh SEE ALSO
.Xr @NDBM@ 1 ,
.Xr authexpire 8 ,
.Xr postoffice 8