On Fri, Apr 23, 1999 at 01:22:43PM -0400, Duncan, Eric A. wrote:
> I am setting up several domains and hundreds of pop3 boxes
> using Qmail and . My question is about the smtp daemon. I
> need to be able to allow all users the ability to access the
> mail server for the smtp feature (Imagine an employee of a
> company that I am hosting for, they need a smtp server to
> send mail.
>
> I do not want to allow spammers to spoof their addresses and
> to use our machine. But in the same retrospect, I need to
> allow any and all IPs to connect.
>
> I've seen in the past some smtp servers that actually
> restricted the use of the server for relaying mail if the
> From: @host.com did not match what it had set in its
> configuration files. Yes even though a spammer can spoof
> his From: @host.com address to match what I had and send
> mail, I'll deal with this when it arrives. Is Qmail's smtpd
> configurable to just allow mail relay if from @host.com as
> specified in one of its configuration files?
You'll need a patch to make qmail-smtpd do this. Try
http://www.palomine.net/qmail/relaymailfrom.html
Most people on this list will tell you that controlling relaying based on
envelope sender is a bad thing to do, but you appear to be aware of the risks.
Chris