diff --git a/app/config.py b/app/config.py index d095380b..4014ec8f 100644 --- a/app/config.py +++ b/app/config.py @@ -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") diff --git a/app/greylisting.py b/app/greylisting.py index ecd34822..ef38f5c7 100644 --- a/app/greylisting.py +++ b/app/greylisting.py @@ -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, diff --git a/email_handler.py b/email_handler.py index e3e3b199..49f773c5 100644 --- a/email_handler.py +++ b/email_handler.py @@ -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