Peter Eisch wrote: > On 12/15/07 8:26 AM, "Robin Bowes" <[EMAIL PROTECTED]> wrote: > >> Hi, >> >> I'm setting up qpsmtpd with apache, the RPMs. >> >> Is this the right "use lib ..." line: >> >> use lib qw( /usr/lib/perl5/site_perl/Qpsmtpd ); >> >> And what do I use for the QpsmtpdDir? Would that be: >> >> PerlSetVar QpsmtpdDir /etc/qpsmtpd >> >> i.e. pointing to the config dir? >> > > Yes and yes -- if that's where the they get installed. My non-RPM config > ends up like below: > > diablo# cat qpsmtpd.conf > User smtpd > Group users > > Listen 0.0.0.0:25 > > LoadModule perl_module lib/httpd/mod_perl.so > > <Perl> > use lib qw( /home/smtpd/qpsmtpd/lib ); > use Apache::Qpsmtpd; > </Perl> > > <VirtualHost _default_:25> > PerlSetVar QpsmtpdDir /home/smtpd/qpsmtpd > PerlModule Apache::Qpsmtpd > PerlProcessConnectionHandler Apache::Qpsmtpd > PerlSetVar qpsmtpd.loglevel 7 > </VirtualHost>
Thanks. I've ended up with this: Listen 0.0.0.0:25 smtp AcceptFilter smtp none ## "smtp" and the AcceptFilter are required for Linux, FreeBSD ## with apache >= 2.1.5, for others it doesn’t hurt. See also ## http://httpd.apache.org/docs/2.2/mod/core.html#acceptfilter ## and http://httpd.apache.org/docs/2.2/mod/mpm_common.html#listen <Perl> use lib qw( /usr/lib/perl5/site_perl/Qpsmtpd ); use Apache::Qpsmtpd; </Perl> <VirtualHost _default_:25> PerlSetVar QpsmtpdDir /etc/qpsmtpd PerlModule Apache::Qpsmtpd PerlProcessConnectionHandler Apache::Qpsmtpd PerlSetVar qpsmtpd.loglevel 4 </VirtualHost> mod_perl is loaded in perl.conf I've not tested this yet. It might be an idea if qpsmtpd.conf is dumped into /etc/httpd/conf.d when qpsmtpd-apache is installed. R.