62 |
/* Command not permitted when TLS active. */ |
/* Command not permitted when TLS active. */ |
63 |
#define TLS_ACTIVE "Command not permitted when TLS active" |
#define TLS_ACTIVE "Command not permitted when TLS active" |
64 |
|
|
65 |
|
/* Trying to log in within the minimum login delay interval */ |
66 |
|
#define LOGIN_DELAY "Attempt to log in within the minimum login delay interval" |
67 |
|
|
68 |
/* APOP password file, without .db or .passwd, which are added based on file |
/* APOP password file, without .db or .passwd, which are added based on file |
69 |
type automatically */ |
type automatically */ |
70 |
#define APOP_PASSFILE_NAME "apop" |
#define APOP_PASSFILE_NAME "apop" |
71 |
|
|
72 |
#ifdef USE_DBM |
#ifdef USE_DBM |
73 |
# define APOP_PASSFILE SYSCONFDIR "/" APOP_PASSFILE_NAME |
# define APOP_PASSFILE SYSCONFDIR "/" APOP_PASSFILE_NAME |
74 |
|
# define ENABLE_LOGIN_DELAY |
75 |
#else |
#else |
76 |
# define APOP_PASSFILE SYSCONFDIR "/" APOP_PASSFILE_NAME ".passwd" |
# define APOP_PASSFILE SYSCONFDIR "/" APOP_PASSFILE_NAME ".passwd" |
77 |
|
# undef ENABLE_LOGIN_DELAY |
78 |
|
#endif |
79 |
|
|
80 |
|
#ifdef ENABLE_LOGIN_DELAY |
81 |
|
# define LOGIN_STAT_FILE "/var/run/pop3-login" |
82 |
|
extern time_t login_delay; |
83 |
|
extern char *login_stat_file; |
84 |
|
extern int check_login_delay __P((char *username)); |
85 |
|
extern void update_login_delay __P((char *username)); |
86 |
|
#else |
87 |
|
# define check_login_delay(u) 0 |
88 |
|
# define update_login_delay(u) |
89 |
#endif |
#endif |
90 |
|
|
91 |
/* Size of the MD5 digest for APOP */ |
/* Size of the MD5 digest for APOP */ |
189 |
#define ERR_MBOX_SYNC 16 |
#define ERR_MBOX_SYNC 16 |
190 |
#define ERR_TLS_ACTIVE 17 |
#define ERR_TLS_ACTIVE 17 |
191 |
#define ERR_TLS_IO 18 |
#define ERR_TLS_IO 18 |
192 |
|
#define ERR_LOGIN_DELAY 19 |
193 |
|
|
194 |
extern mailbox_t mbox; |
extern mailbox_t mbox; |
195 |
extern int state; |
extern int state; |