Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to be able to send email from a client (an OKI document scanner) which is non-TLS capable. But my company's email service is provided by Gmail-Google Apps, which is configured to force TLS authentication. Therefore the scanner cannot connect to the Google SMTP server.

I have a local linux machine that I could use in the following way: have the scanner connect to some kind of email relay in the linux machine without TLS, and have the linux machine relay the email to Google's server under TLS.

Could you tell me if there is any kind of simple MTA that I could install in the linux machine and that would allow me to do this? I have zero experience with full-fledge MTAs of the likes of sendmail, postfix or exim, so the simplest the solution the better.

If the solution were to use a full-fledge MTA (sendmail, postfix or exim, or whatever), could you also help with the configuration? I understand these are not trivial to configure.

There is of course no need for the scanner to receive emails, just to send them.


share|improve this question
up vote 1 down vote accepted

I believe you could use something like stunnel to act as a proxy. Stunnel installed on the Linux machine can accept plaintext connection from the scanner and forward the communication using SSL connection to Google SMTP server.

You can find an example of such a configuration on

However the communication between the scanner and stunnel will be in plaintext in this case so your scanner's Google account password will be under the risk of being compromised!

share|improve this answer
Hi Fedor, installed stunnel and works perfectly under SSLv3. The scanner and the machine running stunnel are in a controlled local network, so I am not so worried about the plaintext communication. Thanks! – Rodrigo Serrano Aug 25 '11 at 15:47

You're going to have to go with a full MTA; the cut-down MTAs only provide service for local message generation.

As far as configuration goes, it should be a simple smarthost configuration, for which there are an infinite number of guides on the Googlez for every MTA under the sun. For Postfix, for example, this guide seems to cover everything you're likely to need.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.