hi!
$ dovecot --exec-mail ext /usr/lib/dovecot/expire-tool.sh /usr/lib/dovecot/expire-tool.sh: 9: Bad substitution
What's the problem, do I miss something? This is the first time, I trying to use expire.
This is an Ubuntu 10.04 .
Thank you,
tamas
On Tue, Jul 6, 2010 at 11:35, Papp Tamás tompos@martos.bme.hu wrote:
/usr/lib/dovecot/expire-tool.sh
Is it a script? I'm on Ubuntu 9.10 with Dovecot 1.1.11 and there is no /usr/lib/dovecot/expire-tool.sh though there is a /usr/lib/dovecot/expire-tool file which is an executable binary.
marconi/root/x0 /root 381# ls -dl /usr/lib/dovecot/expire-tool -rwxr-xr-x 1 root root 733856 2009-10-15 00:38 /usr/lib/dovecot/expire-tool marconi/root/x0 /root 382# od -Ax -tx4 -w16 < /usr/lib/dovecot/expire-tool | head 000000 464c457f 00010102 00000000 00000000 000010 003e0003 00000001 00007fa0 00000000 000020 00000040 00000000 000b2b60 00000000 000030 00000000 00380040 00400009 001c001d 000040 00000006 00000005 00000040 00000000 000050 00000040 00000000 00000040 00000000 000060 000001f8 00000000 000001f8 00000000 000070 00000008 00000000 00000003 00000004 000080 00000238 00000000 00000238 00000000 000090 00000238 00000000 0000001c 00000000 marconi/root/x0 /root 383#
Phil Howard wrote:
On Tue, Jul 6, 2010 at 11:35, Papp Tamás tompos@martos.bme.hu wrote:
/usr/lib/dovecot/expire-tool.sh
Is it a script? I'm on Ubuntu 9.10 with Dovecot 1.1.11 and there is no /usr/lib/dovecot/expire-tool.sh though there is a /usr/lib/dovecot/expire-tool file which is an executable binary.
marconi/root/x0 /root 381# ls -dl /usr/lib/dovecot/expire-tool -rwxr-xr-x 1 root root 733856 2009-10-15 00:38 /usr/lib/dovecot/expire-tool marconi/root/x0 /root 382# od -Ax -tx4 -w16 < /usr/lib/dovecot/expire-tool | head 000000 464c457f 00010102 00000000 00000000 000010 003e0003 00000001 00007fa0 00000000 000020 00000040 00000000 000b2b60 00000000 000030 00000000 00380040 00400009 001c001d 000040 00000006 00000005 00000040 00000000 000050 00000040 00000000 00000040 00000000 000060 000001f8 00000000 000001f8 00000000 000070 00000008 00000000 00000003 00000004 000080 00000238 00000000 00000238 00000000 000090 00000238 00000000 0000001c 00000000 marconi/root/x0 /root 383#
Possible apologies re grannies/egg-sucking, but:
Where you want to find out what a file "is" in situations like this, you may find the program "file" useful
luser@myhost:~$ file /usr/lib/dovecot/expire-tool /usr/lib/dovecot/expire-tool: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped luser@myhost:~$
On Ubuntu, the "file" program is provided by the package "file".
Bill
On Tue, Jul 06, 2010 at 01:06:42PM -0400, Phil Howard wrote:
On Tue, Jul 6, 2010 at 11:35, Papp Tamás tompos@martos.bme.hu wrote:
/usr/lib/dovecot/expire-tool.sh
Is it a script? I'm on Ubuntu 9.10 with Dovecot 1.1.11 and there is no /usr/lib/dovecot/expire-tool.sh though there is a /usr/lib/dovecot/expire-tool file which is an executable binary.
Sorry for the poor infor:(
Actually it's not exactly the Ubuntu's version of dovecot.
It's 1.2.10-0~auto+106 from http://xi.rename-it.nl/debian/ .
And yes, it's a script:
#!/bin/sh # # To make expire-tool working some failing plugins have to be removed # from MAIL_PLUGINS environment variable. # (see: http://wiki.dovecot.org/Plugins/Expire) # # This script must be installed as /usr/lib/dovecot/expire-tool.sh
MAIL_PLUGINS=${MAIL_PLUGINS//imap_quota/} MAIL_PLUGINS=${MAIL_PLUGINS//mail_log/}
exec ${0%.sh} "$@"
Thank you,
tamas
Looks like a newer version that I can't help on. Should be plenty others around at some point.
-- sHiFt HaPpEnS!
Phil Howard wrote, On 2010. 07. 06. 23:10:
Looks like a newer version that I can't help on. Should be plenty others around at some point.
If I run only the pure binary:
$ dovecot --exec-mail ext /usr/lib/dovecot/expire-tool Error: dlopen(/usr/lib/dovecot/modules/imap/lib11_imap_quota_plugin.so) failed: /usr/lib/dovecot/modules/imap/lib11_imap_quota_plugin.so: undefined symbol: capability_string Fatal: Couldn't load required plugins
I'm sure, I do something the wrong way.
tamas
Hi,
I'm sure, I do something the wrong way.
indeed.
Check dovecot-wiki, section "Dovecot v1.2":
create the expire-tool.sh and use this instead of the binary.
best regards,
Anton
participants (7)
-
Anton Dollmaier
-
Edgar Fuß
-
Papp Tamas
-
Papp Tamás
-
Phil Howard
-
Timo Sirainen
-
William Blunn