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 | |
---|
3 | exec 2>&1 |
---|
4 | |
---|
5 | QMAILDUID=`id -u qmaild` |
---|
6 | NOFILESGID=`id -g qmaild` |
---|
7 | MAXSMTPD=`cat /var/qmail/control/concurrencyincoming` |
---|
8 | SOFTLIMIT=`cat /var/qmail/control/softlimit` |
---|
9 | LOCAL=`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) |
---|
13 | export SMTPAUTH="!" |
---|
14 | |
---|
15 | # This enables greetdelay for qmail-smtpd. |
---|
16 | export SMTPD_GREETDELAY=3 |
---|
17 | export DROP_PRE_GREET=1 |
---|
18 | |
---|
19 | # This enables chkuser |
---|
20 | export 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 | |
---|
35 | exec /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.