head 1.12; access; symbols OPENPKG_E1_MP_HEAD:1.8 OPENPKG_E1_MP:1.8 OPENPKG_E1_MP_2_STABLE:1.7.6.1 OPENPKG_E1_FP:1.7.6.1 OPENPKG_2_STABLE_MP:1.8 OPENPKG_2_STABLE_20061018:1.7 OPENPKG_2_STABLE_20060622:1.7 OPENPKG_2_STABLE:1.7.0.6 OPENPKG_2_STABLE_BP:1.7 OPENPKG_2_5_RELEASE:1.7 OPENPKG_2_5_SOLID:1.7.0.4 OPENPKG_2_5_SOLID_BP:1.7 OPENPKG_2_4_RELEASE:1.7 OPENPKG_2_4_SOLID:1.7.0.2 OPENPKG_2_4_SOLID_BP:1.7 OPENPKG_CW_FP:1.4 OPENPKG_2_3_RELEASE:1.4 OPENPKG_2_3_SOLID:1.4.0.2 OPENPKG_2_3_SOLID_BP:1.4 OPENPKG_2_2_RELEASE:1.3 OPENPKG_2_2_SOLID:1.3.0.4 OPENPKG_2_2_SOLID_BP:1.3 OPENPKG_2_1_RELEASE:1.3 OPENPKG_2_1_SOLID:1.3.0.2 OPENPKG_2_1_SOLID_BP:1.3 OPENPKG_2_0_RELEASE:1.1 OPENPKG_2_0_SOLID:1.1.0.10 OPENPKG_2_0_SOLID_BP:1.1 OPENPKG_1_3_RELEASE:1.1 OPENPKG_1_3_SOLID:1.1.0.8 OPENPKG_1_3_SOLID_BP:1.1 OPENPKG_1_STABLE_MP:1.1 OPENPKG_1_2_RELEASE:1.1 OPENPKG_1_2_SOLID:1.1.0.6 OPENPKG_1_2_SOLID_BP:1.1 OPENPKG_1_STABLE:1.1.0.4 OPENPKG_1_STABLE_BP:1.1 OPENPKG_1_1_RELEASE:1.1 OPENPKG_1_1_SOLID:1.1.0.2 OPENPKG_1_1_SOLID_BP:1.1; locks; strict; comment @# @; 1.12 date 2009.07.07.20.48.41; author rse; state Exp; branches; next 1.11; commitid ezEVsI9MZ9WO0PUt; 1.11 date 2008.03.08.08.21.43; author rse; state Exp; branches; next 1.10; commitid VhF8ZAiprlw8viUs; 1.10 date 2007.09.20.07.01.57; author thl; state Exp; branches; next 1.9; commitid vex7Tkm3wGeywrys; 1.9 date 2007.09.19.11.50.13; author rse; state Exp; branches; next 1.8; commitid oU7RbXB9IUCr9lys; 1.8 date 2006.10.20.18.11.59; author rse; state Exp; branches; next 1.7; commitid Rs7GBMyucki30sRr; 1.7 date 2005.06.08.18.31.21; author rse; state Exp; branches 1.7.6.1; next 1.6; 1.6 date 2005.06.08.13.26.32; author tho; state Exp; branches; next 1.5; 1.5 date 2005.06.08.13.17.23; author tho; state Exp; branches; next 1.4; 1.4 date 2004.12.09.10.19.00; author tho; state Exp; branches; next 1.3; 1.3 date 2004.05.07.19.31.57; author rse; state Exp; branches; next 1.2; 1.2 date 2004.05.07.19.23.10; author rse; state Exp; branches; next 1.1; 1.1 date 2002.08.21.11.38.50; author rse; state Exp; branches 1.1.8.1 1.1.10.1; next ; 1.7.6.1 date 2006.10.20.18.25.41; author rse; state Exp; branches; next ; commitid F1LAvniHRYHK4sRr; 1.1.8.1 date 2004.05.07.19.45.23; author rse; state Exp; branches; next ; 1.1.10.1 date 2004.05.07.19.42.50; author rse; state Exp; branches; next ; desc @@ 1.12 log @upgrading package: ssmtp 2.62 -> 2.63 @ text @Index: Makefile.in --- Makefile.in.orig 2008-02-29 03:50:15 +0100 +++ Makefile.in 2009-07-07 22:45:14 +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: newaliases.8 --- /dev/null 2009-07-07 22:45:20 +0200 +++ newaliases.8 2009-07-07 22:45:14 +0200 @@@@ -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 , +for the Debian GNU/Linux system. Minor fixes by Matt Ryan Index: ssmtp.c --- ssmtp.c.orig 2009-07-07 04:56:01 +0200 +++ ssmtp.c 2009-07-07 22:46:12 +0200 @@@@ -39,6 +39,10 @@@@ #include #include "xgethostname.h" +#ifndef NUL +#define NUL '\0' +#endif + bool_t have_date = False; bool_t have_from = False; #ifdef HASTO_OPTION @@@@ -55,21 +59,21 @@@@ #define ARPADATE_LENGTH 32 /* Current date in RFC format */ char arpadate[ARPADATE_LENGTH]; -char *auth_user = (char)NULL; -char *auth_pass = (char)NULL; -char *auth_method = (char)NULL; /* Mechanism for SMTP authentication */ -char *mail_domain = (char)NULL; -char *from = (char)NULL; /* Use this as the From: address */ +char *auth_user = (char *)NULL; +char *auth_pass = (char *)NULL; +char *auth_method = (char *)NULL; /* Mechanism for SMTP authentication */ +char *mail_domain = (char *)NULL; +char *from = (char *)NULL; /* Use this as the From: address */ char *hostname; char *mailhost = "mailhub"; -char *minus_f = (char)NULL; -char *minus_F = (char)NULL; +char *minus_f = (char *)NULL; +char *minus_F = (char *)NULL; char *gecos; -char *prog = (char)NULL; +char *prog = (char *)NULL; char *root = NULL; char *tls_cert = "/etc/ssl/certs/ssmtp.pem"; /* Default Certificate */ -char *uad = (char)NULL; -char *config_file = (char)NULL; /* alternate configuration file */ +char *uad = (char *)NULL; +char *config_file = (char *)NULL; /* alternate configuration file */ headers_t headers, *ht; @@@@ -222,11 +226,10 @@@@ exit(1); } -#ifndef _GNU_SOURCE /* basename() -- Return last element of path */ -char *basename(char *str) +char *mybasename(char *str) { char *p; @@@@ -237,7 +240,6 @@@@ return(strdup(p)); } -#endif /* _GNU_SOURCE */ /* strip_pre_ws() -- Return pointer to first non-whitespace character @@@@ -261,7 +263,7 @@@@ p = (str + strlen(str)); while(isspace(*--p)) { - *p = (char)NULL; + *p = NUL; } return(p); @@@@ -287,7 +289,7 @@@@ q++; if((p = strchr(q, '>'))) { - *p = (char)NULL; + *p = NUL; } #if 0 @@@@ -310,7 +312,7 @@@@ q = strip_post_ws(p); if(*q == ')') { while((*--q != '(')); - *q = (char)NULL; + *q = NUL; } (void)strip_post_ws(p); @@@@ -363,7 +365,7 @@@@ *linestart = False; if((p = strchr(str, '\n'))) { - *p = (char)NULL; + *p = NUL; *linestart = True; } return(leadingdot); @@@@ -384,7 +386,7 @@@@ while(fgets(buf, sizeof(buf), fp)) { /* Make comments invisible */ if((p = strchr(buf, '#'))) { - *p = (char)NULL; + *p = NUL; } /* Ignore malformed lines and comments */ @@@@ -519,7 +521,7 @@@@ #endif /* Ignore missing usernames */ - if(*str == (char)NULL) { + if(*str == NUL) { return; } @@@@ -576,7 +578,7 @@@@ } /* End of string? */ - if(*(q + 1) == (char)NULL) { + if(*(q + 1) == NUL) { got_addr = True; } @@@@ -584,7 +586,7 @@@@ if((*q == ',') && (in_quotes == False)) { got_addr = True; - *q = (char)NULL; + *q = NUL; } if(got_addr) { @@@@ -676,7 +678,7 @@@@ if(strncasecmp(ht->string, "From:", 5) == 0) { #if 1 /* Hack check for NULL From: line */ - if(*(p + 6) == (char)NULL) { + if(*(p + 6) == NUL) { return; } #endif @@@@ -741,7 +743,7 @@@@ size_t size = BUF_SZ, len = 0; char *p = (char *)NULL, *q; bool_t in_header = True; - char l = (char)NULL; + char l = NUL; int c; while(in_header && ((c = fgetc(stream)) != EOF)) { @@@@ -776,9 +778,9 @@@@ in_header = False; default: - *q = (char)NULL; + *q = NUL; if((q = strrchr(p, '\n'))) { - *q = (char)NULL; + *q = NUL; } header_save(p); @@@@ -809,9 +811,9 @@@@ in_header = False; default: - *q = (char)NULL; + *q = NUL; if((q = strrchr(p, '\n'))) { - *q = (char)NULL; + *q = NUL; } header_save(p); @@@@ -844,10 +846,12 @@@@ if (!rest) { return NULL; } - tok=strndup(*s,rest-(*s)); + tok=malloc(rest-(*s)); if (!tok) { - die("firsttok() -- strndup() failed"); + die("firsttok() -- malloc() failed"); } + strncpy(tok, *s, rest-(*s)); + tok[rest-(*s)] = '\0'; *s=rest+1; return tok; } @@@@ -876,7 +880,7 @@@@ char *rightside; /* Make comments invisible */ if((p = strchr(buf, '#'))) { - *p = (char)NULL; + *p = NUL; } /* Ignore malformed lines and comments */ @@@@ -1310,7 +1314,7 @@@@ buf[i++] = c; } } - buf[i] = (char)NULL; + buf[i] = NUL; return(buf); } @@@@ -1737,7 +1741,7 @@@@ j = 0; add = 1; - while(argv[i][++j] != (char)NULL) { + while(argv[i][++j] != NUL) { switch(argv[i][j]) { #ifdef INET6 case '6': @@@@ -2066,7 +2070,7 @@@@ (void)signal(SIGTTOU, SIG_IGN); /* Set the globals */ - prog = basename(argv[0]); + prog = mybasename(argv[0]); hostname = xgethostname(); @ 1.11 log @upgrading package: ssmtp 2.61 -> 2.62 @ text @d3 1 a3 1 +++ Makefile.in 2008-03-08 09:14:11 +0100 d14 2 a15 2 --- /dev/null 2008-03-08 09:20:06 +0100 +++ newaliases.8 2008-03-08 09:14:11 +0100 d35 2 a36 2 --- ssmtp.c.orig 2008-03-06 21:01:22 +0100 +++ ssmtp.c 2008-03-08 09:19:59 +0100 d128 2 a129 2 @@@@ -353,7 +355,7 @@@@ char *p; d134 1 d136 2 a137 3 /* Any line beginning with a dot has an additional dot inserted; @@@@ -386,7 +388,7 @@@@ d146 1 a146 1 @@@@ -516,7 +518,7 @@@@ d155 1 a155 1 @@@@ -573,7 +575,7 @@@@ d164 1 a164 1 @@@@ -581,7 +583,7 @@@@ d173 1 a173 1 @@@@ -673,7 +675,7 @@@@ d182 1 a182 1 @@@@ -738,7 +740,7 @@@@ d191 1 a191 1 @@@@ -773,9 +775,9 @@@@ d203 1 a203 1 @@@@ -806,9 +808,9 @@@@ d215 1 a215 1 @@@@ -841,10 +843,12 @@@@ d230 1 a230 1 @@@@ -873,7 +877,7 @@@@ d239 1 a239 1 @@@@ -1301,7 +1305,7 @@@@ d248 1 a248 1 @@@@ -1714,7 +1718,7 @@@@ d257 1 a257 1 @@@@ -2043,7 +2047,7 @@@@ @ 1.10 log @work around suse10.1 "conflicting types" build error and fix various amd64 "cast pointer to integer" warnings @ text @d2 2 a3 2 --- Makefile.in.orig 2004-07-26 07:32:18 +0200 +++ Makefile.in 2007-09-19 13:47:03 +0200 a12 23 @@@@ -36,7 +36,7 @@@@ -DREVALIASES_FILE=\"$(REVALIASES_FILE)\" \ -CFLAGS=-Wall @@DEFS@@ $(EXTRADEFS) @@CFLAGS@@ +CFLAGS=@@DEFS@@ $(EXTRADEFS) @@CFLAGS@@ .PHONY: all all: ssmtp Index: arpadate.c --- arpadate.c.orig 2002-12-08 18:30:11 +0100 +++ arpadate.c 2007-09-19 13:46:41 +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); d14 2 a15 2 --- /dev/null 2007-09-19 13:46:47 +0200 +++ newaliases.8 2007-09-19 13:46:41 +0200 a33 27 Index: ssmtp.8 --- ssmtp.8.orig 2002-09-27 14:48:59 +0200 +++ ssmtp.8 2007-09-19 13:46:41 +0200 @@@@ -1,4 +1,4 @@@@ -.TH SSMTP 8 "Last change: 5 February 2000" +.TH SSMTP 8 "Last change: 4 February 2005" .SH NAME ssmtp, sendmail \- send a message using smtp .SH SYNOPSIS @@@@ -103,7 +103,7 @@@@ .TP \fB\-C\fP\fIfile\fP -(ignored) Use alternate configuration file. +Use alternate configuration file. .TP \fB\-d\fP\fIX\fP @@@@ -273,7 +273,7 @@@@ /etc/ssmtp/revaliases - reverse aliases file .SH SEE ALSO -RFC821, RFC822. +RFC821, RFC822, ssmtp.conf(5). .SH AUTHORS Matt Ryan (mryan@@debian.org) d35 5 a39 153 --- ssmtp.c.orig 2004-07-23 07:58:48 +0200 +++ ssmtp.c 2007-09-19 13:46:41 +0200 @@@@ -12,8 +12,10 @@@@ See COPYRIGHT for the license */ -#define VERSION "2.60.4" +#define VERSION "2.61" +#define _GNU_SOURCE +#include #include #include #include @@@@ -150,7 +152,7 @@@@ if(isatty(fileno(stdin))) { if(log_level > 0) { log_event(LOG_ERR, - "stdin is a TTY - not saving to %s/dead.letter, pw->pw_dir"); + "stdin is a TTY - not saving to %s/dead.letter", pw->pw_dir); } return; } @@@@ -242,7 +244,7 @@@@ char *p; p = str; - while(*p && isspace(*p)) p++; + while(*p && isspace((int)(*p))) p++; return(p); } @@@@ -255,7 +257,7 @@@@ char *p; p = (str + strlen(str)); - while(isspace(*--p)) { + while(isspace((int)(*--p))) { *p = (char)NULL; } @@@@ -580,7 +582,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 +729,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 2007-09-19 13:46:47 +0200 +++ ssmtp.conf.5 2007-09-19 13:46:41 +0200 @@@@ -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. workaround amd64-suse10.1 error: conflicting types for 'basename' fix amd64-suse10.1 warnings: cast from pointer to integer of different size Index: ssmtp.c --- ssmtp.c.orig 2007-09-20 08:27:18.000000000 +0200 +++ ssmtp.c 2007-09-20 08:45:24.000000000 +0200 @@@@ -40,6 +40,9 @@@@ #endif #include "ssmtp.h" d44 1 a44 1 d47 2 a48 1 @@@@ -56,20 +59,20 @@@@ d62 1 a62 1 char hostname[MAXHOSTNAMELEN] = "localhost"; d74 1 d76 1 d80 5 a84 1 @@@@ -217,7 +220,7 @@@@ d91 1 a91 1 char buf[MAXPATHLEN +1], *p; d93 1 a93 6 @@@@ -231,7 +234,7 @@@@ die("basename() -- strncpy() failed"); } } - buf[MAXPATHLEN] = (char)NULL; + buf[MAXPATHLEN] = NUL; d95 1 a95 1 return(strdup(buf)); d97 5 a101 1 @@@@ -258,7 +261,7 @@@@ d104 1 a104 1 while(isspace((int)(*--p))) { d110 10 a119 1 @@@@ -307,7 +310,7 @@@@ d128 1 a128 1 @@@@ -350,7 +353,7 @@@@ d137 1 a137 1 @@@@ -383,7 +386,7 @@@@ d146 1 a146 1 @@@@ -513,7 +516,7 @@@@ d155 1 a155 1 @@@@ -570,7 +573,7 @@@@ d164 1 a164 1 @@@@ -578,7 +581,7 @@@@ d173 1 a173 1 @@@@ -670,7 +673,7 @@@@ d182 1 a182 1 @@@@ -731,7 +734,7 @@@@ d184 1 a184 1 char *p = (char *)NULL, *q = (char *)NULL; d191 1 a191 1 @@@@ -766,9 +769,9 @@@@ d203 29 a231 2 @@@@ -798,7 +801,7 @@@@ while(fgets(buf, sizeof(buf), fp)) { d239 1 a239 1 @@@@ -1181,7 +1184,7 @@@@ d248 1 a248 1 @@@@ -1551,7 +1554,7 @@@@ d257 1 a257 1 @@@@ -1867,7 +1870,7 @@@@ d264 2 a265 3 if(gethostname(hostname, MAXHOSTNAMELEN) == -1) { die("Cannot get the name of this machine"); @ 1.9 log @some cleanups @ text @d229 194 @ 1.8 log @take over ssmtp.conf(5) and newaliaes(8) manual pages from Debian; install newaliases link; use the alioth.debian.org project page as the home URL @ text @d3 1 a3 1 +++ Makefile.in 2005-06-08 20:27:54 +0200 d13 9 d24 1 a24 1 +++ arpadate.c 2005-06-08 20:28:58 +0200 d36 48 d86 4 a89 2 +++ ssmtp.c 2005-06-08 20:27:54 +0200 @@@@ -14,6 +14,7 @@@@ d91 3 a93 1 #define VERSION "2.60.4" d99 10 a108 1 @@@@ -242,7 +243,7 @@@@ d117 1 a117 1 @@@@ -255,7 +256,7 @@@@ d126 1 a126 1 @@@@ -580,7 +581,7 @@@@ d135 1 a135 1 @@@@ -727,7 +728,7 @@@@ d145 2 a146 2 --- /dev/null +++ ssmtp.conf.5 a228 21 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 , +for the Debian GNU/Linux system. Minor fixes by Matt Ryan @ 1.7 log @The "%z" format is a platform specific extension while "%Z" is actually ISO/IEC 9899:1990 (ISO C90) conforming and its output, although not RFC822 conforming, is actually RFC2822 (which obsoletes RFC822) conforming. So, get rid of any platform specifics at all. @ text @d74 106 @ 1.7.6.1 log @MFC: take over ssmtp.conf(5) and newaliaes(8) manual pages from Debian; install newaliases link; use the alioth.debian.org project page as the home URL @ text @a73 106 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 , +for the Debian GNU/Linux system. Minor fixes by Matt Ryan @ 1.6 log @fix wrong ifdef @ text @d3 1 a3 1 +++ Makefile.in 2005-06-08 14:56:02 +0200 d15 3 a17 2 +++ arpadate.c 2005-06-08 15:12:49 +0200 @@@@ -79,7 +79,11 @@@@ d20 1 a20 1 /* RFC822 format string borrowed from GNU shellutils date.c */ d22 1 a22 1 +#ifdef __sun a23 3 +#else + const char *format = "%a, %d %b %Y %H:%M:%S %z"; +#endif d29 1 a29 1 +++ ssmtp.c 2005-06-08 14:56:02 +0200 @ 1.5 log @fixed incompatibilities in strftime for SunOS @ text @d21 1 a21 1 +#ifdef __SUNOS__ @ 1.4 log @fixed broken date string @ text @d1 28 d30 2 a31 2 --- ssmtp.c.orig 2004-04-23 13:14:20.000000000 +0200 +++ ssmtp.c 2004-05-07 21:10:12.000000000 +0200 d67 1 a67 1 @@@@ -728,7 +729,7 @@@@ a75 24 Index: Makefile.in --- Makefile.in.orig 2003-01-28 23:30:51.000000000 +0100 +++ Makefile.in 2004-05-07 21:26:11.000000000 +0200 @@@@ -15,7 +15,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 2004-12-09 11:11:16 +0100 @@@@ -79,7 +79,7 @@@@ time_t now; /* RFC822 format string borrowed from GNU shellutils date.c */ - const char *format = "%a, %_d %b %Y %H:%M:%S %z"; + const char *format = "%a, %d %b %Y %H:%M:%S %z"; now = time(NULL); @ 1.3 log @cleanups and optional SSL support @ text @d60 12 @ 1.2 log @upgrading package: ssmtp 2.48 -> 2.60.8 @ text @d48 12 @ 1.1 log @fix building under Solaris @ text @d1 30 a30 13 --- ssmtp.c.orig 2002-08-21 13:36:01.000000000 +0200 +++ ssmtp.c 2002-08-21 13:36:01.000000000 +0200 @@@@ -18,6 +18,7 @@@@ #include #include #include +#include #include #include @@@@ -123,7 +124,7 @@@@ if((sd = strdup(buf)) == NULL) { die("strup() failed in get_addr()"); a31 2 - while(*sd && isspace(*sd)) sd++; + while(*sd && isspace((int)(*sd))) sd++; d33 3 a35 18 if(strncpy(buf, sd, sz) == NULL) { die("strncpy() failed in get_addr()"); @@@@ -132,7 +133,7 @@@@ /* Strip trailing spaces */ i = strlen(buf); while(i-- > 0) { - if(isspace(buf[i]) == 0) break; + if(isspace((int)buf[i]) == 0) break; } buf[(i + 1)] = (char)NULL; } @@@@ -171,7 +172,7 @@@@ *p = (char)NULL; } - while(*str && isspace(*str)) str++; + while(*str && isspace((int)(*str))) str++; get_addr(str, buf, BUF_SZ); d37 11 a47 1 str = (p + 1); @ 1.1.8.1 log @Fix Format String Security Vulnerability CAN-2004-0156; OpenPKG-SA-2004.020-ssmtp @ text @a37 27 ----------------------------------------------------------------------------- Fix Format String Security Vulnerability CAN-2004-0156; OpenPKG-SA-2004.020-ssmtp Index: logging.c --- logging.c.orig 2001-07-30 13:40:52.000000000 +0200 +++ logging.c 2004-05-07 21:38:28.000000000 +0200 @@@@ -42,7 +42,7 @@@@ #else openlog("sSMTP", LOG_PID, LOG_MAIL); #endif - syslog(priority, buf); + syslog(priority, "%s", buf); closelog(); #endif } @@@@ -113,7 +113,7 @@@@ va_end(ap); (void)fprintf(stderr, "%s: %s\n", ProgName, buf); - log_event(LOG_ERR, buf); + log_event(LOG_ERR, "%s", buf); /* Send message to dead.letter */ (void)dead_letter(); @ 1.1.10.1 log @Fix Format String Security Vulnerability CAN-2004-0156; OpenPKG-SA-2004.020-ssmtp @ text @a37 27 ----------------------------------------------------------------------------- Fix Format String Security Vulnerability CAN-2004-0156; OpenPKG-SA-2004.020-ssmtp Index: logging.c --- logging.c.orig 2001-07-30 13:40:52.000000000 +0200 +++ logging.c 2004-05-07 21:38:28.000000000 +0200 @@@@ -42,7 +42,7 @@@@ #else openlog("sSMTP", LOG_PID, LOG_MAIL); #endif - syslog(priority, buf); + syslog(priority, "%s", buf); closelog(); #endif } @@@@ -113,7 +113,7 @@@@ va_end(ap); (void)fprintf(stderr, "%s: %s\n", ProgName, buf); - log_event(LOG_ERR, buf); + log_event(LOG_ERR, "%s", buf); /* Send message to dead.letter */ (void)dead_letter(); @