-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
constants.go
25 lines (18 loc) · 898 Bytes
/
constants.go
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
package dovecot
import "github.com/vodolaz095/msmtpd"
// RecipientOverrideFact is name of fact to store username being used for dovecot
const RecipientOverrideFact = "DovecotRecipientOverrideFact"
// DefaultAuthUserSocketPath is path to dovecot socket being used for authorization
const DefaultAuthUserSocketPath = "/var/run/dovecot/auth-userdb"
// DefaultClientSocketPath is path to dovecot socket being used for checking if recipient exists
const DefaultClientSocketPath = "/var/run/dovecot/auth-client"
// DefaultLMTPSocketPath is path to dovecot socket which accepts email via LMTP protocol
const DefaultLMTPSocketPath = "/var/run/dovecot/lmtp"
var temporaryError = msmtpd.ErrorSMTP{
Code: 451,
Message: "temporary errors, please, try again later",
}
var permanentError = msmtpd.ErrorSMTP{
Code: 521,
Message: "i have no idea about recipient you want to deliver message to",
}