- Install exim4:
sudo apt-get install exim4-daemon-light openssl
- Configure exim4:
sudo dpkg-reconfigure exim4-config
- General type of mail configuration: Mail sent by smarthost; no local mail
- IP address or host name of the outgoing smarthost: smtp.gmail.com:587
- Edit /etc/exim4/passwd.client file, add a line contains the gmail user name and password in the following format:
smtp.gmail.com:username@gmail.com:password
- Generate exim4 certificate:
sudo /usr/share/doc/exim4-base/examples/exim-gencert
echo "MAIN_TLS_ENABLE = 1" >> /etc/exim4/exim4.conf.localmacros
- Reload exim4:
/etc/init.d/exim4 reload
No comments:
Post a Comment