update mail server install info

This commit is contained in:
Matthew Saunders Brown 2024-03-14 15:23:53 -07:00
parent aed7576594
commit 96c4af6453

View File

@ -1,5 +1,10 @@
# Vhost Stack
## Requirements
A minimal Ubuntu 22.04 server install.
It is recommended to first install base-stack which will configure a basic server set up including firewald & fail2ban to secure the server:
https://git.stack-source.com/msb/base-stack
## Install
```
cd /usr/local/src/
@ -21,12 +26,14 @@ https://git.stack-source.com/msb/wordpress-tools
## Mail Server
For an integrated and full featured mail server configuration it's recommended to install vmail-stack:
https://git.stack-source.com/msb/vmail-stack
If you just want a minimal smtp mail server for getting automated emails (cron, website contact forms, etc.) off the server you can install and configure exim4-daemon-light with these commands:
If you just want a minimal smtp mail server for getting automated emails (cron, website contact forms, etc.) off the server you can install and configure exim4-daemon-light with the commands below. Note if you started with base-stack this has already been done.
```
apt -y install exim4-daemon-light mailutils
sed -i "s|dc_eximconfig_configtype='local'|dc_eximconfig_configtype='internet'|g" /etc/exim4/update-exim4.conf.conf
/usr/sbin/update-exim4.conf
systemctl restart exim4
echo "user@example.com" > /root/.forward
```
## License