3 messages in net.sourceforge.lists.courier-maildrop[maildropl] Problem with Postfix / LD...
FromSent OnAttachments
Barry FlanaganNov 3, 2004 10:36 am 
Barry FlanaganNov 3, 2004 12:50 pm 
Barry FlanaganNov 4, 2004 5:00 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] Problem with Postfix / LDAP/ Maildrop on suse 9.1Actions...
From:Barry Flanagan (barr@flanagan.ie)
Date:Nov 3, 2004 12:50:11 pm
List:net.sourceforge.lists.courier-maildrop

Hello,

I have Postfix/Courier-IMAP/LDAP up and running fine on a suse 9.1 box. I now want to add maildrop for filtering. However, I am getting seg faults from maildrop, whether from within postfix or from the command-line.

I have scoured everywhere to try to find out what is causing it, to no avail. I would really appreciate any help here.

Following are my configure arguments used when compiling (1.7.0.20040907), as well as the output of:

cat /tmp/test | strace -o /tmp/t.out maildrop -d valid-user

From the strace I can see that the LDAP query is succeeding, but maildrop dies shortly after that.

How can I get some decent debugging out of maildrop when in delivery mode?

# Configure line: ./configure --enable-maildirquota --enable-maildropldap --prefix=/usr --enable-trusted-users='root vmail postfix' --enable-trusted-groups='root postfix postdrop vmail' --enable-syslog=1 --enable-DEBUG --enable-maildrop-uid=vmail --enable-maildrop-gid=vmail --without-db --without-userdb

strace output:

stat64("/etc/resolv.conf", {st_mode=S_IFREG|0644, st_size=41, ...}) = 0 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3 connect(3, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("111.9.9.21")}, 28) = 0 send(3, "5\362\1\0\0\1\0\0\0\0\0\0\5ldap0\10domain\2ie\0\0"..., 35, 0) = 35 gettimeofday({1099501906, 566173}, NULL) = 0 poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 5000) = 1 ioctl(3, FIONREAD, [71]) = 0 recvfrom(3, "5\362\205\200\0\1\0\1\0\1\0\0\5ldap0\10domain\2ie\0\0"..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), close(3) = 0 socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3 setsockopt(3, SOL_TCP, TCP_NODELAY, [1], 4) = 0 fcntl64(3, F_GETFL) = 0x2 (flags O_RDWR) fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0 connect(3, {sa_family=AF_INET, sin_port=htons(389), sin_addr=inet_addr("111.9.9.67")}, 16) = -1 EINPROGRESS (Operation now select(1024, NULL, [3], NULL, NULL) = 1 (out [3]) getpeername(3, {sa_family=AF_INET, sin_port=htons(389), sin_addr=inet_addr("111.9.9.67")}, [16]) = 0 fcntl64(3, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK) fcntl64(3, F_SETFL, O_RDWR) = 0 time(NULL) = 1099501906 write(3, "0:\2\1\1`5\2\1\2\4)cn=email,ou=proxy us"..., 60) = 60 select(1024, [3], [], NULL, NULL) = 1 (in [3]) read(3, "0\f\2\1\1a\7\n", 8) = 8 read(3, "\1\0\4\0\4\0", 6) = 6 time(NULL) = 1099501906 time(NULL) = 1099501906 write(3, "0I\2\1\2cD\4\21dc=domain,dc=ie\n\1\2\n\1\0"..., 75) = 75 time(NULL) = 1099501906 select(1024, [3], [], NULL, {5, 0}) = 1 (in [3], left {4, 807000}) read(3, "0\201\276\2\1\2d\201", 8) = 8 read(3, "\270\4*uid=markuser,ou=people,dc=b"..., 185) = 185 time(NULL) = 1099501906 select(1024, [3], [], NULL, {4, 807000}) = 1 (in [3], left {4, 596000}) read(3, "0\f\2\1\2e\7\n", 8) = 8 read(3, "\1\0\4\0\4\0", 6) = 6 time(NULL) = 1099501906 write(3, "0\5\2\1\3B\0", 7) = 7 shutdown(3, 2 /* send and receive */) = 0 close(3) = 0 setgroups32(1, [143]) = 0 setgid32(143) = 0 setuid32(143) = 0 getuid32() = 143 --- SIGSEGV (Segmentation fault) @ 0 (0) --- alarm(0) = 0 write(2, "maildrop: signal 0x", 19) = 19 write(2, "0", 1) = 1 write(2, "B", 1) = 1 write(2, "\n", 1) = 1 exit_group(75) = ?