email notification setting in ubuntu using postfix
Usage example:
First, on a system have no mail cmd. "mailutils" needs to be installed.
sudo apt-get install mailutils
I use the postfic-mailx solution.
Install process:
sudo apt-get install postfix
After the installation is started, some windows will pop up and you need to select options as below:
1. Internet Site
2. Modify the server name when sending an email. You can of course use the default value.
Configuration process:
1. Internet Site
2. Modify the server name when sending an email. You can of course use the default value.
Configuration process:
sudo dpkg-reconfigure postfix
then need to select options as below for the configuration:
- Internet Site
- change the path if needed
- mail.example.com, localhost.localdomain, localhost
- No
- 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.0.0/24
- 0
- +
- all
detail guideline here:
And if postfix is already installed by other installation in the system, then it may be lack of /etc/postfix/main.cfconfig file, then you still need to run cmd below to complete the configuration for email (you can also manually add the config file, but seems still need to run the cmd below to select the 1st option: internet Site ) :
sudo dpkg-reconfigure postfix
and select the options as listed above.
After the configuration, you may need to reload the config by using:
sudo /etc/init.d/postfix reload
Or the reload may be auto started after the configuration by itself.
https://www.digitalbrolly.com/doubleclick-for-publishers-training/#aboutCourse
ReplyDelete