develooper Front page | perl.qpsmtpd | Postings from January 2007

How to get started with qpsmtpd?

Thread Next
Hans Salvisberg
January 23, 2007 05:11
How to get started with qpsmtpd?
Message ID:
Hi all,

I've spent quite a few hours trying to install qpsmtpd, with only limited success. Here are some of the issues:

1. Does qpsmtpd need to be "compiled" and installed? This article,289483,sid39_gci1235770,00.html
by James Turnbull, which is very recent and detailed, calls for

# perl Makefile.PL
# make
# make install

I've tried this with both the 0.32 tarball and with, and both give the same result from perl Makefile.PL:

Checking if your kit is complete...
Warning: the following files are missing in your kit:
Please inform the author.
WARNING: Setting ABSTRACT via file 'README' failed
 at /usr/lib/perl5/5.8.6/ExtUtils/ line 606
Writing Makefile for qpsmtpd

It seems that I can still make and make install, but I don't know whether the result is flawed or not.

2. Other instructions, including the README, don't mention 'make' at all. I was able to run
# ./qpsmtpd-forkserver -u $USER
under the root account and successfully queue an email message through port 2525.

I set up an smtpd user according to the instructions in and,289483,sid39_gci1235770,00.html
, but running
# ./qpsmtpd-forkserver
without the -u parameter (which is supposed to default to smtpd) results in the message:
Could not create spool_dir /root/tmp/: Permission denied at lib/ line 464.
Why would it try to create /root/tmp, if it's supposed to run as smtpd?

# ./qpsmtpd-forkserver -u smptd
gives the same result -- at least some consistency in the failure...

3. I'm running a very small mail server, only a few hundred emails per day. It's a Suse 9.3 running under Plesk 8.0.1 with qmail, but but it's not a "standard" qmail installation -- qmail-smtpd runs under xinetd, daemontools is not installed. I'd like to embed qpsmtpd as much as possible into the existing setup.

Since qmail-smtpd is running under xinetd, I figured I might try running  qpsmtpd in the same environment, at least to get started.
mentions xinetd all right. It points to a patch at
which seems to be already included in the current svn version, but I wasn't able to find any current information on how to actually run it.

Peter J. Holzer wrote that "It's basically the same patch as for 0.28." and I was able to dig that one up somewhere as qpsmtpd-xinetd.tar.gz, which also includes run.xi -- that seems like a step in the right direction, but how do I tell this thing to run on port 25?

4. Well, xinetd seems to be out of favor anyway, and this link
shows that there used to be an xinetd page in the wiki, but it was moved two weeks ago by jamtur01, and since then it has vanished.

So I looked at, which should actually fit my server installation, but telling by the file paths, this variant seems to apply to a "compiled" installation according to James Turnbull (#1 above). However, in line 18 of is

   . /etc/init.d/functions

I don't have that executable -- what does it do?

If I leave line 25 pointing to
then I get:
Starting /usr/share/qpsmtpd/qpsmtpd-forkserver: ./qpsmtpd-forkserver: line 32: /usr/share/qpsmtpd/qpsmtpd-forkserver: No such file or directory
OTOH, if I point it to
(where make install has put qpsmtpd-forkserver, then I get:
Starting /usr/bin/qpsmtpd-forkserver: could not open /usr/bin/plugins/logging/warn: No such file or directory at /usr/lib/perl5/site_perl/5.8.6/Qpsmtpd/ line 121.

BTW, in "127.0.0l" (zero-el) should probably be "" (zero-dot-one).

I have so many bits and pieces, and none seem to fit together. Can anyone put me on the right track?


Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail:

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About