simplelogin-postfix-docker icon indicating copy to clipboard operation
simplelogin-postfix-docker copied to clipboard

disable cron when TLS_KEY_FILE is set

Open Slevin90 opened this issue 1 year ago • 1 comments

I have set a custom TLS_KEY_FILE and TLS_CERT_FILE, this should disable letsencrypt

however, every hour I get an email:

Missing command line flags. For non-interactive execution, you will need to specify a plugin on the command line. Run with '--help plugins' to see a list of options, and see https://eff.org/letsencrypt-plugins for more detail on what the plugins do and how to use them. run-parts: /etc/periodic/hourly/renew-postfix-tls: exit status 1

This renew-postfix-tls should be removed /not run if one of the .env variables (TLS_KEY_FILE / TLS_CERT_FILE) is set.

for the moment as workaround I have manually deleted the renew-postfix-tls file in my container.

Slevin90 avatar Apr 03 '24 11:04 Slevin90

looks like some things in this push can be used/optimized https://github.com/simple-login/simplelogin-postfix-docker/pull/13

Slevin90 avatar Apr 03 '24 11:04 Slevin90

@Slevin90 , can you please try the #39 and see if it fixes the issue? I think it should stop the cron from running but I have not tested it. Thanks

rehanone avatar Jun 03 '24 21:06 rehanone

@Slevin90 , can you please try the #39 and see if it fixes the issue? I think it should stop the cron from running but I have not tested it. Thanks

I´ll let you know in the next days

Slevin90 avatar Jun 03 '24 22:06 Slevin90

Updated, had it running for a couple of hours an no hourly emails anymore.

Thanks for the fix!🙌

Slevin90 avatar Jun 04 '24 07:06 Slevin90