Install mail (exim)
Jump to navigation
Jump to search
- Install exim
- sudo apt-get install exim4 exim4-config
- Configure exim (using gmail smarthost)
- sudo dpkg-reconfigure exim4-config
- Choose "mail sent by smarthost; received via SMTP or fetchmail"
- Set to "localhost" for "System mail name:". e.g. bradnorrp1
- Set to "127.0.0.1" for "IP-addresses to listen on for incoming SMTP connections" to refuse external connections.
- Leave as empty for "Other destinations for which mail is accepted:".
- Leave as empty for "Machines to relay mail for:".
- Set to "smtp.gmail.com::587" for "IP address or host name of the outgoing smarthost:".
- Choose "NO" for "Hide local mail name in outgoing mail?".
- Choose "NO" for "Keep number of DNS-queries minimal (Dial-on-Demand)?".
- Choose "mbox format in /var/mail/" for "Delivery method for local mail".
- Choose "YES" for "Split configuration into small files?".
- Setup smarthost password
- Edit /etc/exim4/passwd.client
- Add *.google.com:<username>:<password>
- Apply config
- sudo update-exim4.conf
- Restart exim
- sudo systemctl restart exim4