2000-07-07, at 16:21:53, Kwasniewski Piotr wrote:

> Hello!
>         I have Qmail installed. It properly sends and acepts mail. It is
> also supposed to do relaying for a group of users. 
>         In the FAQ it said, how to enable relaying for a group of
> machines, but I'd like to accomplish something like:

> My local domain is domain.com. If an user tries to send mail from a
> machine with relaying enabled, qmail should check if the sender adress is
> [EMAIL PROTECTED] If it is for example [EMAIL PROTECTED], qmail should
> deny relying. 

> My question is: how can I do it ???

> Waiting for reply.

/var/qmail/control/rcpthosts
here you define which machines you allow to be your relay clients.
You can check "From:" in header using i.e. Mark Delany's patch.
You can get it from nearest Qmail mirror site (in your situation the
nearest will be http://qmail.obeer.com):

Yet more Qmail addons
Mark Delany has a patch to qmail-smtpd which lets you match the envelope sender 
against a regex and accept or reject the mail accordingly.
ftp://ftp.mira.net/unix/mail/qmail/wildmat-0.2.patch

-- 
pozdrawiam,
Sylwester S. Biernacki <[EMAIL PROTECTED]>


Reply via email to