Mail Service Setup¶
1. Sendmail install¶
- Check if sendmail was installed. if not, please install it first
2. Sendmail config¶
- Add mail server info into
/etc/hosts
if ! grep -q "10.41.10.108 smtmailserver sendmailserver.wistron.com" /etc/hosts; then
echo "10.41.10.108 smtmailserver sendmailserver.wistron.com" | sudo tee -a /etc/hosts
echo "内容已添加到 /etc/hosts"
else
echo "内容已存在,无需添加"
fi
- Modify config file
添加修改内容:
Dj$w.wistron.com
DSsendmailserver.wistron.com
- Start send mail service, and test sendmail
Start sendmail service
Test mail send




