I have some home system monitoring scripts run via cron that will create output, and hence mail to the user that runs the script. I want to redirect this mail to my Gmail (or insert any other third-party mail) account.
The method should
- be able to authenticate with and use another SMTP server (e.g. Gmail's SMTP itself) rather than sending directly via sendmail etc, as services like Gmail are likely to mark my mail as spam if I don't use a legit service.
- retry sending if failed as it will be run via a home Internet connection.
mailis commonly used for scripts. – Faheem Mitha May 15 '11 at 17:24