source: npl/mailserver/netqmail_conf/root/var/qmail/supervise/qmail-submission/run

Last change on this file was cd8630b, checked in by Edwin Eefting <edwin@datux.nl>, 7 years ago

improved logging. auth and tls support. qmail-submission on port 587 (requires both tls and auth to relay mails from the internet)

  • Property mode set to 100644
File size: 1.2 KB
Line 
1#!/bin/sh
2
3exec 2>&1
4
5QMAILDUID=`id -u qmaild`
6NOFILESGID=`id -g qmaild`
7MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
8SOFTLIMIT=`cat /var/qmail/control/softlimit`
9LOCAL=`head -1 /var/qmail/control/me`
10
11# You MUST export this, otherwise you'd get a 30 sec timeout
12# "!" if you want the submission feature (auth required)
13export SMTPAUTH="!"
14
15# This enables greetdelay for qmail-smtpd.
16export SMTPD_GREETDELAY=3
17export DROP_PRE_GREET=1
18
19# This enables chkuser
20export CHKUSER_START=ALWAYS
21
22# This makes qmail to allow connections without TLS (default 1)
23#export FORCETLS=0
24
25# This turns off TLS on port 587 (default 0)
26#export DISABLETLS=1
27
28# Requires that authenticated user and 'mail from' are identical (default 0)
29# export FORCEAUTHMAILFROM=1
30
31# rcptcheck-overlimit. Limits the number of emails sent by relayclients
32#export RCPTCHECK=/var/qmail/bin/rcptcheck-overlimit.sh
33#export RCPTCHECKRELAYCLIENT=1
34
35exec /usr/bin/softlimit -m "$SOFTLIMIT" \
36    /usr/bin/tcpserver -v -H -R -l "$LOCAL" \
37    -x /etc/qmail/tcp.submission.cdb -c "$MAXSMTPD" \
38    -u "$QMAILDUID" -g "$NOFILESGID" 0 587 \
39    /var/qmail/bin/qmail-smtpd \
40    /usr/bin/checkpassword-pam -H --noenv -s qmail 2>&1
Note: See TracBrowser for help on using the repository browser.