1

Topic: cron job for ver 1.6.8 running on rocky linux 9.3

- iRedMail version 1.6.8 MARIADB edition.
- Deployed with the downloadable installer
- Linux/BSD distribution name and version: rocky linux 9.3
- Store mail accounts in which backend (MySQL)
- Web server (Nginx)
- Manage mail accounts with iRedAdmin-Pro = yes

root@mail etc]# 1 3 * * * certbot renew --post-hook 'ln -sf /etc/letsencrypt/live/mail.XXXX.com/privkey.pem /etc/pki/tls/private/iRedMail.key; /usr/sbin/service postfix restart; /usr/sbin/service nginx restart; /usr/sbin/service dovecot restart'
bash: 1: command not found...

Why does --post-hook = command not found...

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2 (edited by chris.23lo 2024-02-17 09:25:37)

Re: cron job for ver 1.6.8 running on rocky linux 9.3

my cronjob in Rocky 8.8 and 1.65 iRedmail is like this, with nginx and letsencrypt

certbot renew --post-hook '/usr/sbin/service postfix restart; /usr/sbin/service nginx restart; /usr/sbin/service dovecot restart'