increase greylisting threshold
This commit is contained in:
parent
70b51b5002
commit
e8cee6de80
|
@ -267,10 +267,10 @@ UPLOAD_DIR = None
|
|||
|
||||
# Greylisting features
|
||||
# nb max of activity (forward/reply) an alias can have during 1 min
|
||||
MAX_ACTIVITY_DURING_MINUTE_PER_ALIAS = 5
|
||||
MAX_ACTIVITY_DURING_MINUTE_PER_ALIAS = 10
|
||||
|
||||
# nb max of activity (forward/reply) a mailbox can have during 1 min
|
||||
MAX_ACTIVITY_DURING_MINUTE_PER_MAILBOX = 10
|
||||
MAX_ACTIVITY_DURING_MINUTE_PER_MAILBOX = 15
|
||||
|
||||
if LOCAL_FILE_UPLOAD:
|
||||
print("Upload files to local dir")
|
||||
|
|
|
@ -27,7 +27,7 @@ def greylisting_needed_for_alias(alias: Alias) -> bool:
|
|||
)
|
||||
|
||||
if nb_activity > MAX_ACTIVITY_DURING_MINUTE_PER_ALIAS:
|
||||
LOG.d(
|
||||
LOG.w(
|
||||
"Too much forward on alias %s. Nb Activity %s",
|
||||
alias,
|
||||
nb_activity,
|
||||
|
@ -54,7 +54,7 @@ def greylisting_needed_for_mailbox(alias: Alias) -> bool:
|
|||
)
|
||||
|
||||
if nb_activity > MAX_ACTIVITY_DURING_MINUTE_PER_MAILBOX:
|
||||
LOG.d(
|
||||
LOG.w(
|
||||
"Too much forward on mailbox %s, alias %s. Nb Activity %s",
|
||||
alias.mailbox,
|
||||
alias,
|
||||
|
|
|
@ -902,7 +902,7 @@ def handle_reply(envelope, msg: Message, rcpt_to: str) -> (bool, str):
|
|||
msg, contact.pgp_finger_print, contact.pgp_public_key
|
||||
)
|
||||
except PGPException:
|
||||
LOG.exception(
|
||||
LOG.e(
|
||||
"Cannot encrypt message %s -> %s. %s %s", alias, contact, mailbox, user
|
||||
)
|
||||
# to not save the email_log
|
||||
|
|
Loading…
Reference in New Issue