On Fri, Feb 25, 2000 at 01:12:38PM +0100, Oliver Frommel wrote:
> After reading through the mailing list archives my understanding concerning
> qmail relaying is that: rcpthosts is used only for checking the recipients
> domain. What about the sender address then? Coming from a sendmail background
> I would like the following behaviour:
>
> 1. allow sending from everywhere to the local domain (that works through
> rcpthosts)
>
> 2. allow sending from somewhere else (MUA) via the qmail-smtpd to somewhere else
> (the difference to 3. is that the sender address is a local address)
>
> 3. prohibit sending from somewhere else to somewhere else with no local
> address (relaying in my understanding)
>
>
> Is there a way to make 2. work without using one of the "first pop then smtp"
> packages? I guess 2. still allows spammers to use the server as a relay to
> some extent, but only by forging a local address (in which case it might be
> of only limited use to them ..)
If you want to control relaying based on the envelope sender address, you'll
need to patch qmail-smtpd. See http://www.palomine.net/qmail/relaymailfrom.html.
Chris