Re: [Dovecot] expire plugin with 1.2 cronjob undefined symbol: capability_string / ignoring virtual namespace ?

2009-07-10 Thread Robert Schetterer
Robert Schetterer schrieb:
 dovecot@dovecot.org schrieb:
 Hi,

 this looks like one of my queued problems:

 On AIX I get a message that indicates missing global symbols.

 For example client_read_args. It is defined in src/imap/client.c but
 just linked at build time to the imap executable, while the
 expire-tool does not provide this function.

 Does expire-tool require the plugins quota and quota_imap at all?

 Is it the same issue or just another AIX specific problem I've to fix? :-)

 Ralf


 This is what the AIX runtime linker outputs:

 # /usr/local/dovecot-1.2.dev/sbin/dovecot \
 --exec-mail ext \
 /usr/local/dovecot-1.2.dev/libexec/dovecot/expire-tool \
  --test

 Info: Loading modules from directory:
  /usr/local/dovecot-1.2.dev/lib/dovecot/imap
 Info: Module loaded:
  /usr/local/dovecot-1.2.dev/lib/dovecot/imap/lib10_quota_plugin.so
 Error:
 dlopen(/usr/local/dovecot-1.2.dev/lib/dovecot/imap/lib11_imap_quota_plugin.so)
 failed: rtld: 0712-001 Symbol client_read_args was referenced
   from module
 /usr/local/dovecot-1.2.dev/lib/dovecot/imap/lib11_imap_quota_plugin.so(),
   but a runtime definition of the symbol was not found.
 rtld: 0712-001 Symbol client_send_command_error was referenced
   from module
 /usr/local/dovecot-1.2.dev/lib/dovecot/imap/lib11_imap_quota_plugin.so(),
   but a runtime definition of the symbol was not found.
 rtld: 0712-001 Symbol client_send_tagline was referenced
   from module
 /usr/local/dovecot-1.2.dev/lib/dovecot/imap/lib11_imap_quota_plugin.so(),
   but a runtime definition of the symbol was not found.
 rtld: 0712-001 Symbol command_register was referenced
   from module
 /usr/local/dovecot-1.2.dev/lib/dovecot/imap/lib11_imap_quota_plugin.so(),
   but a runtime definition of the symbol was not found.
 rtld: 0712-001 Symbol capability_string was referenced
   from module
 /usr/local/dovecot-1.2.dev/lib/dovecot/imap/lib11_imap_quota_plugin.so(),
   but a runtime definition of the symbol was not found.
 rtld: 0712-001 Symbol command_unregister was referenced
   from module
 /usr/local/dovecot-1.2.dev/lib/dovecot/imap/lib11_imap_quota_plugin.so(),
   but a runtime definition of the symbol was not found.
 rtld: 0712-001 Symbol client_send_line was referenced
   from module
 /usr/local/dovecot-1.2.dev/lib/dovecot/imap/lib11_imap_quota_plugin.so(),
   but a runtime definition of the symbol was not found.
 Additional errors occurred but are not reported.
 Fatal: Couldn't load required plugins


 Robert Schetterer schrieb am 08.07.2009 11:13:
 Hi,
 sorry if this asked twice,
 i ve searched the list and found some equal posts, but couldnt
 get my problem fixed with it

 if running cronjob with expire ( using mysql )
 i get

 dovecot -c /etc/dovecot/dovecot.conf --exec-mail ext
 /usr/lib/dovecot/expire-tool --test
 Info: Loading modules from directory: /usr/lib/dovecot/modules/imap
 Info: Module loaded: /usr/lib/dovecot/modules/imap/lib01_acl_plugin.so
 Error: dlopen(/usr/lib/dovecot/modules/imap/lib02_imap_acl_plugin.so)
 failed: /usr/lib/dovecot/modules/imap/lib02_imap_acl_plugin.so:
 undefined symbol: capability_string
 Fatal: Couldn't load required plugins

 someone tips how to fix it ?
 perhaps problems relate to mail_location settings?

 dovecot --version
 1.2.rc8

 
 Hm, I ve read
 
 http://dovecot.org/pipermail/dovecot/2009-June/040126.html
 
 and used this script ( only problem to original was case sensitve
 mail_plugins)
 
 #!/bin/bash
 MAIL_PLUGINS=${mail_plugins//imap_quota/}
 /usr/lib/dovecot/expire-tool $1
 
 now it runs
 dovecot -c /etc/dovecot/dovecot.conf --exec-mail ext
 /usr/sbin/expire-tool.sh --test
 Info: Loading modules from directory: /usr/lib/dovecot/modules/imap
 Info: rob...@schetterer.com/Trash: stop, expire time in future: Wed Jul
 15 10:34:39 2009
 
 but i still have to test if there is a real delete

now that i run the cronjob
it stops before deleting
cause of hanging with virtual namespace
it should be possible to ignore ( not honor ) this with the script
but for now i hung with how to, can somebody help ?

dovecot -c /etc/dovecot/dovecot.conf --exec-mail ext
/usr/sbin/expire-tool.sh
Info: Loading modules from directory: /usr/lib/dovecot/modules/imap
Info: auth input:
home=maildir:/usr/local/virtual/schetterer.com/rob...@schetterer.com/
Info: auth input: quota_rule=*:bytes=1024
Info: auth input: quota_rule2=Trash:storage=50240
Info: auth input: quota_rule3=Sent:storage=50240
Info: auth input: quota_rule4=Drafts:storage=50240
Info: auth input: quota_rule5=Templates:storage=50240
Info: auth input: quota_rule6=Junk:storage=50240
Info: auth input:
mail=maildir:/usr/local/virtual/schetterer.com/rob...@schetterer.com/
Info: auth input: namespace_1_inbox=yes
Info: auth input: uid=1001
Info: auth input: gid=1001
Info: Namespace: type=private, prefix=, sep=/, inbox=yes, hidden=no,
list=yes, subscriptions=yes
Info: maildir:

[Dovecot] expire plugin with 1.2 cronjob undefined symbol: capability_string

2009-07-08 Thread Robert Schetterer
Hi,
sorry if this asked twice,
i ve searched the list and found some equal posts, but couldnt
get my problem fixed with it

if running cronjob with expire ( using mysql )
i get

dovecot -c /etc/dovecot/dovecot.conf --exec-mail ext
/usr/lib/dovecot/expire-tool --test
Info: Loading modules from directory: /usr/lib/dovecot/modules/imap
Info: Module loaded: /usr/lib/dovecot/modules/imap/lib01_acl_plugin.so
Error: dlopen(/usr/lib/dovecot/modules/imap/lib02_imap_acl_plugin.so)
failed: /usr/lib/dovecot/modules/imap/lib02_imap_acl_plugin.so:
undefined symbol: capability_string
Fatal: Couldn't load required plugins

someone tips how to fix it ?
perhaps problems relate to mail_location settings?

dovecot --version
1.2.rc8

-- 
Best Regards

MfG Robert Schetterer

Germany/Munich/Bavaria


Re: [Dovecot] expire plugin with 1.2 cronjob undefined symbol: capability_string

2009-07-08 Thread Robert Schetterer
dovecot@dovecot.org schrieb:
 Hi,
 
 this looks like one of my queued problems:
 
 On AIX I get a message that indicates missing global symbols.
 
 For example client_read_args. It is defined in src/imap/client.c but
 just linked at build time to the imap executable, while the
 expire-tool does not provide this function.
 
 Does expire-tool require the plugins quota and quota_imap at all?
 
 Is it the same issue or just another AIX specific problem I've to fix? :-)
 
 Ralf
 
 
 This is what the AIX runtime linker outputs:
 
 # /usr/local/dovecot-1.2.dev/sbin/dovecot \
 --exec-mail ext \
 /usr/local/dovecot-1.2.dev/libexec/dovecot/expire-tool \
  --test
 
 Info: Loading modules from directory:
  /usr/local/dovecot-1.2.dev/lib/dovecot/imap
 Info: Module loaded:
  /usr/local/dovecot-1.2.dev/lib/dovecot/imap/lib10_quota_plugin.so
 Error:
 dlopen(/usr/local/dovecot-1.2.dev/lib/dovecot/imap/lib11_imap_quota_plugin.so)
 failed: rtld: 0712-001 Symbol client_read_args was referenced
   from module
 /usr/local/dovecot-1.2.dev/lib/dovecot/imap/lib11_imap_quota_plugin.so(),
   but a runtime definition of the symbol was not found.
 rtld: 0712-001 Symbol client_send_command_error was referenced
   from module
 /usr/local/dovecot-1.2.dev/lib/dovecot/imap/lib11_imap_quota_plugin.so(),
   but a runtime definition of the symbol was not found.
 rtld: 0712-001 Symbol client_send_tagline was referenced
   from module
 /usr/local/dovecot-1.2.dev/lib/dovecot/imap/lib11_imap_quota_plugin.so(),
   but a runtime definition of the symbol was not found.
 rtld: 0712-001 Symbol command_register was referenced
   from module
 /usr/local/dovecot-1.2.dev/lib/dovecot/imap/lib11_imap_quota_plugin.so(),
   but a runtime definition of the symbol was not found.
 rtld: 0712-001 Symbol capability_string was referenced
   from module
 /usr/local/dovecot-1.2.dev/lib/dovecot/imap/lib11_imap_quota_plugin.so(),
   but a runtime definition of the symbol was not found.
 rtld: 0712-001 Symbol command_unregister was referenced
   from module
 /usr/local/dovecot-1.2.dev/lib/dovecot/imap/lib11_imap_quota_plugin.so(),
   but a runtime definition of the symbol was not found.
 rtld: 0712-001 Symbol client_send_line was referenced
   from module
 /usr/local/dovecot-1.2.dev/lib/dovecot/imap/lib11_imap_quota_plugin.so(),
   but a runtime definition of the symbol was not found.
 Additional errors occurred but are not reported.
 Fatal: Couldn't load required plugins
 
 
 Robert Schetterer schrieb am 08.07.2009 11:13:
 Hi,
 sorry if this asked twice,
 i ve searched the list and found some equal posts, but couldnt
 get my problem fixed with it

 if running cronjob with expire ( using mysql )
 i get

 dovecot -c /etc/dovecot/dovecot.conf --exec-mail ext
 /usr/lib/dovecot/expire-tool --test
 Info: Loading modules from directory: /usr/lib/dovecot/modules/imap
 Info: Module loaded: /usr/lib/dovecot/modules/imap/lib01_acl_plugin.so
 Error: dlopen(/usr/lib/dovecot/modules/imap/lib02_imap_acl_plugin.so)
 failed: /usr/lib/dovecot/modules/imap/lib02_imap_acl_plugin.so:
 undefined symbol: capability_string
 Fatal: Couldn't load required plugins

 someone tips how to fix it ?
 perhaps problems relate to mail_location settings?

 dovecot --version
 1.2.rc8

 

Hm, I ve read

http://dovecot.org/pipermail/dovecot/2009-June/040126.html

and used this script ( only problem to original was case sensitve
mail_plugins)

#!/bin/bash
MAIL_PLUGINS=${mail_plugins//imap_quota/}
/usr/lib/dovecot/expire-tool $1

now it runs
dovecot -c /etc/dovecot/dovecot.conf --exec-mail ext
/usr/sbin/expire-tool.sh --test
Info: Loading modules from directory: /usr/lib/dovecot/modules/imap
Info: rob...@schetterer.com/Trash: stop, expire time in future: Wed Jul
15 10:34:39 2009

but i still have to test if there is a real delete
-- 
Best Regards

MfG Robert Schetterer

Germany/Munich/Bavaria


Re: [Dovecot] expire plugin with 1.2 cronjob undefined symbol: capability_string

2009-07-08 Thread Ralf Becker
Thanks, that's it!
I've added it to the dovecot wiki:
   http://wiki.dovecot.org/Plugins/Expire


By the way:

You are using:

  #!/bin/bash
  MAIL_PLUGINS=${mail_plugins//imap_quota/}
  /usr/lib/dovecot/expire-tool $1

While mail_plugins in not defined and therefore empty it's the same
like:

  #!/bin/bash
  MAIL_PLUGINS=
  /usr/lib/dovecot/expire-tool $1

so you are not removing just imap_quota but your are removing _all_
plugins. Just for correctness :-)


Ralf


Robert Schetterer schrieb am 08.07.2009 11:57:
 
 Hm, I ve read
 
 http://dovecot.org/pipermail/dovecot/2009-June/040126.html
 
 and used this script ( only problem to original was case sensitve
 mail_plugins)
 
 #!/bin/bash
 MAIL_PLUGINS=${mail_plugins//imap_quota/}
 /usr/lib/dovecot/expire-tool $1
 
 now it runs
 dovecot -c /etc/dovecot/dovecot.conf --exec-mail ext
 /usr/sbin/expire-tool.sh --test
 Info: Loading modules from directory: /usr/lib/dovecot/modules/imap
 Info: rob...@schetterer.com/Trash: stop, expire time in future: Wed Jul
 15 10:34:39 2009
 
 but i still have to test if there is a real delete

-- 
__

 Dipl.-Inform. (FH) Ralf Becker Rechenzentrum (r/ft) der FH Trier
 (Network|Mail|Web|Firewall)   University of applied sciences
 Administrator   Schneidershof, D-54293 Trier

   Mail: beck...@fh-trier.deFon: +49 651 8103 499
Web: http://www.fh-trier.de/~beckerrFax: +49 651 8103 214
 PubKey: http://www.fh-trier.de/~beckerr Crypto: GnuPG, S/MIME
__

 Wenn Gott gewollt haette, dass E-Mail in HTML geschrieben wuerden,
 endeten Gebete traditionell mit /amen. (Tom Listen)


smime.p7s
Description: S/MIME Cryptographic Signature