savannah-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Savannah-cvs] administration/docs/hacking_savannah hacking_sa...


From: Sylvain Beucler
Subject: [Savannah-cvs] administration/docs/hacking_savannah hacking_sa...
Date: Sat, 08 Jan 2005 06:52:53 -0500

CVSROOT:        /cvsroot/administration
Module name:    administration
Branch:         
Changes by:     Sylvain Beucler <address@hidden>        05/01/08 11:18:24

Modified files:
        docs/hacking_savannah: hacking_savannah.texi 

Log message:
        Added section on how to install ssmtp

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/administration/administration/docs/hacking_savannah/hacking_savannah.texi.diff?tr1=1.89&tr2=1.90&r1=text&r2=text

Patches:
Index: administration/docs/hacking_savannah/hacking_savannah.texi
diff -u administration/docs/hacking_savannah/hacking_savannah.texi:1.89 
administration/docs/hacking_savannah/hacking_savannah.texi:1.90
--- administration/docs/hacking_savannah/hacking_savannah.texi:1.89     Sat Jan 
 1 14:44:37 2005
+++ administration/docs/hacking_savannah/hacking_savannah.texi  Sat Jan  8 
11:18:24 2005
@@ -1,5 +1,5 @@
 \input texinfo   @c -*-texinfo-*-
address@hidden $Id: hacking_savannah.texi,v 1.89 2005/01/01 14:44:37 Beuc Exp $
address@hidden $Id: hacking_savannah.texi,v 1.90 2005/01/08 11:18:24 Beuc Exp $
 @comment %**start of header
 @setfilename hacking_savannah.info
 @include version.texi
@@ -344,6 +344,7 @@
 * WWW root directory::          
 * Apache::                      
 * MySQL::                       
+* ssmtp::                       
 * Savane::                      
 * Tuning your local install::   
 * FTP upload::                  
@@ -576,7 +577,7 @@
 at least explain it]
 
 
address@hidden MySQL, Savane, Apache, Savannah configuration
address@hidden MySQL, ssmtp, Apache, Savannah configuration
 @section MySQL
 
 MySQL is the @acronym{RDBMS} (@dfn{Relational DataBase Management
@@ -628,10 +629,64 @@
 sv.gnu.org unlike in my Debian stable]
 
 
address@hidden Savane, Tuning your local install, MySQL, Savannah configuration
+
address@hidden ssmtp, Savane, MySQL, Savannah configuration
address@hidden ssmtp
+
+We need a lightweight mail forwarder in our root.
+
+The previous solution was to rely on some modifications in Savane that
+used a SMTP client written in PHP (thus, with no dependency).
+
+Having to patch Savane and rely on incomplete code was nor pratical,
+so we use a sendmail-compatible application instead.
+
+Let's install ssmtp.
+
address@hidden
+cd ~
+apt-get build-dep ssmtp
+apt-get -b source ssmtp
+cd ssmtp-*
+cc -static -o ssmtp main.o header.o rcpt.o from.o net.o log.o options.o \
+   util.o arpadate.o base64.o -lnsl
+mkdir -m 755 /savannah/bin
+mkdir -m 755 -p /savannah/usr/sbin/
+cp ssmtp /savannah/usr/sbin/sendmail
+cp -a /lib/libnss_files* /lib/libncurses.so.5 /savannah/lib
+cp /etc/passwd /savannah/etc/passwd
+# edit passwd so that it doesn't include Savane users, just in case
+cp /bin/sh /savannah/bin
+mkdir -m 755 /savannah/etc/ssmtp/
+touch /savannah/etc/ssmtp.revaliases
+cp ~/ssmtp.conf /savannah/etc/ssmtp/
address@hidden example
+
+And here is the ssmtp.conf configuration file:
address@hidden
+# The person who gets all mail for userids < 1000
+root=root
+
+# The place where the mail goes.
+mailhub=127.0.0.1
+
+# Where will the mail seem to come from?
+rewriteDomain=savannah.gnu.org
+
+# The full hostname
+hostname=savannah.gnu.org
+
+# Set this to never rewrite the From: line (unless not given) and to
+# use that address in the from line of the envelope.
+FromLineOverride=YES
address@hidden verbatim
+
address@hidden Savane, Tuning your local install, ssmtp, Savannah configuration
 @section Savane
 
-Dependencies: usually you have everything in your system already. There is a 
new dependency in the backendm though:
+Dependencies: usually you have everything in your system
+already. There is a new dependency in the backend, though:
+
 @example
 $ apt-get install libmailtools-perl
 @end example




reply via email to

[Prev in Thread] Current Thread [Next in Thread]