Page 1 of 1

STMPS/IMAPS certificate/hostname?

Posted: Mon Apr 07, 2014 1:52 pm
by WilliamSI
Hello,

I'd like to use IMAP and SMTP via SSL (and best case perfect forward secrecy, postfix should support that) - Does Vesta install any certificates for this by default and how can they be replaced?
I'd also need to setup the mailserver hostname, just edit postfix conf?

Re: STMPS/IMAPS certificate/hostname?

Posted: Mon Apr 07, 2014 5:39 pm
by MyKEcz
Hostname should be same as server fqdn hostname.

I don't have any responsibility for harm of your server and services...

Set server hostname:
# echo "server01.example.com" > /etc/hostname
Then edit and point your new hostname to servers public IP (don't remove 127.0.0.1 localhost, just edit second line):
# nano /etc/hosts
.
.
192.168.1.100 server01.example.com server01
.
.
Run SH:
# /etc/init.d/hostname.sh start
Now you should see:
# hostname
server01.example.com
# hostname -f
server01.example.com
Reboot may be required.
Exim4 takes hostname from system, but postfix must be configured (VestaCP has default MTA Exim4).