Hello,
        I'm new to the qmail. I made it running, I set up vpopmail with mysql,
so I can receive mails for multiple domains and users can read their
mails. After first troubles and disapointment I realized that qmail is
simply great.
        But I still has one problem. I cannot send e-mails via qmail-smtp to
non-local domains, I get back the error message 
553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)

        So I need to set up relaying. I looked to the FAQ, HOWTO, Docs, ... but
found no answer (maybe I search badly). I have following settings (see
below). I want to allow all our clients (using our IP blocks) to use
smtp.

        Next thing I want to ask - does the qmail rebuild the 'cdb' files
automatically after service restart? As far as I found, it seems to me
that it doesn't.

Regards,
Martin


-------
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=""
-------
# cat /var/qmail/service/smtpd/run 
#!/bin/sh
. /usr/share/qmail/run-functions

# If rblsmtpd is installed, process rbltimeout rbldomains, and
antirbldomains
if [ -x /usr/bin/rblsmtpd ]; then
        readdefault domains antirbldomains ""
        for domain in $domains; do
                rblopts="$rblopts -a $domain"
        done
        readdefault domains rbldomains ""
        for domain in $domains; do
                rblopts="$rblopts -r $domain"
        done
        readdefault timeout rbltimeout 60
        if [ -n "$rblopts" ]; then
                rbl="/usr/bin/rblsmtpd -t $timeout $rblopts"
        fi
fi

# Start daemons.
readdefault concurrency concurrencysmtpd 20
do_ulimits

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
------

Martin Edlman
Fortech s.r.o, Litomysl
Public PGP key: http://edas.visaci.cz/#keys

Reply via email to