Gustavo Schroeder <[EMAIL PROTECTED]> wrote:

>But in qmail, i'm a little bit confused, as i read in Dave Sill's Life
>with Qmail,
>"If you follow the installation instructions in this document, selective
>relaying will be enabled by default. To give a client relay access, add
>an entry to
>/etc/tcp.smtp like:
>
>    IP address of client:allow,RELAYCLIENT=""
>
>Then rebuild the SMTP access database by doing:
>
>    tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp
>    chmod 644 /etc/tcp.smtp*
>
>
>OK, but I don't have /etc/tcp.smtp
>I only have the file /etc/tcprules.d/qmail-smtp and
>/etc/tcprules.d/qmail-smtp.cdb

Right, because you didn't follow the LWQ installation instructions,
but perhaps installed RPM's that set it up differently.

>[root@localhost]# more /etc/tcprules.d/qmail-smtp
>127.0.0.1:allow,RELAYCLIENT=""
>192.168.15.200:allow,RELAYCLIENT=""
>
>[root@localhost]# ps ax|grep qmail-smtp.cdb
>877 pts/0    S      0:00 tcpserver -v -c40 -x
>/etc/tcprules.d/qmail-smtpd.cdb -u100 -g502 0 smtp qmail-smtpd
>
>I understand that qmail-smtpd is using the file qmail-smtpd.cdb for
>relay control, right?

Right.

>So i decided to test in another IP. The IP was 192.168.15.201, and i
>sent a message trough qmail host sucessfully.

So what did you do, exactly? *How* did you add in the IP? *How* did
you send the test message? From which host you send it?

>What I don't understand is:
>How come I could send mail from a different IP listed in qmail-smtp if
>/etc/tcprules.d/qmail-smtp is set for allowing relay to loopback and my
>machine only?

I could only guess without more details. I'm not in a guessing mood.

>How can I correct this situation?

Provide more information.

>Am I missing something crucial?

Almost certainly.

-Dave

Reply via email to