Super User is a question and answer site for computer enthusiasts and power users. 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'm using logwatch to send email logs, but I'm having a hard time understanding how to set up a simple MTA to actually send them to my gmail. Most information I've found is on creating a full blown two-way mail client (e.g.), but I only need a way to send a log to one gmail.

What is the simplest way to send an email to gmail (no other functionality required)?

share|improve this question
up vote 0 down vote accepted

Why don't you install exim, for example (debian / ubuntu):

aptitude install exim4

when in the setup dialog (you can relaunch it with dpkg-reconfigure exim4-config), you set:

  • internet site (send mail directly)
  • mail name = (you need a domain name there)
  • listen on connection:, that way you don't accept or relay mail
  • no relay
  • minimal DNS = no
  • format = mbox (for example)
  • configuration in only 1 file
  • root and postmaster recipient = root

You get a running configuration in 5-10 minutes max.

share|improve this answer
Works like a charm ;) I created a filter for it in gmail, specifying to label it and not mark as spam. Gmail seems to still give a warning, but no big deal. – Dominykas Mostauskis Sep 23 '13 at 10:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .