increase retries for Postfix
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
71e6b474a4
commit
7d3e03e7fd
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue