debian/0000755000000000000000000000000011764620420007170 5ustar debian/masqmail.logrotate0000644000000000000000000000030211760573666012730 0ustar /var/log/masqmail/masqmail.log /var/log/masqmail/debug.log { rotate 2 weekly compress delaycompress missingok notifempty postrotate /etc/init.d/masqmail reload > /dev/null endscript } debian/source/0000755000000000000000000000000011760573666010507 5ustar debian/source/format0000644000000000000000000000001411760573666011715 0ustar 3.0 (quilt) debian/masqmail.docs0000644000000000000000000000023011764123301011635 0ustar AUTHORS NEWS README TODO docs/FAQ docs/howto-report-bugs docs/oem-option docs/ppp-setup docs/simple-local-setup docs/simple-relay-setup docs/uucp-setup debian/masqmail.conf0000644000000000000000000000252011761460521011643 0ustar # The name with which masqmail identifies itself to others: host_name="/etc/mailname" # The following is an example configuration for masqmail # accept connections on these interfaces: # Change this to something like: "localhost:25;foo:25" if other machines # on your network shall be able to connect to masqmail. #listen_addresses="localhost:25" # use syslogd for logs? #use_syslog=false # online detection: # # To simulate the old online_method=file, use: #online_query = "/bin/cat /var/tmp/masqmail-route" # To be always online with connection `foo', use: #online_query = "/bin/echo foo" # example for local delivery to an mda: # #mbox_default=mda #mda="/usr/bin/procmail -Y -d ${rcpt_local}" # alias expansion: # #alias_file = "/etc/aliases" #caseless_matching = true # routes # CHANGING THIS IS REQUIRED to send mail to NON-LOCAL destinations. # To set up an always available route (e.g. for a local network): # See example at: /usr/share/doc/masqmail/examples/localnet.route #permanent_routes = "/etc/masqmail/foo.route" # You can use as many routes (one for each provider) as you like: # See example at: /usr/share/doc/masqmail/examples/example.route #query_routes.example = "/etc/masqmail/example.route" # you can also give a list of routes for a single connection: #query_routes.foobar = "/etc/masqmail/foo.route;/etc/masqmail/bar.route" debian/masqmail.manpages0000644000000000000000000000010511761064117012507 0ustar debian/mailq.8 debian/mailrm.8 debian/newaliases.8 debian/sendmail.8 debian/Makefile.in0000644000000000000000000001633411760573666011263 0ustar # Makefile.in generated by automake 1.7.9 from Makefile.am. # @configure_input@ # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 # Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BASE64_LIBS = @BASE64_LIBS@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GREP = @GREP@ IDENT_LIBS = @IDENT_LIBS@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LOCKFILE_LIBS = @LOCKFILE_LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MD5_LIBS = @MD5_LIBS@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ RANLIB = @RANLIB@ RESOLV_LIBS = @RESOLV_LIBS@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_LIBLOCKFILE = @USE_LIBLOCKFILE@ VERSION = @VERSION@ ac_ct_CC = @ac_ct_CC@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ bindir = @bindir@ build_alias = @build_alias@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ has_ident = @has_ident@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ with_confdir = @with_confdir@ with_group = @with_group@ with_logdir = @with_logdir@ with_spooldir = @with_spooldir@ with_user = @with_user@ EXTRA_DIST = \ README.Debian \ README.online \ changelog \ control \ copyright \ dirs \ docs \ mailq.8 \ mailrm.8 \ masqmail.config \ masqmail.init \ masqmail.ip-up \ masqmail.links \ masqmail.logrotate \ masqmail.templates \ newaliases \ newaliases.8 \ postinst \ postrm \ preinst \ rules \ sendmail.8 \ masqmail.lintian subdir = debian ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = DIST_SOURCES = DIST_COMMON = $(srcdir)/Makefile.in Makefile.am TODO all: all-am .SUFFIXES: $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4) cd $(top_srcdir) && \ $(AUTOMAKE) --gnu debian/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) uninstall-info-am: tags: TAGS TAGS: ctags: CTAGS CTAGS: DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) top_distdir = .. distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkinstalldirs) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: info: info-am info-am: install-data-am: install-exec-am: install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am .PHONY: all all-am check check-am clean clean-generic distclean \ distclean-generic distdir dvi dvi-am info info-am install \ install-am install-data install-data-am install-exec \ install-exec-am install-info install-info-am install-man \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic pdf pdf-am ps ps-am uninstall uninstall-am \ uninstall-info-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: debian/masqmail.install0000644000000000000000000000017611761621726012377 0ustar admin/guess-hostname admin/config-transition /usr/lib/masqmail debian/newaliases /usr/bin debian/masqmail.conf /etc/masqmail debian/patches/0000755000000000000000000000000011764124062010620 5ustar debian/patches/series0000644000000000000000000000015211761460522012034 0ustar 00_need-the-uucp-group-to-be-trusted-too.patch 00_adjusted-upstream-build-system-to-packaging-needs.patch debian/patches/00_adjusted-upstream-build-system-to-packaging-needs.patch0000644000000000000000000000715211764124062023663 0ustar dont install run_dir, log_dir, spool_dir and side effect upstream documentation dont replace the sendmail path Index: masqmail-0.3.40/Makefile.am =================================================================== --- masqmail-0.3.40.orig/Makefile.am 2012-05-29 19:07:58.000000000 +0200 +++ masqmail-0.3.40/Makefile.am 2012-06-07 14:57:48.948006720 +0200 @@ -2,7 +2,7 @@ SUBDIRS = src man -install-data-local: log_dir spool_dir uid_bit conf_dir tpl_dir run_dir doc_dir rmail +install-data-local: uid_bit conf_dir tpl_dir run_dir doc_dir rmail uninstall-local: rm-rmail rm-doc_dir rm-tpl_dir rm-conf_dir rm-run_dir rm-spool_dir rm-log_dir @@ -25,20 +25,18 @@ doc_dir: install -d $(DESTDIR)@docdir@ - cp -r docs $(DESTDIR)@docdir@ cp -r examples $(DESTDIR)@docdir@ - cp ChangeLog NEWS AUTHORS COPYING README TODO INSTALL THANKS $(DESTDIR)@docdir@ + cp NEWS AUTHORS README TODO THANKS $(DESTDIR)@docdir@ rm-doc_dir: cd $(DESTDIR)@docdir@ && ( \ - rm -rf docs examples ; \ - rm -f ChangeLog NEWS AUTHORS COPYING README TODO INSTALL THANKS ; \ + rm -rf examples ; \ + rm -f NEWS AUTHORS README TODO THANKS ; \ ) rmdir $(DESTDIR)@docdir@ run_dir: - install -d -o @with_user@ -g @with_group@ $(DESTDIR)/var/run/masqmail rm-run_dir: rm -rf $(DESTDIR)/var/run/masqmail @@ -65,9 +63,7 @@ rmail: [ -d "$(DESTDIR)@prefix@/sbin" ] || mkdir -p "$(DESTDIR)@prefix@/sbin" - sed '/^SENDMAIL/s,/usr/sbin/sendmail,$(DESTDIR)@prefix@/sbin/masqmail,'\ - admin/rmail >$(DESTDIR)@prefix@/sbin/rmail - chmod 755 $(DESTDIR)@prefix@/sbin/rmail + install -m 755 admin/rmail $(DESTDIR)@prefix@/sbin/rmail rm-rmail: rm -f $(DESTDIR)@prefix@/sbin/rmail Index: masqmail-0.3.40/Makefile.in =================================================================== --- masqmail-0.3.40.orig/Makefile.in 2012-05-29 19:07:58.000000000 +0200 +++ masqmail-0.3.40/Makefile.in 2012-06-07 14:58:23.928179390 +0200 @@ -34,7 +34,7 @@ subdir = . DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/config.h.in \ - $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \ + $(top_srcdir)/configure AUTHORS NEWS \ THANKS TODO acconfig.h config.guess config.sub depcomp \ install-sh missing mkinstalldirs ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 @@ -689,7 +689,7 @@ uninstall uninstall-am uninstall-local -install-data-local: log_dir spool_dir uid_bit conf_dir tpl_dir run_dir doc_dir rmail +install-data-local: uid_bit conf_dir tpl_dir run_dir doc_dir rmail uninstall-local: rm-rmail rm-doc_dir rm-tpl_dir rm-conf_dir rm-run_dir rm-spool_dir rm-log_dir @@ -709,19 +709,17 @@ doc_dir: install -d $(DESTDIR)@docdir@ - cp -r docs $(DESTDIR)@docdir@ cp -r examples $(DESTDIR)@docdir@ - cp ChangeLog NEWS AUTHORS COPYING README TODO INSTALL THANKS $(DESTDIR)@docdir@ + cp NEWS AUTHORS README TODO THANKS $(DESTDIR)@docdir@ rm-doc_dir: cd $(DESTDIR)@docdir@ && ( \ - rm -rf docs examples ; \ - rm -f ChangeLog NEWS AUTHORS COPYING README TODO INSTALL THANKS ; \ + rm -rf examples ; \ + rm -f NEWS AUTHORS README TODO INSTALL THANKS ; \ ) rmdir $(DESTDIR)@docdir@ run_dir: - install -d -o @with_user@ -g @with_group@ $(DESTDIR)/var/run/masqmail rm-run_dir: rm -rf $(DESTDIR)/var/run/masqmail @@ -746,9 +744,7 @@ rmail: [ -d "$(DESTDIR)@prefix@/sbin" ] || mkdir -p "$(DESTDIR)@prefix@/sbin" - sed '/^SENDMAIL/s,/usr/sbin/sendmail,$(DESTDIR)@prefix@/sbin/masqmail,'\ - admin/rmail >$(DESTDIR)@prefix@/sbin/rmail - chmod 755 $(DESTDIR)@prefix@/sbin/rmail + install -m 755 admin/rmail $(DESTDIR)@prefix@/sbin/rmail rm-rmail: rm -f $(DESTDIR)@prefix@/sbin/rmail debian/patches/00_need-the-uucp-group-to-be-trusted-too.patch0000644000000000000000000000067711763652763021257 0ustar uncomment the lines needed to set the `uucp' group to be trusted too --- a/src/permissions.c +++ b/src/permissions.c @@ -54,12 +54,12 @@ is_privileged_user(uid_t uid) { /* uncomment these lines if you need the `uucp' group to be trusted too + */ struct group *grent = getgrnam("uucp"); if (is_ingroup(uid, grent->gr_gid)) { return TRUE; } - */ return (uid == 0) || (uid == conf.mail_uid) || (is_ingroup(uid, conf.mail_gid)); } debian/mailq.80000644000000000000000000000002411760573666010377 0ustar .so man8/masqmail.8 debian/masqmail.postinst0000644000000000000000000000164011764124473012611 0ustar #!/bin/sh set -e dpkg-maintscript-helper rm_conffile \ /etc/ppp/ip-up.d/1masqmail "0.3.4-1~" -- "$@" dpkg-maintscript-helper rm_conffile \ /etc/ppp/ip-down.d/99masqmail "0.3.4-1~" -- "$@" dpkg-maintscript-helper rm_conffile \ /etc/network/if-up.d/1masqmail "0.3.4-1~" -- "$@" dpkg-maintscript-helper rm_conffile \ /etc/network/if-down.d/99masqmail "0.3.4-1~" -- "$@" case "$1" in configure) # Create spool and log directories. install -d -omail -gmail /var/log/masqmail/ install -d -omail -gmail /var/spool/masqmail/ install -d -omail -gmail /var/spool/masqmail/input/ install -d -omail -gmail /var/spool/masqmail/lock/ # Generate /etc/mailname and set default-value if [ ! -f /etc/mailname ]; then hostname -f >/etc/mailname fi if ! grep -qs "\." /etc/mailname; then echo "No FQDN in /etc/mailname." >&2 fi ;; abort-upgrade|abort-remove|abort-deconfigure) ;; esac #DEBHELPER# exit 0 debian/sendmail.80000644000000000000000000000002411760573666011070 0ustar .so man8/masqmail.8 debian/masqmail.postrm0000644000000000000000000000303411764126644012253 0ustar #!/bin/sh # postrm script for test # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `remove' # * `purge' # * `upgrade' # * `failed-upgrade' # * `abort-install' # * `abort-install' # * `abort-upgrade' # * `disappear' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package dpkg-maintscript-helper rm_conffile \ /etc/ppp/ip-up.d/1masqmail "0.3.4-1~" -- "$@" dpkg-maintscript-helper rm_conffile \ /etc/ppp/ip-down.d/99masqmail "0.3.4-1~" -- "$@" dpkg-maintscript-helper rm_conffile \ /etc/network/if-up.d/1masqmail "0.3.4-1~" -- "$@" dpkg-maintscript-helper rm_conffile \ /etc/network/if-down.d/99masqmail "0.3.4-1~" -- "$@" case "$1" in remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; purge) # Delete spool and log directories. rmdir --ignore-fail-on-non-empty /var/log/masqmail/ || true rm -fr /var/spool/masqmail/lock/ rmdir --ignore-fail-on-non-empty /var/spool/masqmail/input/ /var/spool/masqmail/ || true ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/rules0000755000000000000000000000046011764124053010251 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 # Uncomment this to turn on verbose mode. export DEB_BUILD_HARDENING=1 # Enable hardening features. See hardened-cc(1). %: dh $@ override_dh_auto_configure: dh_auto_configure -- \ --with-liblockfile override_dh_fixperms: dh_fixperms -X/usr/sbin/masqmail debian/masqmail.links0000644000000000000000000000022111760573666012050 0ustar /usr/sbin/masqmail /usr/lib/sendmail /usr/sbin/masqmail /usr/sbin/sendmail /usr/sbin/masqmail /usr/bin/mailq /usr/sbin/masqmail /usr/bin/mailrm debian/masqmail.examples0000644000000000000000000000002511763637202012536 0ustar admin/mailq.wmbiffrc debian/README.Debian0000644000000000000000000000160111761460521011230 0ustar Masqmail for Debian ------------------- This is the Debian package of my Masqmail MTA. Masqmail is an MTA specially designed for hosts with intermittent internet connections, i.e. hosts (or networks) at home or notebooks. It has special support for changing providers. Special support for 'changing providers' means individual configurations depending on the current connection to the internet and rewriting of sender addresses. It has been compiled with directory locations adjusted to Debian's policy and the option: --with-liblockfile (ESMTP AUTH support is availabe.) You will find all information necessary to configure Masqmail in the man pages masqmail (8), masqmail.conf (5), masqmail.route (5) and masqmail.aliases (5). Its configuration files are in the directory /etc/masqmail/ and in /etc/aliases. For more information about Masqmail see http://marmaro.de/prog/masqmail debian/mailrm.80000644000000000000000000000002411760573666010555 0ustar .so man8/masqmail.8 debian/changelog0000644000000000000000000005317511761464244011064 0ustar masqmail (0.3.4-1) unstable; urgency=low * New upstream release. (Closes: #349211) * New Maintainer: Steffen Rumberger maintains the package now with the help of Markus Schnalke. * New init-script based on skeleton. - Also converted to lsb fancy boot messages. (Closes: #674666) * Switch to source format 3.0 (quilt) and Debhelper compatibility level 9. * Set Standards-Version to 3.9.3 * No more use of Debconf for the configuration. The new upstream version makes a minimal static configuration file possible. * Fixed removal of user-created data on package purge. * Ifupdown hooks are not installed by default anymore. (Closes: #212852, #661591) * Stop handling inetd. The MTA can assume to have the SMTP port reserved for it. (Closes: #432793) -- Steffen Rumberger Sun, 27 May 2012 14:30:42 +0200 masqmail (0.2.30-1) unstable; urgency=high * New upstream release. (Closes: #638002) * Improved (fixed) watch file. * Closing information ``bug'' from previous NMU. (Closes: #610067) * Bumped standards version to 3.9.2. -- markus schnalke Mon, 29 Aug 2011 16:37:02 +0200 masqmail (0.2.27-1.2) unstable; urgency=low * Non-maintainer upload. * Fix encoding of Czech debconf translation. -- Christian Perrier Tue, 11 Jan 2011 21:58:54 +0100 masqmail (0.2.27-1.1) unstable; urgency=low * Non-maintainer upload. * Fix pending l10n issues. Debconf translations: - Czech (Michal Simunek). Closes: #591258 - Danish (Joe Hansen). Closes: #599822 -- Christian Perrier Wed, 17 Nov 2010 20:19:08 +0100 masqmail (0.2.27-1) unstable; urgency=low [ markus schnalke ] * New upstream release. * Updated the version string in configure.ac, which upstream forgot. * Set build depend on autotools-dev and used its scripts to ensure to have recent config.{sub,guess} files. * Suggest the MDA procmail. * Improved the copyright file. * Removed some pedantic lintian infos. Thanks to Jan Hauke Rahm for the hint. * Bumped standards version to 3.9.0. -- markus schnalke Mon, 19 Jul 2010 21:57:12 +0200 masqmail (0.2.24-1) unstable; urgency=low * New upstream release (Closes: #536060, #389731) * New Debconf translation: Spanish by Francisco Javier Cuadrado (Closes: #584864) * Activated a hack to make group `uucp' trusted (Closes: #409912) * Using doc-base now -- markus schnalke Thu, 24 Jun 2010 13:04:02 +0200 masqmail (0.2.21-8) unstable; urgency=low * Debconf translation update: Vietnamese by Clytie Siddall (Closes: #548168) * New debconf translation: Japanese by Hideki Yamane (Closes: #555975) * Bumped standards version to 3.8.4 * Fixed lintian warnings -- markus schnalke Mon, 08 Feb 2010 16:40:26 +0100 masqmail (0.2.21-7.1) unstable; urgency=low * Non-maintainer upload. * Fixed directory to message template files in binary by supplying the datadir to ./configure manually. (Closes: #541297) -- Johann Felix Soden Fri, 27 Nov 2009 22:19:24 +0100 masqmail (0.2.21-7) unstable; urgency=low * Fixed segfault when using pipe online detection (Closes: #533006) -- markus schnalke Sun, 14 Jun 2009 11:41:04 +0200 masqmail (0.2.21-6) unstable; urgency=low * Added check for `hostname -f' error in debconf. (Closes: #416237) * Fixed delivering with empty or non-existent alias files. Thanks to Marcos Dione for the hint where to look. (Closes: #417842) * Fixed typos reported by Reuben Thomas. (Closes: #427096) * Fixed empty or only-whitespace connection names. (Closes: #427095) * Corrected man page about /etc/aliases. Thanks to Alexis. (Closes: #480477) * Closing old bug which is neither in etch nor in lenny. (Closes: #174975) * Added description to init script to remove lintian info. * Debconf templates and debian/control reviewed by the debian-l10n- english team as part of the Smith review project. (Closes: #522252) * [Debconf translation updates] - Swedish by Martin Bagge (Closes: #505794, #523698) - Italian by Vincenzo Campanella (Closes: #524307) - German by Matthias Julius (Closes: #524497) - Russian by Yuri Kozlov (Closes: #505730, #524893) - Portuguese by Traduz (Closes: #504794, #524917) - French by Ivan Buresi (Closes: #504615, #525148, #525397) - Vietnamese by Clytie Siddall (Closes: #513332) - Czech by Tomas Fidler (Closes: #528980) * fixed watch file * fixed lintian errors/warnings * updated to standards version 3.8.1 -- markus schnalke Sun, 24 May 2009 20:23:33 +0200 masqmail (0.2.21-5) unstable; urgency=low * New maintainer (Closes: #452188) * fixed most Lintian warnings * updated to standards version 3.8.0 -- markus schnalke Sun, 28 Sep 2008 21:51:21 +0200 masqmail (0.2.21-4) unstable; urgency=low * QA upload. * Fix maintainer-script-calls-init-script-directly config:161 and use invoke-rc.d instead. * Add patch by Radoslaw Grzanka to improve isdn support (Closes: #224275). * Changed debian/compat from 6 to 4. WTF? -- Amaya Rodrigo Sastre Mon, 03 Mar 2008 19:47:27 +0100 masqmail (0.2.21-3) unstable; urgency=low * QA upload. * Add LSB header to init.d script documenting its dependencies. * Add dependency on update-inetd. Based on patch from Ubuntu. * Make sure init.d script create /var/run/masqmail/ if it is missing, to handle /var/run/ as a tmpfs (Closes: #353948, #376766, #390996). Patch from Zak B. Elep. * Change postinst to use new tail syntax (Closes: #404359) * Acknowledge NMU (Closes: #254720). * Moved debhelper compatibility level from rules to compat. * Upgraded debhelper compatibility level from 3 to 6. * Updated standards-version from 3.5.7 to 7.3.7. No changes needed. * Debconf templates translations: - Portugese by Américo Monteiro (Closes: #434458). -- Petter Reinholdtsen Sun, 13 Jan 2008 01:17:10 +0100 masqmail (0.2.21-2) unstable; urgency=low * QA upload. * Set Maintainer to QA Group. The previous Maintainer email is bouncing. -- Lucas Nussbaum Thu, 10 Jan 2008 09:10:26 +0100 masqmail (0.2.21-1.2) unstable; urgency=low * Non-maintainer upload to fix longstanding l10n issues * Switch to po-debconf for debconf templates. Closes: #235493 * Rewrite debconf templates to better fit the Developer's Reference write style recommendations * Removed annoying debconf notes: - masqmail/note_moved_tpl and masqmail/note_pcmcia_scripts are useless as taking care of a now unsupported upgrade path - masqmail/you_are_not_finished is blatant debconf abuse, sorry. This closes: #388928 * Removed typo in the package description. Closes: #300010 * Removed bashism in the clean target of the debian/rules file * Removed bashisms in Makefile files. Closes: #379711 * Debconf templates translations: - Vietnamese added. Sent during the call for updates of the NMU campaign - Russian added. Sent during the call for updates of the NMU campaign - Czech added. Sent during the call for updates of the NMU campaign - French added. Sent during the call for updates of the NMU campaign - German added. Sent during the call for updates of the NMU campaign -- Christian Perrier Sun, 26 Nov 2006 15:06:53 +0100 masqmail (0.2.21-1.1) unstable; urgency=low * Non-maintainer upload. * Fix configure.ac to prevent FTBFS (closes: 254720). (NMU allowed by developper, so no delayed queue) -- Pierre Habouzit Fri, 7 Apr 2006 17:08:57 +0200 masqmail (0.2.21-1) unstable; urgency=low * security fixes (closes: #329307) - do not use shell when executing sub programs - do not accept backtick in email adresses - write log files as 'mail' user * changed default online status file to /var/run/masqmail/masqmail-route (closes: #332841) * depend on debconf | debconf-2.0 (closes: #332023) * add debug.log to logrotate script (closes: #332960) * fix typo in templates ('failure') (closes: #224273) * use glib2 instead of old glib1.2 (closes: #337921) * use /var/run/masqmail for pid files -- Oliver Kurth Mon, 07 Nov 2005 14:09:21 -0800 masqmail (0.2.20-1) unstable; urgency=low * new upstream version * regard connect_error_fail when failing for pipes (closes: #186364) -- Oliver Kurth Tue, 03 Jun 2003 17:56:07 +0200 masqmail (0.2.19-1) unstable; urgency=low * new upstream version (closes: #182950) * fixed typos (closes: #171780, #178752) * added IFUP_IFACES to /etc/default/masqmail * changed maintainer address to oku@debian.org -- Oliver Kurth Wed, 12 Mar 2003 21:33:53 +0100 masqmail (0.2.18-1) unstable; urgency=low * new upstream version (delivery delay warnings also if connection fails) * fixed typo in man page (Closes: #171813) -- Oliver Kurth Mon, 02 Dec 2002 16:38:22 +0100 masqmail (0.2.17-1) unstable; urgency=low * new upstream version (delivery delay warnings) -- Oliver Kurth Thu, 28 Nov 2002 15:05:53 +0100 masqmail (0.2.16-1) unstable; urgency=low * new upstream version (debugging works again) -- Oliver Kurth Tue, 12 Nov 2002 17:27:13 +0100 masqmail (0.2.15-1) unstable; urgency=low * new upstream version, other changes see ChangeLog * security fixes (buffer overflows) -- Oliver Kurth Wed, 06 Nov 2002 13:27:39 +0100 masqmail (0.2.14-1) unstable; urgency=low * new upstream version, other changes see ChangeLog * included examples for the route locations in masqmail.conf (Closes: #166207) * removed bashisms from debian/masqmail.config (== -> =) * remote_port option works again (Closes: #163850) (but it is marked as deprecated) -- Oliver Kurth Wed, 16 Oct 2002 17:51:40 +0200 masqmail (0.2.11-2) unstable; urgency=low * ip-up scripts: chmod online file only if it exists * ip-up scripts: swapped -go and -qo (brain dead bug :-(, closes: #158385) * init script: tell which services are started/stopped (all of these were noted by Christop Hertel. Thanx :-)) * removed quotes from daemon args in init script (closes: #157164) (somehow this bug reappeared) -- Oliver Kurth Thu, 15 Aug 2002 21:43:24 +0200 masqmail (0.2.11-1) unstable; urgency=low * removed quotes from daemon args in init script * deleted emacs local variables from bottom of this file. * new upstream version, other changes see ChangeLog (closes: #155021) -- Oliver Kurth Mon, 5 Aug 2002 22:12:44 +0200 masqmail (0.2.10-2) unstable; urgency=low * call /etc/init.d/masqmail stop in config, so service is stopped when called with dpkg-reconfigure (closes: #151528) * removed call to message, do not try to write masqmail.conf if user does not want to move it away (closes: #151549) * remove superfluous 'fi' in ip-up script -- Oliver Kurth Mon, 1 Jul 2002 21:44:57 +0200 masqmail (0.2.10-1) unstable; urgency=low * make ip-up scripts useful also for detect methods other than file * Added a note for the deprecated /etc/pcmcia/ip-up.d/ scripts. * use debconf * rewrote init and /etc/ppp/ip-up.d/ scripts, removed /etc/pcmcia/ip-up.d/ scripts and added /etc/network/if-up.d/ scripts (closes: #145500) (Thanks, Ben Low :-)) * new file README.online, which describes various methods for online detection * new upstream version, other changes see ChangeLog -- Oliver Kurth Thu, 27 Jun 2002 12:36:49 +0200 masqmail (0.2.9-1) unstable; urgency=low * use dpkg --compare-versions in preinst for upgrades from very old versions. * fixed segfault when called with -t (closes: #147890) * pipe output for reloading masqmail to /dev/null (closes: #146704) * listen only on localhost:25 by default (closes: #134384) * added mbox_default=mda in conf file (closes: #143592) * new upstream version, other changes see ChangeLog -- Oliver Kurth Fri, 24 May 2002 16:26:40 +0200 masqmail (0.2.8-1) unstable; urgency=low * New maintainer: oku@masqmail.cx, sponsored by Thimo Neubauer * new upstream version, (closes: #100594), other changes see ChangeLog * uses ESMTP LOGIN (closes: #129795) * use /etc/mailname for host_name (closes: #134385) * get daemon (closes: #134422) * uncommented alias_file option (closes: #136653) -- Oliver Kurth Mon, 8 Apr 2002 01:00:02 +0200 masqmail (0.1.16-2) unstable; urgency=low * Orphan the package (maintainer set to qa@packages.debian.org). * src/connect.c: If last character of hostname is a digit, we conclude that the hostname will be an IP address (closes: #138124). * Make masqmail use /var/mail instead of /var/spool/mail (closes: #134383). -- Gregor Hoffleit Tue, 26 Mar 2002 09:53:43 +0100 masqmail (0.1.16-1) unstable; urgency=low * New upstream version: bug fixes: - PowerPC fix for varargs functions - g_free fix in src/conf.c -- Gregor Hoffleit Mon, 31 Dec 2001 18:02:29 +0100 masqmail (0.1.15-1) unstable; urgency=low * New upstream version: this is a security fix release. When an alias expansion expands to a pipe, only the effective uid was changed to mail, but not the real uid. This way, a command could gain root privileges. This is no longer possible, masqmail drops prvileges completely before executing the pipe command (closes: #102092). * src/conf.c: Correct a typo (bugfix from upstream). Maybe this fixes the spurious segfault on m68k (#100594). * Add a dependency on netbase (closes: #101273). * Don't install the example configuration file for masqmail.conf in /etc/masqmail/, it's available in /usr/share/doc/masqmail/examples (closes: #101457). -- Gregor Hoffleit Thu, 19 Jul 2001 22:57:13 +0200 masqmail (0.1.14-1) unstable; urgency=low * New upstream version: - correct error reply for lacking permissions (closes: #92894, was already fixed in 0.1.13-2). - fixed 'last line missing' bug - fixed spool locking bug: lock was deleted if unsuccessful (unlocking it) -- Gregor Hoffleit Fri, 27 Apr 2001 21:09:51 +0200 masqmail (0.1.13-2) unstable; urgency=low * Change priority from optional to extra. -- Gregor Hoffleit Fri, 6 Apr 2001 16:07:36 +0200 masqmail (0.1.13-1) unstable; urgency=low * New upstream version: - qualify address for get configuration. - better checking for valid From: address when retrieving mail via pop3 and this is used as the return path. -- Gregor Hoffleit Wed, 28 Mar 2001 23:09:06 +0200 masqmail (0.1.12-1) unstable; urgency=low * New upstream version e.g.: - support for pipes in routes - a wrapper can now be used for POP and SMTP - an MDA for local mail delivery can be used - bug fixes For a complete list of changes since 0.1.7, see changelog and NEWS. * Add a patch by Edouard G. Parmelan : - run daemon in queue mode. - add support for PPP and PCMCIA startup scripts. - add /etc/logrotate.d script. - suggests logrotate. -- Gregor Hoffleit Wed, 14 Mar 2001 21:31:31 +0100 masqmail (0.1.7-2) unstable; urgency=low * Add debhelper to Build-Depends (closes: #76380). -- Gregor Hoffleit Mon, 6 Nov 2000 20:59:16 +0100 masqmail (0.1.7-1) unstable; urgency=low * New upstream version: - debug option can be changed for privileged users only - fixed a security hole: -C option for unprivileged users now implies run_as_user and drops _all_ privileges - environment variables for pipe transport - wildcards for map_* options - rearranged interface handling, IP addresses now possible for listen_addresses and mserver_iface - beautified masqmail.c - revised uid and gid settings in spool.c and local.c (pipe transport) - optionally use ident protocol (RFC 1413) and store user id in spool file - proper spool file locking * i.e. the new upstream version includes fixes for the security problems tackled in 0.1.6-2. * We have compiled with libident support (--enable-ident). -- Gregor Hoffleit Sun, 22 Oct 2000 09:37:56 +0200 masqmail (0.1.6-2) unstable; urgency=low * Security bugfix: An unprivileged user could use masqmail -C' (use alternative configuration file) and/or -d' (enable debug output) for exploits. We disable these options for non-privileged users (#74422 will be closed by the upload of 0.0.12-3 to stable). -- Gregor Hoffleit Sun, 15 Oct 2000 20:42:04 +0200 masqmail (0.1.6-1) unstable; urgency=low * New upstream version: - MasqMail can now retrieve mail with pop3 (new option -g) - also supports SMTP after POP - supports ESMTP AUTH as client (only CRAM-MD5 supported for now) - `-qo' without a connection name works now - new command line option `-Mrm' to remove mails from queue - many bug fixes, e.g. - fixed the segfault caused by unqualified recipient addresses (closes: #69112) - documentation in html format has been removed; instead, there's a complete set of man pages. For a complete list of new features and bugs fixed since 0.0.12, please refer to the changelog file. * Include Build-Dependencies (closes: #65514). * Compiled with POP3 and AUTH support. * Fixed a typo in example.route: must be "pop3_login" (not pop_login). * configuration file masqmail.conf has been moved into /etc/masqmail/. -- Gregor Hoffleit Sat, 7 Oct 2000 12:49:01 +0200 masqmail (0.0.12-2) frozen unstable; urgency=low * Just found and fixed another important bug: newaliases (aka masqmail -bi) would hang infinitely and therefore break postinst scripts of various packages. A very small fix in src/masqmail.c. -- Gregor Hoffleit Wed, 29 Mar 2000 23:34:38 +0200 masqmail (0.0.12-1) frozen unstable; urgency=low * New upstream version: Bugfixes only (should go into frozen, since it fixes an RC bug:) - setegid in local.c (closes: #58893) - set len for getsockname - set local_net_routes to NULL if there is no local net - warn if spool file could not be deleted - say 'mail queue is empty' if mail queue is empty * Moved mailq from /usr/sbin to /usr/bin (cf. exim et al). -- Gregor Hoffleit Wed, 29 Mar 2000 14:25:08 +0200 masqmail (0.0.11-1) frozen unstable; urgency=low * New upstream version: Bugfixes only compared to 0.0.10. * To the archive maintainer: I think this version should replace the version 0.0.8-3, which is currently in frozen: Compared with upstream 0.0.8, the only new features are - support to read certain configuration options from files. - support for aliases in /etc/aliases. This is a necessary feature to comply with Debian policy (closes: #58885). Then, there are a few bug fixes since 0.0.11 wrt RFC 822 compliance. -- Gregor Hoffleit Sat, 4 Mar 2000 17:40:56 +0100 masqmail (0.0.10-1) unstable; urgency=low * New upstream version: - includes our liblockfile support. - support for aliases (fixes: #58885). * To conform with Debian policy, we include an shell script /usr/bin/newaliases, that calls sendmail -bi (which has no effect with MasqMail). -- Gregor Hoffleit Tue, 29 Feb 2000 13:37:18 +0100 masqmail (0.0.9-2) unstable; urgency=low * This release only has a small change in debian/rules that fixes an important bug: /usr/sbin/masqmail was not installed setuid root and therefore failed to work if suidmanager was not present at install time. In frozen, this bug was fixed simultanously by 0.0.8-3. -- Gregor Hoffleit Thu, 24 Feb 2000 22:13:01 +0100 masqmail (0.0.9-1) unstable; urgency=low * New upstream version. -- Gregor Hoffleit Fri, 11 Feb 2000 13:30:10 +0100 masqmail (0.0.8-3) frozen; urgency=high * This release only has a small change in debian/rules that fixes an important bug: /usr/sbin/masqmail was not installed setuid root and therefore failed to work if suidmanager was not present at install time (closes: Bug#58886, Bug#58893). -- Gregor Hoffleit Thu, 24 Feb 2000 13:16:41 +0100 masqmail (0.0.8-2) frozen unstable; urgency=low * Now new code, just a simple fix to the command line parsing, therefore this upload is targetted for frozen. * Patch to allow '--' on command line before the email adress, mimicking sendmail's behavior. Necessary to make Debian's mutt package work with masqmail, and therefore should go into frozen (closes: Bug#56341 masqmail: Mutt can't send emails through masqmail). * Therefore updates to the man page. * Changed Oliver's address and the MasqMail homepage in all documents. -- Gregor Hoffleit Fri, 28 Jan 2000 11:51:06 +0100 masqmail (0.0.8-1) unstable; urgency=low * New upstream version. * Made the source compile on both slink and potato. -- Gregor Hoffleit Fri, 29 Oct 1999 10:40:27 +0200 masqmail (0.0.3-1slink) stable; urgency=low * New upstream version. * Compiled for slink. -- Gregor Hoffleit Mon, 4 Oct 1999 14:44:27 +0200 masqmail (0.0.2-1) unstable; urgency=low * New upstream version. -- Gregor Hoffleit Sat, 25 Sep 1999 12:32:02 +0200 masqmail (0.0.1-1) unstable; urgency=low * Initial Release. -- Gregor Hoffleit Wed, 15 Sep 1999 14:07:55 +0200 debian/masqmail.NEWS0000644000000000000000000000205511763213152011473 0ustar masqmail (0.3.4-1) unstable; urgency=low An upgrade from earlier versions of masqmail requires manual adjustment of the configuration files. Without adjustments, masqmail is at risk to behave differently or to fail completely. As the configuration setups for masqmail can be very diverse, automatic conversion is not possible. Human interaction is required. The helper script /usr/lib/masqmail/config-transition should be run with all masqmail configuration files as arguments, likely: /usr/lib/masqmail/config-transition /etc/masqmail/* It will then print obsolete statements and explain how to replace them. Usually, doing so is all that's needed. In some cases, however, a setup might rely on the POP3 client or other features that were removed in masqmail 0.3.x. Then, new packages (e.g. fetchmail) might need to be installed. In case of problems, help is provided on the upstream mailing list at . -- Steffen Rumberger Fri, 01 Jun 2012 18:14:41 +0200 debian/copyright0000644000000000000000000000545411760573666011152 0ustar This is Debian prepackaged version of masqmail, a small mail transport agent for hosts without permanent internet connection. Masqmail can be obtained from: http://marmaro.de/prog/masqmail This package is maintained by: Steffen Rumberger (Maintainer) Jan Hauke Rahm (Debian Developer) Markus Schnalke (Masqmail Developer) Upstream code: Copyright (C) 1999-2002 Oliver Kurth Copyright (C) 2008-2011 markus schnalke This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. These files are licensed differently: src/md5/hmac_md5.* Copyright 2010, markus schnalke Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. src/md5/md5.* Written by Solar Designer in 2001, and placed in the public domain. There's absolutely no warranty. src/libident/* Written by Peter Eriksson. This version of 'libident' is hereby released into the Public Domain. It may be distributed for a fee or without a fee. We only ask you not to pretend you wrote it. contrib/rmail Taken from postfix. Wietse Venema said that no license would apply to that file. See: http://lists.debian.org/debian-legal/2010/02/msg00043.html For details, have a look at the relevant files. debian/masqmail.lintian-overrides0000644000000000000000000000011511761437207014357 0ustar # has to be setuid: masqmail: setuid-binary usr/sbin/masqmail 4755 root/root debian/Makefile.am0000644000000000000000000000050211760573666011240 0ustar EXTRA_DIST = \ README.Debian \ README.online \ changelog \ control \ copyright \ dirs \ docs \ mailq.8 \ mailrm.8 \ masqmail.config \ masqmail.init \ masqmail.ip-up \ masqmail.links \ masqmail.logrotate \ masqmail.templates \ newaliases \ newaliases.8 \ postinst \ postrm \ preinst \ rules \ sendmail.8 \ masqmail.lintian debian/masqmail.init0000644000000000000000000001103011763213152011653 0ustar #!/bin/sh ### BEGIN INIT INFO # Provides: masqmail # Required-Start: $local_fs $remote_fs $syslog $network $time # Required-Stop: $local_fs $remote_fs $syslog $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Starts and stops the masqmail daemon # Description: The masqmail daemon listens for incoming SMTP connections # and processes its mail queue in regular intervals. ### END INIT INFO # DON'T EDIT THIS FILE, use /etc/default/masqmail! INIT_SMTP_DAEMON="false" INIT_QUEUE_DAEMON="false" PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="Mail Transfer Agent (MTA)" NAME=masqmail DAEMON=/usr/sbin/$NAME DAEMON_ARGS= RUN_DIR=/var/run/$NAME PIDFILE=$RUN_DIR/$NAME.pid SCRIPTNAME=/etc/init.d/$NAME # Exit if the package is not installed [ -x "$DAEMON" ] || exit 0 # Read configuration variable file if it is present [ -r /etc/default/$NAME ] && . /etc/default/$NAME QUEUE_DAEMON_IVAL=${QUEUE_DAEMON_IVAL:--q10m} # Load the VERBOSE setting and other rcS variables . /lib/init/vars.sh # Define LSB log_* functions. # Depend on lsb-base (>= 3.2-14) to ensure that this file is present # and status_of_proc is working. . /lib/lsb/init-functions # Create /var/run/masqmail if /var/run/ is a tmpfs. mkdir -p $RUN_DIR [ "$INIT_SMTP_DAEMON" = true ] && DAEMON_ARGS="$DAEMON_ARGS -bd" [ "$INIT_QUEUE_DAEMON" = true ] && DAEMON_ARGS="$DAEMON_ARGS $QUEUE_DAEMON_IVAL" # # Function that starts the daemon/service # do_start() { # Return # 0 if daemon has been started # 1 if daemon was already running # 2 if daemon could not be started # 3 if daemon should not be started if [ "$INIT_SMTP_DAEMON" != true -a "$INIT_QUEUE_DAEMON" != true ]; then [ "$VERBOSE" != no ] && log_progress_msg "daemons are disabled. See /etc/default/$NAME" return 3 fi if [ "$INIT_SMTP_DAEMON" = true ]; then # give a hint we start the smtp daemon [ "$VERBOSE" != no ] && log_progress_msg "listen" fi if [ "$INIT_QUEUE_DAEMON" = true ]; then # give a hint we start the queue daemon [ "$VERBOSE" != no ] && log_progress_msg "queue ($QUEUE_DAEMON_IVAL)" fi start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ || return 1 start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \ $DAEMON_ARGS \ || return 2 # Add code here, if necessary, that waits for the process to be ready # to handle requests from services started subsequently which depend # on this one. As a last resort, sleep for some time. } # # Function that stops the daemon/service # do_stop() { # Return # 0 if daemon has been stopped # 1 if daemon was already stopped # 2 if daemon could not be stopped # other if a failure occurred start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME RETVAL="$?" [ "$RETVAL" = 2 ] && return 2 # Wait for children to finish too if this is a daemon that forks # and if the daemon is only ever run from this initscript. # If the above conditions are not satisfied then add some other code # that waits for the process to drop all resources that could be # needed by services started subsequently. A last resort is to # sleep for some time. start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON [ "$?" = 2 ] && return 2 # Many daemons don't delete their pidfiles when they exit. rm -f $PIDFILE return "$RETVAL" } # # Function that sends a SIGHUP to the daemon/service # do_reload() { start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME return 0 } case "$1" in start) [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" do_start case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; 3) [ "$VERBOSE" != no ] && log_end_msg 0 ;; esac ;; stop) [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" do_stop case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; status) status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? ;; reload|force-reload) log_daemon_msg "Reloading $DESC" "$NAME" do_reload log_end_msg $? ;; restart) log_daemon_msg "Restarting $DESC" "$NAME" do_stop case "$?" in 0|1) do_start case "$?" in 0) log_end_msg 0 ;; 1) log_end_msg 1 ;; # Old process is still running *) log_end_msg 1 ;; # Failed to start esac ;; *) # Failed to stop log_end_msg 1 ;; esac ;; *) echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2 exit 3 ;; esac : debian/TODO0000644000000000000000000000014211761407674007670 0ustar - better Debian docs - investigate into `set -e' for init scripts (see standards version 3.9.0) debian/compat0000644000000000000000000000000211760573666010405 0ustar 9 debian/newaliases0000644000000000000000000000004011760573666011257 0ustar #!/bin/sh /usr/lib/sendmail -bi debian/watch0000644000000000000000000000012211763652763010232 0ustar version=3 http://marmaro.de/prog/masqmail/files/masqmail-(0\.3\.[0-9]+)\.tar\.gz debian/masqmail.preinst0000644000000000000000000000146011764123257012411 0ustar #!/bin/sh set -e dpkg-maintscript-helper rm_conffile \ /etc/ppp/ip-up.d/1masqmail "0.3.4-1~" -- "$@" dpkg-maintscript-helper rm_conffile \ /etc/ppp/ip-down.d/99masqmail "0.3.4-1~" -- "$@" dpkg-maintscript-helper rm_conffile \ /etc/network/if-up.d/1masqmail "0.3.4-1~" -- "$@" dpkg-maintscript-helper rm_conffile \ /etc/network/if-down.d/99masqmail "0.3.4-1~" -- "$@" if [ "$1" = "upgrade" ] ; then if dpkg --compare-versions "$2" lt "0.3.4-1~" ; then # delete old-style configuration; but keep them as backup if [ -e /etc/default/masqmail ]; then sed -i '1,$s,^,# ,' /etc/default/masqmail || true fi # remove files gone out of use (obsolete) in new masqmail versions rm -fr /var/spool/masqmail/popuidl # rename files as they fall due in new masqmail versions fi fi #DEBHELPER# exit 0 debian/control0000644000000000000000000000216711764325734010613 0ustar Source: masqmail Section: mail Priority: extra Maintainer: Steffen Rumberger Uploaders: Jan Hauke Rahm , Markus Schnalke Standards-Version: 3.9.3 Build-Depends: autotools-dev (>= 20100122.1), debhelper (>= 9), libglib2.0-dev, liblockfile-dev Homepage: http://marmaro.de/prog/masqmail Vcs-Git: git://git.debian.org/collab-maint/masqmail.git Vcs-Browser: http://git.debian.org/?p=collab-maint/masqmail.git;a=summary Package: masqmail Architecture: any Pre-Depends: dpkg (>= 1.15.7.2), Depends: ${shlibs:Depends}, ${misc:Depends}, netbase Replaces: mail-transport-agent Provides: mail-transport-agent Conflicts: mail-transport-agent, rmail Suggests: logrotate, mail-reader, procmail Description: mail transport agent for intermittently connected hosts Masqmail is an MTA (mail transport agent) for hosts with no permanent network connection, such as home network servers or notebook computers. It has special support for connections to different Internet Service Providers. . In these cases, Masqmail is a slim replacement for full-blown MTAs such as Sendmail, Exim, Qmail or Postfix. debian/newaliases.80000644000000000000000000000117311761460521011417 0ustar .TH newaliases 8 .SH NAME newaliases \- update /etc/aliases database .SH SYNOPSIS .B newaliases .SH DESCRIPTION newaliases is called by many applications to notify the mail transport agent of changes to the system mail aliases database. Masqmail doesn't need to be notified of changes to /etc/aliases, therefore this script does nothing. It is provided only for compatibility with the sendmail program. .SH FILES /etc/aliases .SH SEE ALSO \fBmasqmail.aliases (5)\f1, \fBmasqmail.conf (5)\f1, \fBmasqmail.route (5)\f1 .SH AUTHOR This manual page was stitched together by Gregor Hoffleit for the Debian project. debian/masqmail.default0000644000000000000000000000070611763652763012363 0ustar # Defaults for masqmail initscript # sourced by /etc/init.d/masqmail ## Run masqmail as daemon. # Set INIT_SMTP_DAEMON="true" to masqmail act as SMTP server and # accept SMTP connections, on "localhost:25" if not configured # differently. INIT_SMTP_DAEMON="false" ## Start queue-daemon. # Set INIT_QUEUE_DAEMON="true" to do regular queue runs at the # specified time interval (QUEUE_DAEMON_IVAL). INIT_QUEUE_DAEMON="false" QUEUE_DAEMON_IVAL="-q10m"