Oops. I actually wanted only to be able to send mails OUT to every host
except what is banned. I failed to grep control man page to understand
what is required to accomplish above. I only found out by specifying
the domain in rcpthosts I could send mails to that domain. Could you
please point out the exact what-to-do in man page? Thank you.
qmail-control(5) Headers, Tables, and Macros qmail-control(5)
NAME
qmail-control - qmail configuration files
INTRODUCTION
You can change the behavior of the qmail system by modifying
qmail's control files in /var/qmail/control.
qmail can survive with just one control file, me, containing
the fully-qualified name of the current host. This file is
used as the default for other hostname-related control
files.
Comments are allowed in badmailfrom, locals, percenthack,
rcpthosts, smtproutes, and virtualdomains. Trailing spaces
and tabs are allowed in any control file.
The following table lists all control files other than me.
See the corresponding man pages for further details.
control default used by
badmailfrom (none) qmail-smtpd
bouncefrom MAILER-DAEMON qmail-send
bouncehost me qmail-send
concurrencylocal 10 qmail-send
concurrencyremote 20 qmail-send
defaultdomain me qmail-inject
defaulthost me qmail-inject
doublebouncehost me qmail-send
doublebounceto postmaster qmail-send
envnoathost me qmail-send
helohost me qmail-remote
idhost me qmail-inject
localiphost me qmail-smtpd
locals me qmail-send
percenthack (none) qmail-send
plusdomain me qmail-inject
queuelifetime 604800 qmail-send
rcpthosts (none) qmail-smtpd
recipientmap (none) qmail-send
smtpgreeting me qmail-smtpd
smtproutes (none) qmail-remote
timeoutconnect 60 qmail-remote
timeoutremote 1200 qmail-remote
timeoutsmtpd 1200 qmail-smtpd
virtualdomains (none) qmail-send
SEE ALSO
qmail-inject(8), qmail-remote(8), qmail-send(8), qmail-
showctl(8), qmail-smtpd(8)
On Sun, 6 May 2001 09:54:11 -0700
Greg White <[EMAIL PROTECTED]> wrote:
> On Sun, May 06, 2001 at 08:42:10AM -0700, D . Cook wrote:
> > Hi all,
> >
> > I can't find the syntax for /var/qmail/control in the manual. Please
> > bear with me.
>
> As said, try 'man qmail-control'.
> >
> > What's the syntax for allowing all by default in rcpthosts and only
> > selected hosts are banned? Something like
> > allow all
> > reject *.online-sex.com
>
> Are you really sure this is what you want to do? Setting up a domain in
> rcpthosts means 'I want to recieve mail _for_ this domain', not 'I want
> to recieve mail _from_ this domain'. If one could actually set up
> rcpthosts the way you are asking, you would be placed in ORBS and RSS
> faster than you could say 'open relay'. This is a Very Bad Idea(tm).
>
> If you need assistance with selective relay, start here:
>
> http://cr.yp.to/qmail/faq/servers.html#authorized-relay
>
> You can 'ban' the sites you want by IP address using ':deny' in place of
> ':allow' in tcprules. You can ban specific envelope senders with
> /var/qmail/control/badmailfrom. There are also some spamcontrol patches,
> see:
>
> http://www.qmail.org/qmail/top.html#spam
>
> >
> > Thanks.
> >
> NP. I noticed the first reply to your message mentioned the spamcontrol
> patches, but did not point out the implied error in your thinking.
> Please feel free to flame away if I misunderstood your question, but it
> does imply a misunderstanding of the nature of 'rcpthosts' and selective
> relay. HTH,
>
>
> --
> Greg White
> Those who make peaceful revolution impossible will make violent
> revolution inevitable.
> -- John F. Kennedy