simple-login / simplelogin-postfix-docker

The missing Docker image for SimpleLogin Postfix
https://hub.docker.com/r/simplelogin/postfix
GNU General Public License v3.0
22 stars 21 forks source link

disable cron when TLS_KEY_FILE is set #36

Closed Slevin90 closed 4 months ago

Slevin90 commented 6 months ago

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 commented 6 months ago

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

rehanone commented 4 months ago

@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

Slevin90 commented 4 months ago

@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 commented 4 months ago

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

Thanks for the fix!🙌