First install it.
apt-get install cron-apt
I like to get e-mail every time the cron-apt runs. This way I know that everything works. To get the mail change MAILON=”error” to MAILON=”always” and uncomment the line in /etc/cron/apt/config.
Reconfigure exim4
dpkg-reconfigure exim4-config
Settings (in order of appearance):
- mail sent by smarthost; no local mail
- System mail name: (confirm the default option i.e. hostname)
- IP-addresses to listen on for incoming SMTP connections: (confirm the default option i.e. 127.0.0.1 ; ::1)
- Other destinations wor which mail is accepted: (confirm the default option i.e. hostname)
- Visible domain name for local users: (confirm the default option i.e. hostname)
- IP adress or host name of the outgoing smarthost: your.smart.host.com or IP
- Kep number of DNS-queries minimal (Dial-on-Demand)? : (confirm the default option i.e. No)
- Split configuration into small files? : (confirm the default option i.e. No)
- Root and postmaster mail recepient: my@email.com