Qmail does not use the To: header to check relaying. It uses the
address given in the SMTP "RCPT TO" command. In the case of mailing lists,
this *IS* actually the address of the mail recipient and not the mailing
list itself.
-Dustin
At 08:27 PM 1/6/00 , you wrote:
>Hi.
>
>I am having a hard time understanding how to set up qmail to stop
>third-party relaying while still accepting all of the legitimate mail our
>users recieve.
>
>The specific problem I have having is that mail from distribution lists
>(where the To: field addresses the list itself and not that of the local
>user) is being seen as a relay since the list domain isn't in
>/var/qmail/control/rcpthosts and tcp-env isn't setting RELAYCLIENT because
>the list domain is also not in the set of domains we want to accept relays for.
>
>I read and reread the FAQ but didn't see an answer for this situation. It
>seems like it would be a common problem, but perhaps I just don't
>understand enough of how the qmail system works.
>
>Thanks in advance for any help.
>
>Jacob Martinson
>