Commit 004199a4 authored by sikeda's avatar sikeda
Browse files

[change] (r12172) Move $sbindir/smtpc to $libexecdir/sympa_smtpc and restrict...

[change] (r12172) Move $sbindir/smtpc to $libexecdir/sympa_smtpc and restrict access permission only to sympa user.  Below is revised commit log message.

--------

[feature] [experimental] sympa_smtpc is the mail submission program aiming to be an alternative to sendmail(1) utility with smaller footprint (Note that this program needs SMTP/LMTP server relaying submitted messages).

It also supports some SMTP extensions several clones of sendmail (and partly original one) have not been supported:
- DSN extension - As of Sympa 6.2, message tracking feature requires it.
- SMTPUTF8 extension - As of planned Sympa 7.0, email address internationalization (EAI) feature presumes it.

To use sympa_smtpc as replacement of sendmail, add sympa.conf the lines:
  sendmail      /path/to/sympa_smtpc
  sendmail_args --esmtp <host name of relaying server>
or with LMTP server:
  sendmail      /path/to/sympa_smtpc
  sendmail_args --lmtp <socket path of relaying server>


git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-6.2-branch@12180 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
parent d46d6ce6
......@@ -81,6 +81,11 @@ authorcheck:
$(PERL) -MTest::Harness -e 'runtests @ARGV' $$TEST_FILES
install-data-hook: installdir installconfig nextstep importantchanges
if SMTPC
-chown $(USER) $(DESTDIR)$(libexecdir)/sympa_smtpc
-chgrp $(GROUP) $(DESTDIR)$(libexecdir)/sympa_smtpc
-chmod 750 $(DESTDIR)$(libexecdir)/sympa_smtpc
endif
installdir:
@echo "Creating plugin directory"
......
......@@ -599,5 +599,9 @@ AC_CONFIG_FILES([
src/sbin/Makefile
www/Makefile
])
AC_CONFIG_SUBDIRS([src/smtpc])
SMTPC_CONFIGURE_OPTIONS="--bindir=$libexecdir --program-prefix=sympa_"
export SMTPC_CONFIGURE_OPTIONS
AC_OUTPUT
......@@ -2,7 +2,7 @@
ACLOCAL_AMFLAGS = -I m4
sbin_PROGRAMS = smtpc
bin_PROGRAMS = smtpc
smtpc_SOURCES = \
smtpc.c \
sockstr.c \
......@@ -11,8 +11,8 @@ smtpc_SOURCES = \
utf8.h
man1_MANS = smtpc.1
EXTRA_DIST = smtpc.1.in
CLEANFILES = $(sbin_PROGRAMS) *~ *.bak core.*
EXTRA_DIST = configure.gnu smtpc.1.in
CLEANFILES = $(bin_PROGRAMS) *~ *.bak core.*
smtpc.o: sockstr.h utf8.h
# $Id$
args=
for arg; do
case "$arg" in
*\'*)
arg=`cat <<EOF | sed -e "s/'/'\\''/g"`
$arg
EOF
;;
*)
;;
esac
args="$args '$arg'"
done
cat <<EOF
configure.gnu: running ./configure $args $SMTPC_CONFIGURE_OPTIONS
EOF
eval "./configure $args $SMTPC_CONFIGURE_OPTIONS"
......@@ -162,6 +162,7 @@ fi
%attr(-,sympa,sympa) %{_libexecdir}/sympa/familyqueue
%attr(-,sympa,sympa) %{_libexecdir}/sympa/queue
%attr(-,root,sympa) %{_libexecdir}/sympa/sympa_newaliases-wrapper
%attr(-,sympa,sympa) %{_libexecdir}/sympa/sympa_smtpc
%attr(-,sympa,sympa) %{_libexecdir}/sympa/sympa_soap_server-wrapper.fcgi
%{_libexecdir}/sympa/sympa_soap_server.fcgi
%attr(-,sympa,sympa) %{_libexecdir}/sympa/wwsympa-wrapper.fcgi
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment