Bitnami Roundcube: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 20: | Line 20: | ||
systemctl start bitnami | systemctl start bitnami | ||
Line 38: | Line 35: | ||
WorkingDirectory=/usr/local/bin | WorkingDirectory=/usr/local/bin | ||
Restart=on-failure | Restart=on-failure | ||
==Optional Auto Shutdown == | |||
*/etc/systemd/system/autoshut.service | |||
[Unit] | |||
Description=Init Auto Shutdown after 8 hours | |||
[Install] | |||
WantedBy=multi-user.target | |||
[Service] | |||
ExecStart=shutdown -P +480 | |||
ExecStop=shutdown -c | |||
RemainAfterExit=yes | |||
Type=simple | |||
Restart=on-failure | |||
systemctl enable autoshut | |||
*start | |||
systemctl start autoshut | |||
*stop | |||
systemctl stop autoshut |
Revision as of 23:00, 20 January 2023
- Configure Mail Target: /opt/bitnami/roundcube/config/config.inc.php
$config['imap_host'] = 'ssl://mail.domain.com:993'; $config['smtp_host'] = 'tls://mail.domain.com:587'; #Consider to do this! $config['smtp_auth_type'] = 'PLAIN';
- Letsencryp install (2023)
apt install snapd snap install core snap refresh core snap install --classic certbot ln -s /snap/bin/certbot /usr/bin/certbot
- Automatic Cert Renewal
systemctl stop bitnami certonly --domain mail.coolscript.org --renew-by-default --standalone cp /etc/letsencrypt/live/mail.domain.org/cert.pem /opt/bitnami/apache2/conf/bitnami/certs/server.crt cp /etc/letsencrypt/live/mail.domain.org/privkey.pem /opt/bitnami/apache2/conf/bitnami/certs/server.key systemctl start bitnami
Optional Renew the DNS A Record at startup
- /etc/systemd/system/renew-dns.service
[Unit] Description=Renew DNS Name of mail.domain.org [Install] WantedBy=multi-user.target [Service] ExecStart=/usr/local/bin/cfddns.pl -c /usr/local/bin/cfddns.xml -v | logger Type=simple WorkingDirectory=/usr/local/bin Restart=on-failure
Optional Auto Shutdown
- /etc/systemd/system/autoshut.service
[Unit] Description=Init Auto Shutdown after 8 hours [Install] WantedBy=multi-user.target [Service] ExecStart=shutdown -P +480 ExecStop=shutdown -c RemainAfterExit=yes Type=simple Restart=on-failure
systemctl enable autoshut
- start
systemctl start autoshut
- stop
systemctl stop autoshut