[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[tpop3d-discuss] xinetd, tpop3d & Redhat 7.1
From: |
Jerry Liang |
Subject: |
[tpop3d-discuss] xinetd, tpop3d & Redhat 7.1 |
Date: |
Wed, 3 Apr 2002 18:02:45 +0800 |
Dear All:
I have tried to install tpop3d 1.3.5 on a i386 pc with Redhat 7.1.
Tpop3d works well with daemon mode. When I try to go to
tcp wrapper mode, there are some things strange.
I use the following configuration command:
./configure --enable-auth-passwd --enable-shadow-passwords --enable-tcp-wrappers
Then, I tried to compile the source code with the Makefile. I got the following
message:
gcc -Wall -g -o tpop3d auth_mysql.o auth_other.o auth_perl.o auth_pam.o auth_
passwd.o authswitch.o cfgdirectives.o config.o connection.o errprintf.o listener
.o locks.o mailbox.o maildir.o mailspool.o main.o md5c.o pidfile.o pop3.o signal
s.o stringmap.o strtok_r.o substvars.o tokenise.o util.o vector.o -lwrap -lpam
-ldl -lcrypt
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libwrap.a(hosts_access.o): In f
unction `host_match':
hosts_access.o(.text+0x616): undefined reference to `yp_get_default_domain'
collect2: ld returned 1 exit status
make[2]: *** [tpop3d] Error 1
make[2]: Leaving directory `/root/tpop3d-1.3.5'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/tpop3d-1.3.5'
make: *** [all-recursive-am] Error 2
libwrap.a can be found under /usr/lib. Thus, I edited the Makefile. Originally,
the LIB
variable is assigned as:
LIBS = -lwrap -lpam -ldl -lcrypt
I modified this line as:
LIBS = -lwrap -lpam -ldl -lcrypt -lnss_nis
Then, the Makefile can be run successfully. But this is not the end of the
story.
Instead if inetd.d, Redhat 7.1 has adopted xinetd for tcp wrapper structure.
Thus, I
have to edit /etc/xinetd.d/ipop3 as the following:
service pop3
{
socket_type = stream
wait = no
user = root
server = /usr/local/sbin/tpop3d
log_on_success += USERID
log_on_failure += USERID
# disable = yes
}
And I have the following tpop3d.conf:
listen-address: 10.0.0.7
max-children: 4
mailbox: /var/spool/mail/$(user[0])/$(user[1])/$(user)
auth-passwd-enable: true
auth-passwd-mail-group: mail
tcp-wrappers-name: pop3
When I used my mail reader trying to get mail from 10.0.0.7:110, I got the
following
log in /var/log/maillog:
Apr 3 13:58:59 pc7 tpop3d[6787]: TCP Wrappers support enabled, using daemon nam
e `pop3'
Apr 3 13:58:59 pc7 tpop3d[6787]: listener_new: bind(10.0.0.7:110): Address alre
ady in use
Apr 3 13:58:59 pc7 tpop3d[6787]: /etc/tpop3d.conf: no listen addresses obtained
; exiting
And I'm not able to get mails hereafter.
Please give me your advices.
Best Regards,
Jerry
- [tpop3d-discuss] xinetd, tpop3d & Redhat 7.1,
Jerry Liang <=