Set SMTP and SSH port at installation script

Hi!
Is it possible to set a SMTP account and update SSH port at installation script?

I’ve noticed that I received emails notification from hestia in spam folder and I’d like to improve it when I do a new installation automatically via script, and the same for SSH port replacing 22 for a new one.

I know I should do it manually in previous installation, but as I sell VPS services and I’d like to do it automatically for new ones.

Ssh port can be set pre install we don’t touch it

SMTP currently not you can set via cli after install

v-add-sys-smtp $domain 587 STARTTLS info@$domain 1234-test noreply@$domain

For the command…

1 Like

Create a custom script to:

  • sed the ssh port and maybe sudoers file.
  • Then set the SMTP command to run only once after reboot
  • Then wget hestia and install

Reboot.

I also set the firewall and several ipsets

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.