Changes between Initial Version and Version 1 of faq/email/linux-simple-mail-relay


Ignore:
Timestamp:
Apr 22, 2008, 12:38:21 PM (17 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • faq/email/linux-simple-mail-relay

    v1 v1  
     1= How do I setup my Linux computer to relay mail through May First/People Link? =
     2
     3[Reposted from a submission by abh.]
     4
     5If you're using Remote Backups on Mayfirst, and you've tried to follow the instructions provided for offsite backups you might still find that you need to set up some kind of mail program. You'll need a mail client and a mail server.
     6
     7I opted for mailx as a mail client because someone told me to:
     8
     9{{{
     10sudo aptitude install mailx
     11}}}
     12
     13Since our backup server isn't anything but a file server most of the time, I don't want to run (or deal with) a full scale postfix installation. Instead, I'm running esmtp-run, a lightweight mailer. Installing it on ubuntu linux is easy:
     14
     15{{{
     16sudo aptitude install esmtp-run
     17}}}
     18
     19Once it is there though, you're supposed to just magically know how to configure it. In case you can't read minds, look for a file like /etc/esmtprc in your file system (you might need the terminal for this) and edit it. I'm partial to vim but if you aren't a command line cowboy, you can try gedit instead:
     20
     21{{{
     22sudo gedit /etc/esmtprc
     23}}}
     24
     25Since I'm a Mayfirst member, my file looks like this:
     26
     27{{{
     28# Config file for ESMTP sendmail
     29
     30# The SMTP host and service (port)
     31hostname=chavez.mayfirst.org:587
     32
     33# The user name
     34username=rab
     35
     36# The password
     37password=notyourbeeswax
     38
     39# Whether to use Starttls
     40starttls=enabled
     41
     42# The certificate passphrase
     43#certificate_passphrase=
     44
     45# The Mail Delivery Agent
     46mda="/usr/bin/procmail -d %T"
     47}}}
     48
     49Additions from dkg:
     50
     51It's probably also worth making sure that the permissions on /etc/esmtprc are set correctly. If it's world-readable, then every account on your system will know your username and password, which would be a Bad Thing.
     52