On Thu, Apr 25, 2002 at 08:35:11AM +0200, Patrick de Ruiter wrote:
> Hi,
> 
> I'am setting up qmail-ldap 
> when i try to telnet to port 110 or 25  from localhost everything goes fine and 
>works perfectly, but when i try to telnet using the ipaddress  of my mailserver 
>192.168.0.4 i get the error "connection refused"
> i think there is something wrong with the tcpserver settings but i cant figure out 
>what.
> 
> this is what is in my tcprules.smtp.cdb
> 
> 
> 192.168.0.:allow,RELAYCLIENT=""
> 127.0.0.:allow,RELAYCLIENT=""
> :allow
> 
> i think there's nothing wrong with this, so  there could be an error in my startup 
>script, this is not the entire script only the relevant parts
> 
> #
> # Start Qmail
> 
> if [ -x /var/qmail/qmail-rc ]; then
>         echo 'Starting Qmail'; /var/qmail/qmail-rc &
> fi
> 
> #
> # Enable Selective Relaying for Qmail
> #
> if [ -x /var/qmail/bin/qmail-smtpd ]; then
>         echo 'Enabling Selective Mail Relay'; \
>         /usr/local/bin/tcpserver -v -R -H -l localhost \
>         -x /etc/tcprules.smtp.cdb 127.0.0.1  smtp \
>         /var/qmail/bin/qmail-smtpd 2>&1 | \
>         /var/qmail/bin/splogger relay 21 &
> fi
> 
> #
> # Enable pop3 service
> #
> if [ -x /var/qmail/bin/qmail-pop3d ]; then
>         echo 'Enabling POP3 Service'; \
>         /usr/local/bin/tcpserver 127.0.0.1 110 \
>         /var/qmail/bin/qmail-popup yavin \
>         /var/qmail/bin/auth_pop \
>         /var/qmail/bin/qmail-pop3d ./Maildir/ 2>&1 | \
>         /var/qmail/bin/splogger pop3 &
> fi
> 
> Anyone got a sugestion ???

smtp and pop3 is only listening on the loopback interface (127.0.0.1)
You should start tcpserver with /usr/local/bin/tcpserver 0 110 ... to
listen on all interfaces.
Have a look at http://cr.yp.to/ucspi-tcp.html for more info about
tcpserver.


-- 
:wq Claudio

Reply via email to