#StackBounty: #dovecot #lets-encrypt #certbot Certbot post-renewal/post-deploy hook in cron job

Bounty: 50

On a mail server I need to reload Dovecot after Certbot renews my Let’s Encrypt certificates. According to the Certbot documentation a --deploy-hook can be used:

Command to be run in a shell once for each issued certificate.

I found the cron job that was created automatically at /etc/cron.d/certbot, and with the help of of certbot and this question I figured I would use:

0 */12 * * * root test -x /usr/bin/certbot -a ! -d /run/systemd/system && perl -e 'sleep int(rand(43200))' && certbot -q renew --deploy-hook "service dovecot reload"

The problem is, Docecot does not appear to restart. Certificate renewal is still successful. My question: How to make sure Dovecot is reloaded after certificate renewal?

Addition information:
Server runs on Ubuntu 18.04.3 LTS with Certbot 0.31.0.


Get this bounty!!!

#StackBounty: #debian #email #postfix #dovecot FInding 'server log' referred to in this postfix error

Bounty: 50

This is a bit embarassing, but I’m stuck at the first step of debugging a postfix+dovecot setup on Debian after following this guide.

Sending email from my server works, but receiving doesn’t. I get this line in the /var/log/mail.log (with some redactions):

# /var/log/mail.log
Oct 18 19:17:03 X postfix/lmtp[387]: BB7321F440: to=<A@X.Y>, relay=X.Y[private/dovecot-lmtp], delay=1157, delays=1095/0.02/0.01/62, dsn=4.3.0, status=deferred (host X.Y[private/dovecot-lmtp] said: 451 4.3.0 <A@X.Y> Internal error occurred. Refer to server log for more information. (in reply to RCPT TO command))

For convenience and emphasis, the key part is:

Internal error occurred. Refer to server log for more information.

The exact same error message appears in /var/log/syslog but there is no additional information there.

Where can I find the "server log" this refers to, so I can continue debugging?


Get this bounty!!!

#StackBounty: #debian #email #postfix #dovecot FInding 'server log' referred to in this postfix error

Bounty: 50

This is a bit embarassing, but I’m stuck at the first step of debugging a postfix+dovecot setup on Debian after following this guide.

Sending email from my server works, but receiving doesn’t. I get this line in the /var/log/mail.log (with some redactions):

# /var/log/mail.log
Oct 18 19:17:03 X postfix/lmtp[387]: BB7321F440: to=<A@X.Y>, relay=X.Y[private/dovecot-lmtp], delay=1157, delays=1095/0.02/0.01/62, dsn=4.3.0, status=deferred (host X.Y[private/dovecot-lmtp] said: 451 4.3.0 <A@X.Y> Internal error occurred. Refer to server log for more information. (in reply to RCPT TO command))

For convenience and emphasis, the key part is:

Internal error occurred. Refer to server log for more information.

The exact same error message appears in /var/log/syslog but there is no additional information there.

Where can I find the "server log" this refers to, so I can continue debugging?


Get this bounty!!!

#StackBounty: #debian #email #postfix #dovecot FInding 'server log' referred to in this postfix error

Bounty: 50

This is a bit embarassing, but I’m stuck at the first step of debugging a postfix+dovecot setup on Debian after following this guide.

Sending email from my server works, but receiving doesn’t. I get this line in the /var/log/mail.log (with some redactions):

# /var/log/mail.log
Oct 18 19:17:03 X postfix/lmtp[387]: BB7321F440: to=<A@X.Y>, relay=X.Y[private/dovecot-lmtp], delay=1157, delays=1095/0.02/0.01/62, dsn=4.3.0, status=deferred (host X.Y[private/dovecot-lmtp] said: 451 4.3.0 <A@X.Y> Internal error occurred. Refer to server log for more information. (in reply to RCPT TO command))

For convenience and emphasis, the key part is:

Internal error occurred. Refer to server log for more information.

The exact same error message appears in /var/log/syslog but there is no additional information there.

Where can I find the "server log" this refers to, so I can continue debugging?


Get this bounty!!!

#StackBounty: #debian #email #postfix #dovecot FInding 'server log' referred to in this postfix error

Bounty: 50

This is a bit embarassing, but I’m stuck at the first step of debugging a postfix+dovecot setup on Debian after following this guide.

Sending email from my server works, but receiving doesn’t. I get this line in the /var/log/mail.log (with some redactions):

# /var/log/mail.log
Oct 18 19:17:03 X postfix/lmtp[387]: BB7321F440: to=<A@X.Y>, relay=X.Y[private/dovecot-lmtp], delay=1157, delays=1095/0.02/0.01/62, dsn=4.3.0, status=deferred (host X.Y[private/dovecot-lmtp] said: 451 4.3.0 <A@X.Y> Internal error occurred. Refer to server log for more information. (in reply to RCPT TO command))

For convenience and emphasis, the key part is:

Internal error occurred. Refer to server log for more information.

The exact same error message appears in /var/log/syslog but there is no additional information there.

Where can I find the "server log" this refers to, so I can continue debugging?


Get this bounty!!!

#StackBounty: #debian #email #postfix #dovecot FInding 'server log' referred to in this postfix error

Bounty: 50

This is a bit embarassing, but I’m stuck at the first step of debugging a postfix+dovecot setup on Debian after following this guide.

Sending email from my server works, but receiving doesn’t. I get this line in the /var/log/mail.log (with some redactions):

# /var/log/mail.log
Oct 18 19:17:03 X postfix/lmtp[387]: BB7321F440: to=<A@X.Y>, relay=X.Y[private/dovecot-lmtp], delay=1157, delays=1095/0.02/0.01/62, dsn=4.3.0, status=deferred (host X.Y[private/dovecot-lmtp] said: 451 4.3.0 <A@X.Y> Internal error occurred. Refer to server log for more information. (in reply to RCPT TO command))

For convenience and emphasis, the key part is:

Internal error occurred. Refer to server log for more information.

The exact same error message appears in /var/log/syslog but there is no additional information there.

Where can I find the "server log" this refers to, so I can continue debugging?


Get this bounty!!!

#StackBounty: #debian #email #postfix #dovecot FInding 'server log' referred to in this postfix error

Bounty: 50

This is a bit embarassing, but I’m stuck at the first step of debugging a postfix+dovecot setup on Debian after following this guide.

Sending email from my server works, but receiving doesn’t. I get this line in the /var/log/mail.log (with some redactions):

# /var/log/mail.log
Oct 18 19:17:03 X postfix/lmtp[387]: BB7321F440: to=<A@X.Y>, relay=X.Y[private/dovecot-lmtp], delay=1157, delays=1095/0.02/0.01/62, dsn=4.3.0, status=deferred (host X.Y[private/dovecot-lmtp] said: 451 4.3.0 <A@X.Y> Internal error occurred. Refer to server log for more information. (in reply to RCPT TO command))

For convenience and emphasis, the key part is:

Internal error occurred. Refer to server log for more information.

The exact same error message appears in /var/log/syslog but there is no additional information there.

Where can I find the "server log" this refers to, so I can continue debugging?


Get this bounty!!!

#StackBounty: #debian #email #postfix #dovecot FInding 'server log' referred to in this postfix error

Bounty: 50

This is a bit embarassing, but I’m stuck at the first step of debugging a postfix+dovecot setup on Debian after following this guide.

Sending email from my server works, but receiving doesn’t. I get this line in the /var/log/mail.log (with some redactions):

# /var/log/mail.log
Oct 18 19:17:03 X postfix/lmtp[387]: BB7321F440: to=<A@X.Y>, relay=X.Y[private/dovecot-lmtp], delay=1157, delays=1095/0.02/0.01/62, dsn=4.3.0, status=deferred (host X.Y[private/dovecot-lmtp] said: 451 4.3.0 <A@X.Y> Internal error occurred. Refer to server log for more information. (in reply to RCPT TO command))

For convenience and emphasis, the key part is:

Internal error occurred. Refer to server log for more information.

The exact same error message appears in /var/log/syslog but there is no additional information there.

Where can I find the "server log" this refers to, so I can continue debugging?


Get this bounty!!!

#StackBounty: #debian #email #postfix #dovecot FInding 'server log' referred to in this postfix error

Bounty: 50

This is a bit embarassing, but I’m stuck at the first step of debugging a postfix+dovecot setup on Debian after following this guide.

Sending email from my server works, but receiving doesn’t. I get this line in the /var/log/mail.log (with some redactions):

# /var/log/mail.log
Oct 18 19:17:03 X postfix/lmtp[387]: BB7321F440: to=<A@X.Y>, relay=X.Y[private/dovecot-lmtp], delay=1157, delays=1095/0.02/0.01/62, dsn=4.3.0, status=deferred (host X.Y[private/dovecot-lmtp] said: 451 4.3.0 <A@X.Y> Internal error occurred. Refer to server log for more information. (in reply to RCPT TO command))

For convenience and emphasis, the key part is:

Internal error occurred. Refer to server log for more information.

The exact same error message appears in /var/log/syslog but there is no additional information there.

Where can I find the "server log" this refers to, so I can continue debugging?


Get this bounty!!!

#StackBounty: #debian #email #postfix #dovecot FInding 'server log' referred to in this postfix error

Bounty: 50

This is a bit embarassing, but I’m stuck at the first step of debugging a postfix+dovecot setup on Debian after following this guide.

Sending email from my server works, but receiving doesn’t. I get this line in the /var/log/mail.log (with some redactions):

# /var/log/mail.log
Oct 18 19:17:03 X postfix/lmtp[387]: BB7321F440: to=<A@X.Y>, relay=X.Y[private/dovecot-lmtp], delay=1157, delays=1095/0.02/0.01/62, dsn=4.3.0, status=deferred (host X.Y[private/dovecot-lmtp] said: 451 4.3.0 <A@X.Y> Internal error occurred. Refer to server log for more information. (in reply to RCPT TO command))

For convenience and emphasis, the key part is:

Internal error occurred. Refer to server log for more information.

The exact same error message appears in /var/log/syslog but there is no additional information there.

Where can I find the "server log" this refers to, so I can continue debugging?


Get this bounty!!!