Index: Makefile.in
--- Makefile.in.orig	2004-07-26 07:32:18 +0200
+++ Makefile.in	2005-06-08 20:27:54 +0200
@@ -16,7 +16,7 @@
 
 # Configuration files
 CONFIGURATION_FILE=$(SSMTPCONFDIR)/ssmtp.conf
-REVALIASES_FILE=$(SSMTPCONFDIR)/revaliases
+REVALIASES_FILE=$(SSMTPCONFDIR)/ssmtp.revaliases
 
 INSTALLED_CONFIGURATION_FILE=$(CONFIGURATION_FILE)
 INSTALLED_REVALIASES_FILE=$(REVALIASES_FILE)
Index: arpadate.c
--- arpadate.c.orig	2002-12-08 18:30:11 +0100
+++ arpadate.c	2005-06-08 20:28:58 +0200
@@ -78,8 +78,8 @@
 #else
 	time_t now;
 
-	/* RFC822 format string borrowed from GNU shellutils date.c */
-	const char *format = "%a, %_d %b %Y %H:%M:%S %z";
+	/* RFC2822 format */
+	const char *format = "%a, %d %b %Y %H:%M:%S %Z";
 
 	now = time(NULL);
 
Index: ssmtp.c
--- ssmtp.c.orig	2004-07-23 07:58:48 +0200
+++ ssmtp.c	2005-06-08 20:27:54 +0200
@@ -14,6 +14,7 @@
 */
 #define VERSION "2.60.4"
 
+#include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <sys/param.h>
@@ -242,7 +243,7 @@
 	char *p;
 
 	p = str;
-	while(*p && isspace(*p)) p++;
+	while(*p && isspace((int)(*p))) p++;
 
 	return(p);
 }
@@ -255,7 +256,7 @@
 	char *p;
 
 	p = (str + strlen(str));
-	while(isspace(*--p)) {
+	while(isspace((int)(*--p))) {
 		*p = (char)NULL;
 	}
 
@@ -580,7 +581,7 @@
 		}
 
 		if(got_addr) {
-			while(*r && isspace(*r)) r++;
+			while(*r && isspace((int)(*r))) r++;
 
 			rcpt_save(addr_parse(r));
 			r = (q + 1);
@@ -727,7 +728,7 @@
 void header_parse(FILE *stream)
 {
 	size_t size = BUF_SZ, len = 0;
-	char *p = (char *)NULL, *q;
+	char *p = (char *)NULL, *q = (char *)NULL;
 	bool_t in_header = True;
 	char l = (char)NULL;
 	int c;
Index: ssmtp.conf.5
--- /dev/null
+++ ssmtp.conf.5
@@ -0,0 +1,81 @@
+.\"/* Copyright 2004 Reuben Thomas
+.\" * All rights reserved
+.\" *
+.\" This man page is distributed under the GNU General Public License
+.\" version 2, or at your option, any later version. There is no warranty.
+.\"
+.Dd October 7, 2004
+.Dt SSMTP.CONF 5
+.Os
+.Sh NAME
+.Nm ssmtp.conf
+.Nd ssmtp configuration file
+.Sh DESCRIPTION
+.Nm ssmtp
+reads configuration data from
+.Pa /etc/ssmtp/ssmtp.conf
+The file contains keyword-argument pairs, one per line.
+Lines starting with
+.Ql #
+and empty lines are interpreted as comments.
+.Pp
+The possible keywords and their meanings are as follows (both are case-insensitive):
+.Bl -tag -width Ds
+.It Cm Root
+The user that gets all mail for userids less than 1000. If blank, address rewriting is disabled.
+.Pp
+.It Cm Mailhub
+The host to send mail to, in the form
+.Ar host No | Ar IP_addr No Oo : Ar port Oc .
+The default port is 25.
+.Pp
+.It Cm RewriteDomain
+The domain from which mail seems to come.
+for user authentication.
+.Pp
+.It Cm Hostname
+The full qualified name of the host.
+If not specified, the host is queried for its hostname.
+.Pp
+.It Cm FromLineOverride
+Specifies whether the From header of an email, if any, may override the default domain.
+The default is
+.Dq no .
+.Pp
+.It Cm UseTLS
+Specifies whether ssmtp uses TLS to talk to the SMTP server.
+The default is
+.Dq no .
+.Pp
+.It Cm UseSTARTTLS
+Specifies whether ssmtp does a EHLO/STARTTLS before starting SSL negotiation.
+See RFC 2487.
+.Pp
+.It Cm TLSCert
+The file name of an RSA certificate to use for TLS, if required.
+.Pp
+.It Cm AuthUser
+The user name to use for SMTP AUTH.
+The default is blank, in which case SMTP AUTH is not used.
+sent without
+.Pp
+.It Cm AuthPass
+The password to use for SMTP AUTH.
+.Pp
+.It Cm AuthMethod
+The authorization method to use.
+If unset, plain text is used.
+May also be set to
+.Dq cram-md5 .
+.Sh FILES
+.Bl -tag -width Ds
+.It Pa /etc/ssmtp/ssmtp.conf
+Contains configuration data for
+.Nm ssmtp .
+.El
+.Sh SEE ALSO
+.Xr ssmtp 8
+.Sh AUTHORS
+Matt Ryan (mryan@debian.org), Hugo Haas (hugo@debian.org), Christoph Lameter (clameter@debian.org)
+and Dave Collier-Brown (davecb@hobbes.ss.org).
+Reuben Thomas (rrt@sc3d.org) wrote the man page.
Index: newaliases.8
--- /dev/null
+++ newaliases.8
@@ -0,0 +1,17 @@
+.TH NEWALIASES 8 "September 2000" "Debian GNU/Linux"
+.SH NAME
+newaliases \- update /etc/aliases database
+.SH SYNOPSIS
+.B newaliases
+.SH DESCRIPTION
+This is a link to the ssmtp binary. It invokes
+.B /usr/sbin/sendmail
+with the
+.B -bi
+option. It is provided for compatibility with the sendmail program.
+.P
+In this case it does absolutely nothing since sSMTP does not support
+/etc/aliases and is just there to avoid programs returning error messages.
+.SH AUTHOR
+This manual page was written by Christoph Lameter <clameter@debian.org>,
+for the Debian GNU/Linux system. Minor fixes by Matt Ryan <mryan@debian.org>
