Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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.

Thanks!

share|improve this question

2 Answers 2

up vote 0 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 http://securityconscious.blogspot.com/2011/03/setting-up-stunnel-in-client-mode-in.html.

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

 
discard

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.