From 51f5beb3be728eb3c593252745b268e81d041e89 Mon Sep 17 00:00:00 2001 From: Eray Aslan Date: Tue, 8 Jan 2013 11:37:08 +0000 Subject: Documentation and init script update (Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key 0x77F1F175586A3B1F) --- mail-mta/nullmailer/files/init.d-nullmailer-r2 | 57 ++++++++++++++++++++++++++ mail-mta/nullmailer/files/remotes.sample-1.11 | 29 +++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 mail-mta/nullmailer/files/init.d-nullmailer-r2 create mode 100644 mail-mta/nullmailer/files/remotes.sample-1.11 (limited to 'mail-mta/nullmailer/files') diff --git a/mail-mta/nullmailer/files/init.d-nullmailer-r2 b/mail-mta/nullmailer/files/init.d-nullmailer-r2 new file mode 100644 index 000000000000..ccf53b374d06 --- /dev/null +++ b/mail-mta/nullmailer/files/init.d-nullmailer-r2 @@ -0,0 +1,57 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/mail-mta/nullmailer/files/init.d-nullmailer-r2,v 1.1 2013/01/08 11:37:07 eras Exp $ + +DAEMON="/usr/sbin/nullmailer-send" +ARGS="--daemon" +USER=nullmail +GROUP=nullmail + +depend() { + use net logger + provide mta +} + +checkconfig() { + local error=0 + local f=/etc/nullmailer/me + if [ ! -s ${f} ]; then + eerror "${f} does not exist" + error=1 + fi + f=/etc/nullmailer/defaultdomain + if [ ! -s ${f} ]; then + eerror "${f} does not exist" + error=1 + fi + if [ ${error} -eq 1 ]; then + einfo "You need to run 'emerge --config nullmailer'!" + fi + if [ -e /service/nullmailer ]; then + eerror "Nullmailer is already running under svscan!" + error=2 + fi + if [ ${error} -ne 0 ]; then + return 1 + else + return 0 + fi +} + +start() { + checkconfig + ebegin "Starting nullmailer" + cd /var/nullmailer + start-stop-daemon --start --quiet --user ${USER}:${GROUP} \ + --exec ${DAEMON} -- ${ARGS} + eend $? +} + +stop() { + checkconfig # to avoid init.d stopping svscan instance + ebegin "Stopping nullmailer" + cd /var/nullmailer + start-stop-daemon --stop --user ${USER} --exec ${DAEMON} + eend $? +} diff --git a/mail-mta/nullmailer/files/remotes.sample-1.11 b/mail-mta/nullmailer/files/remotes.sample-1.11 new file mode 100644 index 000000000000..4e692258691e --- /dev/null +++ b/mail-mta/nullmailer/files/remotes.sample-1.11 @@ -0,0 +1,29 @@ +# Format is: HOST PROTOCOL [OPTIONS] +# HOST = IP or DNS +# PROTOCOL = smtp | qmtp +# OPTIONS = [--port=NUMBER] [--auth=user,pass] [--starttls | --ssl [--insecure] ] +# +# Examples: +# A standard SMTP server: +# somesendmailserver.domain.com smtp +# +# A qmail server with QMQP setup: +# someqmailserver.domain.com qmqp +# +# A nonstandard SMTP server setup: +# someotherserver.domain.com smtp --port=2525 +# +# SMTP server supporting AUTH PLAIN +# mailserver smtp --user= --pass= +# +# SMTP server supporting AUTH LOGIN +# mailserver smtp --user= --pass= --auth-login +# +# SMTP server with smtps (legacy - use starttls instead) +# mailserver smtp --user= --pass= --port=465 --ssl +# +# SMTP server on submission port with starttls +# mailserver smtp --user= --pass= --port=587 --starttls +# +# SMTP server on submission port with starttls and self-signed certificate +# mailserver smtp --user= --pass= --port=587 --starttls --insecure -- cgit v1.2.3-65-gdbad