| 1 |
|
| 2 |
This is qpsmtpd, a flexible SMTP daemon written in Perl. |
| 3 |
|
| 4 |
For source code and project details, see http://smtpd.develooper.com/ |
| 5 |
|
| 6 |
For help with qpsmtpd itself, see the qpsmtpd mailing list at |
| 7 |
http://smtpd.develooper.com/list.html (archives are available, check there |
| 8 |
first). |
| 9 |
|
| 10 |
If you skipped the qpsmtpd configuration step when installing the package for |
| 11 |
the first time, and need to repeat it, run 'dpkg-reconfigure qpsmtpd'. |
| 12 |
|
| 13 |
|
| 14 |
A few notes on Debian's packaging of qpsmtpd: |
| 15 |
|
| 16 |
1. Startup |
| 17 |
|
| 18 |
Qpsmtpd does not start up automatically by default. It is intended to fit |
| 19 |
alongside a preexisting MTA, such as Exim, Qmail or Postfix, or to proxy for a |
| 20 |
remote SMTP server. As most Debian systems installed out-of-the-box include an |
| 21 |
MTA listening on all interfaces on the usual port (TCP port 25), qpsmtpd cannot |
| 22 |
generally start up until this is remedied. |
| 23 |
|
| 24 |
|
| 25 |
2. Configuration |
| 26 |
|
| 27 |
If you're new to qpsmtpd, start by reading through the configuration files in |
| 28 |
/etc/qpsmtpd/. Much of qpsmtpd's functionality, including fairly basic things |
| 29 |
like mail delivery, is handled by plugins, so pay particular attention to |
| 30 |
/etc/qpsmtpd/plugins. You might also find the mailing list archives at |
| 31 |
http://smtpd.develooper.com/list.html helpful. |
| 32 |
|
| 33 |
3. Delivery into a Local MTA |
| 34 |
|
| 35 |
3.a. Exim |
| 36 |
|
| 37 |
If you haven't done any particular configuration of your mail system yet, you |
| 38 |
probably have Exim installed as your local MTA. The install scripts will |
| 39 |
detect this and attempt to configure things properly, but cannot reconfigure |
| 40 |
exim itself. To allow qpsmtpd to spool into Exim without having the sender |
| 41 |
addresses munged, you should edit your Exim configuration to add the 'qpsmtpd' |
| 42 |
user to the trusted_users list. For example: |
| 43 |
|
| 44 |
in /etc/exim4/exim4.conf.template: |
| 45 |
|
| 46 |
# uucp should be able to set envelope-from to arbitrary values |
| 47 |
trusted_users = uucp : smtpd |
| 48 |
|
| 49 |
or, if you use the directory tree config style, in |
| 50 |
/etc/exim4/conf.d/main/02_exim4-config_options: |
| 51 |
|
| 52 |
# trusted users can set envelope-from to arbitrary values |
| 53 |
.ifndef MAIN_TRUSTED_USERS |
| 54 |
MAIN_TRUSTED_USERS = uucp : smtpd |
| 55 |
.endif |
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
3.b. Postfix |
| 60 |
|
| 61 |
If you select the postfix delivery method via debconf when installing or |
| 62 |
reconfiguring qpsmtpd, the install scripts will try to add qpsmtpd to the |
| 63 |
'postdrop' group, so as to be able to open the Postfix local delivery socket |
| 64 |
(/var/spool/postfix/public/cleanup on a Debian system). While in a typical |
| 65 |
Debian install the postfix socket is itself world-accessible, it is in a |
| 66 |
directory accessible only to the postdrop group. |
| 67 |
|
| 68 |
If you manually configure qpsmtpd to spool into Postfix, instead of using |
| 69 |
debconf, you will need to make this adjustment manually, by running: |
| 70 |
|
| 71 |
useradd qpsmtpd postdrop |
| 72 |
|
| 73 |
Although this is the fastest-performing option and is as secure as qpsmtpd |
| 74 |
itself, if you don't wish to give qpsmtpd membership in the postdrop group you |
| 75 |
can alternately configure Postfix to listen on a loopback TCP socket and use |
| 76 |
the SMTP proxy delivery method instead. |
| 77 |
|
| 78 |
|
| 79 |
4. forkserver vs tcpserver |
| 80 |
|
| 81 |
The standard 'qpsmtpd' startup script is not installed, as it depends upon Dan |
| 82 |
Bernstein's non-free tcpserver. Instead the package uses qpsmtpd-forkserver, |
| 83 |
which manages the TCP socket itself at a modest gain in performance. If you |
| 84 |
for some reason need the tcpserver binary, see the source to this package or |
| 85 |
download it from the URL above. |
| 86 |
|
| 87 |
|