tpserver (part of daemontools) does exactly what you want. its a matter
of setting RELAYCLIENT. there are also solutions for dynamic relay,
where the client first authenticates through pop3.

take a look at life with qmail: http://Web.InfoAve.Net/~dsill/lwq.html
espacially chapter 3.2.3. its described in detail there

hope that helps
alexander

=========================
widerst@nd

On 25 Feb, Oliver Frommel wrote:
> Hi,
> 
> 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 ..)
> 
> thanks for your help
> --Oliver
> 

Reply via email to