root@plusload:~# systemctl status postfix ● postfix.service - Postfix Mail Transport Agent Loaded: loaded (/lib/systemd/system/postfix.service; disabled; vendor preset: Active: inactive (dead) root@plusload:~# systemctl status dovecot ● dovecot.service - Dovecot IMAP/POP3 email server Loaded: loaded (/lib/systemd/system/dovecot.service; disabled; vendor preset: Active: inactive (dead) Docs: man:dovecot(1)
毎週月曜日の二時に自動修復して再起動するようにしてるからその後
root@plusload:~# systemctl restart postfix root@plusload:~# systemctl restart dovecot
しないとダメで忘れちゃうので自動起動にしとくことにした
root@plusload:~# systemctl is-enabled postfix # Is 'postfix' auto start enabled? disabled root@plusload:~# systemctl enable postfix # auto start enable Synchronizing state of postfix.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install enable postfix root@plusload:~# systemctl is-enabled dovecot # Is 'dovecot' auto start enabled? disabled root@plusload:~# systemctl enable dovecot # auto start enable Synchronizing state of dovecot.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install enable dovecot
これで自動起動になったはず。確認する
root@plusload:~# systemctl is-enabled postfix enabled root@plusload:~# systemctl is-enabled dovecot enabled