Simple Email (SMTP) Relay - Using Google
Alright you can probably use a whole cornucopia of MTA’s (or Mail Transfer Agents), to allow you to proxy mail out on the Internet, but I wanted to mention a very simple one, SSMTP. Why would anyone care to want to send email from some intermediary you ask. Well simple, with SSMTP you can automatically send email via script or from the command line. This is particularly useful if you want to use an application to monitor your server and send alerts, or if sending email from the command line is your fancy. You could try to set up your own email server at home, but the problem with that is two fold: one SMTP (port 25) is often blocked by ISPs, and secondly, even with a static IP address most Email servers will have ISP IP Address ranges Black listed (that is the effect of the wonderful world of spam).
So now with your Gmail or Google for Domains email address you can simply use an application called sSMTP. There are excellent instructions on the Debian Website here. There is only one correction I wanted to make, (and I added the comment to the wiki), and that is to add in one missing parameter: AuthMethod=LOGIN to your ssmtp.conf file.
Once you have it setup, all you need to do is test your email forwarding by dropping me an email from the command like this:
subject: Testing SSMTP (or any subject you prefer followed by an enter).
The command line is clearly going replace my email client. With SSMTP I can send emails without ever receiving them.
Thanks, from your anonymous user. (Or any such commentary to your liking
, hit enter.)
(and finish her off with a Ctrl-D on a blank line).
Thanks again for reading,
- - tekgnu - -