Martin Edlman <[EMAIL PROTECTED]> wrote:
>
> So I need to set up relaying. I looked to the FAQ, HOWTO, Docs, ... but found
> no answer (maybe I search badly).
You must have -- it's one of the top FAQs. Search on the term "selective
relay" for better results. Or forget searching, and just read the
documentationfor tcpserver.
> Next thing I want to ask - does the qmail rebuild the 'cdb' files
> automatically after service restart?
No.
> -------
> this one is from qmail distro
> # cat /etc/tcpcontrol/smtp.rules
> :allow
> -------
> this one is from vpopmail distro
> # cat /var/qmail/virtual/etc/tcp.smtp
> 127.0.0.:allow,RELAYCLIENT=""
[...]
>
> exec envuidgid qmaild \
> tcpserver -DRUvX -c "$concurrency" -l "`head -1 /var/qmail/control/me`"
> \
> -x /etc/tcpcontrol/smtp.cdb 0 smtp \
> fixcrio $rbl qmail-smtpd
Only your smtp.cdb file is being used, presumably compiled from smtp.rules.
You need to add the relevant RELAYCLIENT settings to that file and
recompile your .cdb file.
Charles
--
-----------------------------------------------------------------------
Charles Cazabon <[EMAIL PROTECTED]>
GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
-----------------------------------------------------------------------