Re: Cyrus Deadblocking

2008-12-15 Thread Teresa
On Mon, 15 Dec 2008 10:42:08 -0200, Henrique de Moraes Holschuh
h...@debian.org wrote:
On Mon, 15 Dec 2008, Teresa wrote:
Which kernel?  If it is Linux 2.6.27.8 or 2.6.27.9, try downgrading...

Thanks for response.
I use 2.6.27.7 vanila kernel (not gentoo-source). Didnt rebooted for about
near a mounth. Yesterday i rebooted also in one of last hope that would fix
something (i know that doesnt work, and it didnt, it never does :) if
something isnt working).

Actualy system is raning stable now again. I didnt changed anything, didnt
compiled or rebooted. I just restarted cyrus and sendmail few times. And
after one of this restarts it run stable. I have no idea why. There is
nothing different. No system log messages about broken DB or something
else.

Once thing i saw strange in this 2 days was :
lmtpd[3467] general protection ip:7f2e45ffdb2e sp:7fff4ee81968 error:0 in
libdb-4.6.so[7f2e45f2d000+136000]
in dmesg.

I think this comes from new glibc. But it doesnt breake functionality by
now. I have stable working for 4 hours already, system load goes down to
0.0 again. No deadlocking...

I saw there is new ebuilds for berkley db 4.7.25 are in portage. Is anybody
used this version already ? Maybe compiling cyrus agains this lib will
perform better ?

Or that looks more like kernel problem ? How i check that ? In htop the
process that get 100%cpu load isnt in D state, so its not real deadlock,
it just goest in some loop somewhere i suppouse under some condition that
doesnt happend allways.

Yesterday i also tried to downgrade to 2.3.12_p2 cyrus-imapd. But got same
behavier, so i updated to 2.3.13 back again.

I will report if i find something more.
--
Teresa


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Cyrus Deadblocking

2008-12-15 Thread Teresa
On Mon, 15 Dec 2008 08:40:31 -0500, Adam Tauno Williams
awill...@whitemice.org wrote:
since yesterday i have strange behavier of my productive mail server,
and
i
cannt find the reason for 2 days allready.

Does dmesg show anything odd?

Not realy. Its quiet, only this strange messages comes in this 2 days also
in, thay allways look like that:

lmtpd[3467] general protection ip:7f2e45ffdb2e sp:7fff4ee81968 error:0 in
libdb-4.6.so[7f2e45f2d000+136000] I didnt changed anything lately, but
yesterday my cyrus starts rise cpu

But it still work already for 4 hours here, even if this message is once in
my dmesg now.


If you attach to a hung process with strace -p {pid} what does it look
like?

Now its run, and as its produktion server, i will leave it running as long
it will self :)
But next time and i am mostly sure it will come again, i will do that
strace.

I am running this mailbox already since 2003. Cyrus had some nasty problems
with berkleydb few times in the past (2.2.x versions). But for last 2 years
i never had realy a problem with it.

Did you restart the services after the update?
I am on gentoo box.

Gentoo is ok, i am self in trouble because i run unstable ~x86_64 keyword.
I know that, so i have to manage my problems self. Gentoo has nothing to do
with that.
But you've right, something with system is not right at the moment.


If cyrus goes in to the blocking state,

Sounds to be like Cyrus is not the only thing getting hung,  which
indicates the problem probably lies elsewhere.

Actualy only cyrus processes are in trouble. iprune do it job, as example,
but never get out to promt.

I got my kernel now updated to 2.6.27.9. It runs now 2.6.29.7. If it crash
again, i reboot to new kernel and will see if something is changed.

--
Teresa


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Cyrus Deadblocking

2008-12-15 Thread Henrique de Moraes Holschuh
On Mon, 15 Dec 2008, Patrick Boutilier wrote:
 Henrique de Moraes Holschuh wrote:
  On Mon, 15 Dec 2008, Teresa wrote:
  since yesterday i have strange behavier of my productive mail server, and i
  cannt find the reason for 2 days allready.
  
  Which kernel?  If it is Linux 2.6.27.8 or 2.6.27.9, try downgrading...
 
 What is wrong with those kernels?

The lack of this:
http://lkml.indiana.edu/hypermail/linux/kernel/0812.1/00998.html

Thread here:
http://lkml.indiana.edu/hypermail/linux/kernel/0812.1/index.html#6

2.6.27.10 will be much better.  I am not touching 2.6.27 at all until it is
out (still running 2.6.26.y here), but probably I won't consider it until it
reaches 2.6.27.12 or thereabouts.

No, I am not sure it would break Cyrus IMAP.  But one doesn't let Cyrus IMAP
anywhere near a kernel that is suspect of less than pristine shared memory
or mmap behaviour, it would be the same as walking around with dead fish in
a basket, near a bunch of starved cats.

-- 
  One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie. -- The Silicon Valley Tarot
  Henrique Holschuh

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Cyrus Deadblocking

2008-12-15 Thread Teresa
Hi all,

since yesterday i have strange behavier of my productive mail server, and i
cannt find the reason for 2 days allready.

I didnt changed anything lately, but yesterday my cyrus starts rise cpu
load up to 100% and after some time it stop responding. Mostly its a lmtp
process, but it happends to pop3 also, or to imapd process self.

What helps - restart. There is nothing in the log what would show the
problem.

All sendmail processes, as they use smmapd for local delivery are blocked
also.

Ca. 2 weeks ago i updated glibc to 2.9 version. But it worked this two
weeks fine. I am on gentoo box.

[ebuild   R   ] sys-libs/db-4.6.21_p3-r1  USE=-bootstrap -doc -java -nocxx
-tcl -test 0 kB
[ebuild   R   ] sys-libs/glibc-2.9_p20081201  USE=gd (multilib) nls -debug
-glibc-compat20 -glibc-omitfp (-hardened) -profile (-selinux) -vanilla 0
kB
[ebuild   R   ] net-mail/cyrus-imapd-2.3.13  USE=idled pam ssl tcpd
(-drac) -kerberos -kolab -nntp -replication -snmp 0 kB

I use squater, sieve, imap and pop3. Ipurge starts from cron time to time.
If cyrus goes in to the blocking state, and i manualy start ipurge i get
message about how much messages will be deleted, how much scanned and etc.
but process self never get to promt back.

I understand that this description doesnt provide any usefull information,
that will help identify problem. If i could identify it, i would already
fix it probably. But its my last hope, maybe someone can point me whats
wrong ?

-- 
Teresa


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: plus addressing over lmtp not working / sam [box] anyone p set

2008-12-15 Thread Alain Spineux
On Fri, Dec 12, 2008 at 5:35 PM, Stefan Pampel antispam
spamtest-eir1beu...@asp4.polyformal.de wrote:
 Alain Spineux schrieb am 11.12.2008 08:15:

 I dont see nothing wrong in your main.cf
 Can you post your master.cf ?

 ok, here is the master.cf

I dont see anything vrong,
ask your question to the postfix mailing list !


 thx, and bye

 Stefan

 #
 # Postfix master process configuration file.  For details on the format
 # of the file, see the master(5) manual page (command: man 5 master).
 #
 # Do not forget to execute postfix reload after editing this file.
 #
 # ==
 # service type  private unpriv  chroot  wakeup  maxproc command + args
 #   (yes)   (yes)   (yes)   (never) (100)
 # ==
 smtp  inet  n   -   n   -   -   smtpd
-o no_address_mappings
 #submission inet n   -   -   -   -   smtpd
 #  -o smtpd_tls_security_level=encrypt
 #  -o smtpd_sasl_auth_enable=yes
 #  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
 #  -o milter_macro_daemon_name=ORIGINATING
 #smtps inet  n   -   -   -   -   smtpd
 #  -o smtpd_tls_wrappermode=yes
 #  -o smtpd_sasl_auth_enable=yes
 #  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
 #  -o milter_macro_daemon_name=ORIGINATING
 #628  inet  n   -   -   -   -   qmqpd
 pickupfifo  n   -   -   60  1   pickup
 cleanup   unix  n   -   n   -   0   cleanup
 qmgr  fifo  n   -   n   300 1   qmgr
 #qmgr fifo  n   -   -   300 1   oqmgr
 tlsmgrunix  -   -   -   1000?   1   tlsmgr
 rewrite   unix  -   -   n   -   -   trivial-rewrite
 bounceunix  -   -   -   -   0   bounce
 defer unix  -   -   -   -   0   bounce
 trace unix  -   -   -   -   0   bounce
 verifyunix  -   -   -   -   1   verify
 flush unix  n   -   -   1000?   0   flush
 proxymap  unix  -   -   n   -   -   proxymap
 proxywrite unix -   -   n   -   1   proxymap
 smtp  unix  -   -   n   -   -   smtp
 # When relaying mail as backup MX, disable fallback_relay to avoid MX loops
 relay unix  -   -   -   -   -   smtp
-o smtp_fallback_relay=
 #   -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
 showq unix  n   -   -   -   -   showq
 error unix  -   -   -   -   -   error
 retry unix  -   -   -   -   -   error
 discard   unix  -   -   -   -   -   discard
 local unix  -   n   n   -   -   local
 virtual   unix  -   n   n   -   -   virtual
 lmtp  unix  -   -   n   -   -   lmtp
 anvil unix  -   -   -   -   1   anvil
 scacheunix  -   -   -   -   1   scache
 #
 # 
 # Interfaces to non-Postfix software. Be sure to examine the manual
 # pages of the non-Postfix software to find out what options it wants.
 #
 # Many of the following services use the Postfix pipe(8) delivery
 # agent.  See the pipe(8) man page for information about ${recipient}
 # and other message envelope options.
 # 
 #
 # maildrop. See the Postfix MAILDROP_README file for details.
 # Also specify in main.cf: maildrop_destination_recipient_limit=1
 #
 maildrop  unix  -   n   n   -   -   pipe
  flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
 #
 # See the Postfix UUCP_README file for configuration details.
 #
 uucp  unix  -   n   n   -   -   pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail
 ($recipient)
 #
 # Other external delivery methods.
 #
 ifmailunix  -   n   n   -   -   pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
 bsmtp unix  -   n   n   -   -   pipe
  flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender
 $recipient
 scalemail-backend unix  -   n   n   -   2   pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store
 ${nexthop} ${user} ${extension}
 mailman   unix  -   n   n   -   -   pipe
  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  ${nexthop} ${user}
 amavisfeed unix-   -   n-  2 lmtp
 -o lmtp_data_done_timeout=1200
 -o lmtp_send_xforward_command=yes
 -o lmtp_tls_note_starttls_offer=no
 127.0.0.1:10025 inet n-   

Re: Cyrus Deadblocking

2008-12-15 Thread Patrick Boutilier
Henrique de Moraes Holschuh wrote:
 On Mon, 15 Dec 2008, Teresa wrote:
 since yesterday i have strange behavier of my productive mail server, and i
 cannt find the reason for 2 days allready.
 
 Which kernel?  If it is Linux 2.6.27.8 or 2.6.27.9, try downgrading...
 

What is wrong with those kernels?

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Rights question

2008-12-15 Thread Paul van der Vlis
Hello,

I gave anyone the right to list and post to the mailbox user.jan.Sent.
But when I give that as the folder for sent-messages in Thunderbird, I
get an error refused. What do I wrong?

localhost lam user.jan.Sent
jan lrswipcda
anyone lp

I don't want that anyone can read all the messages, only post messages.

Met vriendelijke groet,
Paul van der Vlis.




-- 
http://www.vandervlis.nl/


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Cyrus Deadblocking

2008-12-15 Thread Henrique de Moraes Holschuh
On Mon, 15 Dec 2008, Teresa wrote:
 since yesterday i have strange behavier of my productive mail server, and i
 cannt find the reason for 2 days allready.

Which kernel?  If it is Linux 2.6.27.8 or 2.6.27.9, try downgrading...

-- 
  One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie. -- The Silicon Valley Tarot
  Henrique Holschuh

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Cyrus Deadblocking

2008-12-15 Thread Adam Tauno Williams
 since yesterday i have strange behavier of my productive mail server, and i
 cannt find the reason for 2 days allready.

Does dmesg show anything odd?

 I didnt changed anything lately, but yesterday my cyrus starts rise cpu
 load up to 100% and after some time it stop responding. Mostly its a lmtp
 process, but it happends to pop3 also, or to imapd process self.
 What helps - restart. There is nothing in the log what would show the
 problem.

If you attach to a hung process with strace -p {pid} what does it look
like?

 All sendmail processes, as they use smmapd for local delivery are blocked
 also.
 Ca. 2 weeks ago i updated glibc to 2.9 version. But it worked this two
 weeks fine. 

Did you restart the services after the update?

 I am on gentoo box.

Oh.

 [ebuild   R   ] sys-libs/db-4.6.21_p3-r1  USE=-bootstrap -doc -java -nocxx
 -tcl -test 0 kB
 [ebuild   R   ] sys-libs/glibc-2.9_p20081201  USE=gd (multilib) nls -debug
 -glibc-compat20 -glibc-omitfp (-hardened) -profile (-selinux) -vanilla 0
 kB
 [ebuild   R   ] net-mail/cyrus-imapd-2.3.13  USE=idled pam ssl tcpd
 (-drac) -kerberos -kolab -nntp -replication -snmp 0 kB

I assume the above is some Gentoo thing.

 I use squater, sieve, imap and pop3. Ipurge starts from cron time to time.
 If cyrus goes in to the blocking state, 

Sounds to be like Cyrus is not the only thing getting hung,  which
indicates the problem probably lies elsewhere.

 and i manualy start ipurge i get
 message about how much messages will be deleted, how much scanned and etc.
 but process self never get to promt back.
 I understand that this description doesnt provide any usefull information,
 that will help identify problem. If i could identify it, i would already
 fix it probably. But its my last hope, maybe someone can point me whats
 wrong ?


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Rights question

2008-12-15 Thread Joseph Brennan


--On Monday, December 15, 2008 17:30 +0100 Paul van der Vlis 
p...@vandervlis.nl wrote:

 Hello,

 I gave anyone the right to list and post to the mailbox user.jan.Sent.
 But when I give that as the folder for sent-messages in Thunderbird, I
 get an error refused. What do I wrong?

 localhost lam user.jan.Sent
 jan lrswipcda
 anyone lp

 I don't want that anyone can read all the messages, only post messages.

 Met vriendelijke groet,
 Paul van der Vlis.



I assume you are not the user 'jan'.

Sent messages are not mailed, but written with imap, so you need the
'i' right to save sent mail there.

Joseph Brennan
Columbia University Information Technology


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


imapd.conf option for setting SASL_PATH ?

2008-12-15 Thread Jeff Blaine
I need to explicitly override what our Cyrus IMAPd/SASL
build is using for SASL_PATH, as it appears to be
misusing what has already been explicitly configured:

http://asg.andrew.cmu.edu/archive/message.php?mailbox=archive.cyrus-saslmsg=9025

That is, it would appear that SASL does not take
'--with-plugindir=/wherever' to mean Find plugins
here and ONLY here.

Instead, it seems to mean, APPEND (not even PREPEND!)
/wherever to my compile-time generated list of places
to try to find plugins.

Is there a sasl_* option for imapd.conf to specify
where (and ONLY where) to look for SASL plugins?  As you
can see, I've already posted to the cyrus-sasl list.

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Rights question

2008-12-15 Thread Paul van der Vlis
Joseph Brennan schreef:
 
 --On Monday, December 15, 2008 17:30 +0100 Paul van der Vlis 
 p...@vandervlis.nl wrote:
 
 Hello,

 I gave anyone the right to list and post to the mailbox user.jan.Sent.
 But when I give that as the folder for sent-messages in Thunderbird, I
 get an error refused. What do I wrong?

 localhost lam user.jan.Sent
 jan lrswipcda
 anyone lp

 I don't want that anyone can read all the messages, only post messages.

 I assume you are not the user 'jan'.

No, the sysadmin.

 Sent messages are not mailed, but written with imap, so you need the
 'i' right to save sent mail there.

OK thanks, it works.

With regards,
Paul van der Vlis.




-- 
http://www.vandervlis.nl/


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Problems with Sieve in Debian Etch

2008-12-15 Thread Andrew Morgan
On Sat, 13 Dec 2008, Alessandro Oliveira wrote:

 Hi,

 I've been using cyrus-imap for the last 6 years in a Fedora Core 3 Box, since 
 cyrus compile gives me headache I used Simon Matter's package.

 But some time ago we had to replace our serves with Debian Etch, a wonderful 
 experience, apt-get is by far the most reliable update software, but the 
 problem lies with the cyrus-2.2 default package. All the Imap and everyting 
 else is working perfect except sieve.

 When I try to create a script using sieveshell -u username -a username 
 localhost, them use put vacation-username.sieve and after that activate 
 vacation-username.sieve, it feels to be correct, but when trying to deliver 
 any message I get:

 WARNING: sieve script /var/lib/cyrus/sieve/u/username/defaultbc doesn't 
 exist: No such file or directory

 and checking the sieve dir on /var/lib/cyrus/sieve the directory above 
 actually doesn't exist, but it created a global/defaultbc

 do you happen to know if this is a bug or maybe a misconfiguration ?

Are you authenticating with sieveshell as a cyrus admin user?  I can't 
remember the details of how it works, but it is possible to create 
global sieve scripts, which is probably done as the cyrus admin user.

You really shouldn't be giving admin rights to a regular IMAP user 
account.  Use a separate account as cyrus admin.

Andy

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html