On Sun, Nov 21, 2004 at 11:37:13PM -0800, Mihai Costache wrote: > second: can somebody tell me how to make qmail-smtpd to > check domain sender, sender email address and domain > recipient when mails came from relay hosts ... and if > domain sender is not in ~control/rcpthosts(.cdb) to reject > this emails and to can to do some like this : to have a > list of local email address who can send mails only to > locals domain (aka domain listed in > ~control/rcpthosts(.cdb) or ~control/locals(.cdb))
It depends on what you're trying to accomplish. Bear in mind that the sender's domain can be forged. Relying on the sender's domain to control relaying isnt' very useful. It _sounds_ like what you want is known people from known hosts to be able to relay. If that's the case, you should look into SMTP AUTH; that forces force's people's mail clients to provide a password, such that when they've authenticated, they're allowed to relay though that mail server... > thanks, > Mihai -- Brian Reichert <[EMAIL PROTECTED]> 37 Crystal Ave. #303 Daytime number: (603) 434-6842 Derry NH 03038-1713 USA BSD admin/developer at large
