Qmail-LDAP
[Top] [All Lists]

Re: What is the different between /var/qmail/control/qmail-smtpd.rules a

To: qmail-ldap@qmail-ldap.org
Subject: Re: What is the different between /var/qmail/control/qmail-smtpd.rules and /service/smtpd/tcp?
From: Sebastian Benoit <benoit-lists@fb12.de>
Date: Fri, 16 Mar 2007 10:24:40 +0059
Delivered-to: sp-com-lists@consult.net
Delivered-to: qmail-ldap-list@securepoint.com
Delivered-to: mailing list qmail-ldap@qmail-ldap.org
In-reply-to: <f5ba7b270703160135k4aaf1828y607bab0b396ed820@mail.gmail.com>
Mail-followup-to: qmail-ldap@qmail-ldap.org
Mailing-list: contact qmail-ldap-help@qmail-ldap.org; run by ezmlm
Organisation: Organisation against the bulletization of popular thought as a result of the increasing prevalence of Microsoft PowerPoint(TM)
References: <f5ba7b270703160135k4aaf1828y607bab0b396ed820@mail.gmail.com>
User-agent: Mutt/1.4.2.2i
sato x(gladiol4@gmail.com) on 2007.03.16 15:35:45 +0000:
> I want some explenation from people who understand the recipe of qmail-ldap
> about :

> 1. Does qmail-smtpd.rules replaces /service/smtpd/tcp? I mean, if there is a
> qmail-smtpd.rules in the control directory then qmail will utilize it instead
> of /service/smtpd/tcp. Which one should I choose: tcp or qmail-smtpd.rules?

The contents of /service/smtpd/tcp and qmail-smtpd.rules are stored in a cdb
database file using the 'tcprules' command like this:

  /usr/local/bin/tcprules tcp.cdb tcp.tmp < tcp

This file is then used by tcpserver in /service/smtpd/run:

  /usr/local/bin/tcpserver ... -xtcp.cdb ...

Which source file you use to create the tcp.cdb (or even if you name it that
or where you store it) is entirely dependend on your setup, your taste of
naming convention and what you like. The best thing to do ist to keep it
simple and consistent.

> 2. This time about simscan. I don't have a simscan user, instead I use clamav
> as the user when compile simscan-1.1 via
>    --enable-user=clamav
>    Is this OK? 

It depends on the permissions that user already has, ie. which directories
are writeable by that user, etc.

When you install software like that the first time, its generally advisable
to follow the documentation and first learn how it works before playing
around with the installation procedure.

And you violate the principle of least surprise by running simscan as user
clamav... 

/B.
-- 
Sebastian Benoit <benoit-lists@fb12.de>

Attachment: pgpo2oOBvebsf.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>