Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have a postfix server running on Ubuntu (and Debian previously). The server is configured to read users and groups from an OpenLDAP server and delivers mail first the spam filter and then to a Zarafa dagent which makes the mail available in the Zarafa groupware. This works pretty well, however when sending mail to groups, only one member of the group receives the mail.

For example I got a group mail "info@example.com" (domain names have been replaced), this is set up to deliver mail to "user1@example.com" and "user2@example.com". When I look at the log files, it actually looks pretty good:

Jan 19 10:03:30 nx01 postfix/smtpd[24603]: connect from dub0-omc2-s32.dub0.hotmail.com[157.55.1.171]
Jan 19 10:03:30 nx01 postfix/smtpd[24603]: 98188112027D: client=dub0-omc2-s32.dub0.hotmail.com[157.55.1.171]
Jan 19 10:03:30 nx01 postfix/cleanup[24606]: 98188112027D: message-id=<DUB123-W355AE0C8CE96FD543E9078DBA0@phx.gbl>
Jan 19 10:03:30 nx01 postfix/qmgr[1001]: 98188112027D: from=<derkork@xxxxxxx.com>, size=1515, nrcpt=2 (queue active)
Jan 19 10:03:30 nx01 spamd[12448]: spamd: connection from localhost [127.0.0.1] at port 42219
Jan 19 10:03:30 nx01 spamd[12448]: spamd: setuid to spam succeeded
Jan 19 10:03:30 nx01 spamd[12448]: spamd: processing message <DUB123-W355AE0C8CE96FD543E9078DBA0@phx.gbl> for spam:997
Jan 19 10:03:30 nx01 postfix/smtpd[24603]: disconnect from dub0-omc2-s32.dub0.hotmail.com[157.55.1.171]
Jan 19 10:03:30 nx01 spamd[12448]: spamd: clean message (-0.5/6.0) for spam:997 in 0.2 seconds, 1469 bytes.
Jan 19 10:03:30 nx01 spamd[12448]: spamd: result: . 0 - BAYES_00,HTML_MESSAGE scantime=0.2,size=1469,user=spam,uid=997,required_score=6.0,rhost=localhost,raddr=127.0.0.1,rport=42219,mid=<DUB123-W355AE0C8CE96FD543E9078DBA0@phx.gbl>,bayes=0.000000,autolearn=ham
Jan 19 10:03:30 nx01 spamd[1519]: prefork: child states: II
Jan 19 10:03:31 nx01 postfix/pickup[20834]: 044AF1120847: uid=997 from=<derkork@xxxxxxxx.com>
Jan 19 10:03:31 nx01 postfix/pipe[24607]: 98188112027D: to=<user1@example.com>, orig_to=<info@example.com>, relay=spamfilter, delay=0.43, delays=0.18/0/0/0.25, dsn=2.0.0, status=sent (delivered via spamfilter service)
Jan 19 10:03:31 nx01 postfix/pipe[24607]: 98188112027D: to=<user2@example.com>, orig_to=<info@example.com>, relay=spamfilter, delay=0.43, delays=0.18/0/0/0.25, dsn=2.0.0, status=sent (delivered via spamfilter service)
Jan 19 10:03:31 nx01 postfix/qmgr[1001]: 98188112027D: removed
Jan 19 10:03:31 nx01 postfix/cleanup[24606]: 044AF1120847: message-id=<DUB123-W355AE0C8CE96FD543E9078DBA0@phx.gbl>
Jan 19 10:03:31 nx01 postfix/qmgr[1001]: 044AF1120847: from=<derkork@xxxxxxx.com>, size=1829, nrcpt=2 (queue active)
Jan 19 10:03:31 nx01 postfix/pipe[24617]: 044AF1120847: to=<user1@example.com>, relay=zarafa, delay=0.26, delays=0.11/0/0/0.15, dsn=2.0.0, status=sent (delivered via zarafa service)
Jan 19 10:03:31 nx01 postfix/pipe[24617]: 044AF1120847: to=<user2@example.com>, relay=zarafa, delay=0.26, delays=0.11/0/0/0.15, dsn=2.0.0, status=sent (delivered via zarafa service)
Jan 19 10:03:31 nx01 postfix/qmgr[1001]: 044AF1120847: removed

Problem is: only user2@example.com actually finds the mail in his mailbox, but user1@example.com does not, even though the log file clearly shows that two mails have been handed over to Zarafa. I think postfix is working correctly here, but I am not sure whether or not Zarafa is. In my master.cf I have configured a pipe to the zarafa dagent:

zarafa unix -   n       n       -       10      pipe flags= user=vmail argv=/usr/bin/zarafa-dagent ${user}

Question is: Is there some way to debug the communication between postfix and Zarafa done over the pipe? If possible, show stdout, stdin and any error messages and exit status of the zarafa dagent?

Oh and clinging to a straw: has anyone had such an issue with Zarafa before and solved it? If not, any debugging aids would be welcome as well :)

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.