I have a bit of an odd question that I'm having trouble solving, I've had a good search around, but can't seem to find something related online. My aim is:
System mail for root is forwarded (I guess using exim) to /var/mail/username (I'm not sure how to test if I have setup exim correctly for this. (used dpkg-reconfigure exim4-config, and set it to use local only).
I can manually use a mail command to send email using my gmail account smtp (I have a script that probes for my IP and sends me an email using the mail command, as my ISP tends to keep it dynamic, but I need my IP for ssh purposes)