* [gentoo-commits] gentoo-x86 commit in mail-mta/nullmailer/files: init.d-nullmailer-r2 remotes.sample-1.11
@ 2013-01-08 11:37 Eray Aslan (eras)
0 siblings, 0 replies; only message in thread
From: Eray Aslan (eras) @ 2013-01-08 11:37 UTC (permalink / raw
To: gentoo-commits
eras 13/01/08 11:37:07
Added: init.d-nullmailer-r2 remotes.sample-1.11
Log:
Documentation and init script update
(Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key 0x77F1F175586A3B1F)
Revision Changes Path
1.1 mail-mta/nullmailer/files/init.d-nullmailer-r2
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/nullmailer/files/init.d-nullmailer-r2?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/nullmailer/files/init.d-nullmailer-r2?rev=1.1&content-type=text/plain
Index: init.d-nullmailer-r2
===================================================================
#!/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 $?
}
1.1 mail-mta/nullmailer/files/remotes.sample-1.11
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/nullmailer/files/remotes.sample-1.11?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/nullmailer/files/remotes.sample-1.11?rev=1.1&content-type=text/plain
Index: remotes.sample-1.11
===================================================================
# 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=<user> --pass=<pass>
#
# SMTP server supporting AUTH LOGIN
# mailserver smtp --user=<user> --pass=<pass> --auth-login
#
# SMTP server with smtps (legacy - use starttls instead)
# mailserver smtp --user=<user> --pass=<pass> --port=465 --ssl
#
# SMTP server on submission port with starttls
# mailserver smtp --user=<user> --pass=<pass> --port=587 --starttls
#
# SMTP server on submission port with starttls and self-signed certificate
# mailserver smtp --user=<user> --pass=<pass> --port=587 --starttls --insecure
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-01-08 11:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-08 11:37 [gentoo-commits] gentoo-x86 commit in mail-mta/nullmailer/files: init.d-nullmailer-r2 remotes.sample-1.11 Eray Aslan (eras)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox