increase retries for Postfix
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Max Erenberg 2022-01-07 23:06:58 -05:00
parent 71e6b474a4
commit 7d3e03e7fd
2 changed files with 3 additions and 3 deletions

View File

@ -93,7 +93,7 @@ class AddMemberTransaction(AbstractTransaction):
# sometimes Postfix says 'User unknown in local recipient table' if we try
# to send an email to a user right after they were created
max_tries = 3
max_tries = 30
for i in range(max_tries):
try:
self.mail_srv.send_welcome_message_to(user, password)
@ -102,7 +102,7 @@ class AddMemberTransaction(AbstractTransaction):
except smtplib.SMTPRecipientsRefused:
if i < max_tries - 1:
logger.warning('SMTP recipient refused, sleeping and trying again')
time.sleep(3)
time.sleep(5)
continue
else:
yield 'failed_to_send_welcome_message: recipient refused too many times'

View File

@ -1,3 +1,3 @@
GUNICORN_ARGS="-w 2 -b 0.0.0.0:9987 --access-logfile - --certfile /etc/ssl/private/csclub-wildcard-chain.crt --keyfile /etc/ssl/private/csclub-wildcard.key"
GUNICORN_ARGS="-w 2 -t 600 -b 0.0.0.0:9987 --access-logfile - --certfile /etc/ssl/private/csclub-wildcard-chain.crt --keyfile /etc/ssl/private/csclub-wildcard.key"
LE_WORKING_DIR="/root/.acme.sh"
HOME=/root