[Dovecot] Problem compile dovecot-sieve under Debian
I get the source from CVS:
# cvs -d :pserver:anonymous@dovecot.org:/home/cvs co dovecot-sieve
Edit configure.in to change
- AC_CONFIG_HEADERS([dsieve-config.h])
- AC_CONFIG_HEADERS(dsieve-config.h)
Launch autogen.sh, and I have some errors:
configure.in: 4: automake requires
AM_CONFIG_HEADER', not
AC_CONFIG_HEADER' configure.in: 11: automake requires
AM_PROG_LEX', not AC_PROG_LEX' automake: src/libsieve/Makefile.am: not supported: source file
../map.c' is in subdirectory
automake: src/libsieve/Makefile.am: not supported: source file
../imparse.c' is in subdirectory automake: src/libsieve/Makefile.am: lex source seen but
AC_DECL_YYTEXT'
not in `configure.in'
If i try to build:
# ./configure --with-dovecot=../dovecot-1.0.beta9
No error: ... configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating src/libsieve/Makefile config.status: creating stamp.h config.status: creating dsieve-config.h config.status: dsieve-config.h is unchanged
# make
gcc -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes
-Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2
-Wbad-function-cast -o sievec sievec.o
libsieve.a /usr/src/dovecot-1.0.beta9/src/lib/liblib.a
libsieve.a(script.o)(.text+0xa23): In function sieve_script_load': /usr/src/dovecot-sieve/src/libsieve/script.c:435: undefined reference to
map_refresh'
libsieve.a(script.o)(.text+0xaf0): In function sieve_script_unload': /usr/src/dovecot-sieve/src/libsieve/script.c:462: undefined reference to
map_free'
libsieve.a(sieve.o)(.text+0x1e6e): In function verify_flag': /usr/src/dovecot-sieve/src/libsieve/sieve.y:951: undefined reference to
imparse_isatom'
collect2: ld returned 1 exit status
make[3]: *** [sievec] Erreur 1
make[3]: Leaving directory /usr/src/dovecot-sieve/src/libsieve' make[2]: *** [all-recursive] Erreur 1 make[2]: Leaving directory
/usr/src/dovecot-sieve/src'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory `/usr/src/dovecot-sieve'
make: *** [all-recursive-am] Erreur 2
I try to install cyrus-dev or cyrus21-dev with apt-get, but nothing change, always the same error.
Does someone have success with plugin dovecot-sieve ?
Thanks
-- Dominique Feyer Administrateur Système Ch. de la Colline 5bis CH-1007 Lausanne dfeyer@net4all.ch
On 2006-06-16 18:53:14 +0200, Dominique Feyer wrote:
I try to install cyrus-dev or cyrus21-dev with apt-get, but nothing change, always the same error.
dovecot-sieve has its own sieve library copy intree
Does someone have success with plugin dovecot-sieve ?
yes. as you see here http://software.opensuse.org/download/server:/mail/SuSE_Linux_10.1/
darix
-- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org
On 6/17/06, Dominique Feyer dfeyer@net4all.ch wrote:
I get the source from CVS:
# cvs -d :pserver:anonymous@dovecot.org:/home/cvs co dovecot-sieve
Edit configure.in to change
- AC_CONFIG_HEADERS([dsieve-config.h])
- AC_CONFIG_HEADERS(dsieve-config.h)
Launch autogen.sh, and I have some errors:
configure.in: 4:
automake requires
AM_CONFIG_HEADER', notAC_CONFIG_HEADER' configure.in: 11: automake requires
AM_PROG_LEX', notAC_PROG_LEX' automake: src/libsieve/Makefile.am: not supported: source file
../map.c' is in subdirectory automake: src/libsieve/Makefile.am: not supported: source file../imparse.c' is in subdirectory automake: src/libsieve/Makefile.am: lex source seen but
AC_DECL_YYTEXT' not in `configure.in'
IIRC, this is caused by automake <= 1.4 I think, if you update to a newer automake, autogen.sh will work, can't remember if you still need to change that line at the top.
Tim
Linux Counter user #273956
Le samedi 17 juin 2006 à 08:43 +0800, Timothy White a écrit :
On 6/17/06, Dominique Feyer dfeyer@net4all.ch wrote:
I get the source from CVS:
# cvs -d :pserver:anonymous@dovecot.org:/home/cvs co dovecot-sieve
Edit configure.in to change
- AC_CONFIG_HEADERS([dsieve-config.h])
- AC_CONFIG_HEADERS(dsieve-config.h)
Launch autogen.sh, and I have some errors:
configure.in: 4:
automake requires
AM_CONFIG_HEADER', notAC_CONFIG_HEADER' configure.in: 11: automake requires
AM_PROG_LEX', notAC_PROG_LEX' automake: src/libsieve/Makefile.am: not supported: source file
../map.c' is in subdirectory automake: src/libsieve/Makefile.am: not supported: source file../imparse.c' is in subdirectory automake: src/libsieve/Makefile.am: lex source seen but
AC_DECL_YYTEXT' not in `configure.in'IIRC, this is caused by automake <= 1.4 I think, if you update to a newer automake, autogen.sh will work, can't remember if you still need to change that line at the top.
Tim
Dominique Feyer Administrateur Système Ch. de la Colline 5bis CH-1007 Lausanne dfeyer@net4all.ch
Sorry for the empty message.
After autogen.sh (automake 1.9), I have this message:
mail2:/usr/src/dovecot-sieve# ./autogen.sh /usr/share/aclocal/libmcrypt.m4:17: warning: underquoted definition of AM_PATH_LIBMCRYPT run info '(automake)Extending aclocal' or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
If i try ./configure && make && make install, the compilation is OK, but what about the libmcrypt.m4 error ?
Thanks
Le samedi 17 juin 2006 à 08:43 +0800, Timothy White a écrit :
On 6/17/06, Dominique Feyer dfeyer@net4all.ch wrote:
I get the source from CVS:
# cvs -d :pserver:anonymous@dovecot.org:/home/cvs co dovecot-sieve
Edit configure.in to change
- AC_CONFIG_HEADERS([dsieve-config.h])
- AC_CONFIG_HEADERS(dsieve-config.h)
Launch autogen.sh, and I have some errors:
configure.in: 4:
automake requires
AM_CONFIG_HEADER', notAC_CONFIG_HEADER' configure.in: 11: automake requires
AM_PROG_LEX', notAC_PROG_LEX' automake: src/libsieve/Makefile.am: not supported: source file
../map.c' is in subdirectory automake: src/libsieve/Makefile.am: not supported: source file../imparse.c' is in subdirectory automake: src/libsieve/Makefile.am: lex source seen but
AC_DECL_YYTEXT' not in `configure.in'IIRC, this is caused by automake <= 1.4 I think, if you update to a newer automake, autogen.sh will work, can't remember if you still need to change that line at the top.
Tim
Dominique Feyer Administrateur Système Ch. de la Colline 5bis CH-1007 Lausanne dfeyer@net4all.ch
On 2006-06-19 11:12:10 +0200, Dominique Feyer wrote:
After autogen.sh (automake 1.9), I have this message:
mail2:/usr/src/dovecot-sieve# ./autogen.sh /usr/share/aclocal/libmcrypt.m4:17: warning: underquoted definition of AM_PATH_LIBMCRYPT run info '(automake)Extending aclocal' or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
If i try ./configure && make && make install, the compilation is OK, but what about the libmcrypt.m4 error ?
libmcrypt nothing dovecot related. smart people would recognize the path ;)
open a bug against the package
darix
-- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org
My sieve script is successfuly compiled by dovecot-sieve (.dovecot.sievec). But If y try to send an email with my sieve script (redirect), I have this message:
==> /var/log/mail.log <== Jun 19 13:46:59 mail2 postfix/smtpd[2614]: connect from unknown[10.0.0.254] Jun 19 13:46:59 mail2 postfix/smtpd[2614]: 8F2047FF1: client=unknown[10.0.0.254] Jun 19 13:46:59 mail2 postfix/cleanup[2615]: 8F2047FF1: message-id=44968E6C.5080501@lda.net4all.ch Jun 19 13:46:59 mail2 postfix/qmgr[2603]: 8F2047FF1: from=info@lda.net4all.ch, size=740, nrcpt=1 (queue active) Jun 19 13:46:59 mail2 postfix/smtpd[2614]: disconnect from unknown[10.0.0.254] Jun 19 13:46:59 mail2 postfix/pipe[2611]: 8F2047FF1: to=info@lda.net4all.ch, relay=dovecot, delay=0, status=sent (lda.net4all.ch) Jun 19 13:46:59 mail2 postfix/qmgr[2603]: 8F2047FF1: removed
==> /var/log/dovecot/dovecot <== dovecot: Jun 19 13:46:59 Error: auth(default): deliver(info@lda.net4all.ch): Error: Sendmail process terminated abnormally, signal 11
Signal 11 in sendmail is memory problem or bug. I use the debian postfix sendmail compatibility command. Postfix configuration is OK and can send message to local and distant user.
My LDA configuration:
protocol lda { postmaster_address = postmaster@clm.net4all.ch #hostname = mail_plugins = cmusieve mail_plugin_dir = /usr/local/dovecot-1.0-beta9/lib/dovecot/lda sendmail_path = /usr/sbin/sendmail auth_socket_path = /var/run/dovecot/auth-master }
Le lundi 19 juin 2006 à 11:12 +0200, Dominique Feyer a écrit :
Sorry for the empty message.
After autogen.sh (automake 1.9), I have this message:
mail2:/usr/src/dovecot-sieve# ./autogen.sh /usr/share/aclocal/libmcrypt.m4:17: warning: underquoted definition of AM_PATH_LIBMCRYPT run info '(automake)Extending aclocal' or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
If i try ./configure && make && make install, the compilation is OK, but what about the libmcrypt.m4 error ?
Thanks
Le samedi 17 juin 2006 à 08:43 +0800, Timothy White a écrit :
On 6/17/06, Dominique Feyer dfeyer@net4all.ch wrote:
I get the source from CVS:
# cvs -d :pserver:anonymous@dovecot.org:/home/cvs co dovecot-sieve
Edit configure.in to change
- AC_CONFIG_HEADERS([dsieve-config.h])
- AC_CONFIG_HEADERS(dsieve-config.h)
Launch autogen.sh, and I have some errors:
configure.in: 4:
automake requires
AM_CONFIG_HEADER', notAC_CONFIG_HEADER' configure.in: 11: automake requires
AM_PROG_LEX', notAC_PROG_LEX' automake: src/libsieve/Makefile.am: not supported: source file
../map.c' is in subdirectory automake: src/libsieve/Makefile.am: not supported: source file../imparse.c' is in subdirectory automake: src/libsieve/Makefile.am: lex source seen but
AC_DECL_YYTEXT' not in `configure.in'IIRC, this is caused by automake <= 1.4 I think, if you update to a newer automake, autogen.sh will work, can't remember if you still need to change that line at the top.
Tim
Dominique Feyer Administrateur Système Ch. de la Colline 5bis CH-1007 Lausanne dfeyer@net4all.ch
On 2006-06-19 13:53:07 +0200, Dominique Feyer wrote:
My sieve script is successfuly compiled by dovecot-sieve (.dovecot.sievec). But If y try to send an email with my sieve script (redirect), I have this message:
==> /var/log/mail.log <== Jun 19 13:46:59 mail2 postfix/smtpd[2614]: connect from unknown[10.0.0.254] Jun 19 13:46:59 mail2 postfix/smtpd[2614]: 8F2047FF1: client=unknown[10.0.0.254] Jun 19 13:46:59 mail2 postfix/cleanup[2615]: 8F2047FF1: message-id=44968E6C.5080501@lda.net4all.ch Jun 19 13:46:59 mail2 postfix/qmgr[2603]: 8F2047FF1: from=info@lda.net4all.ch, size=740, nrcpt=1 (queue active) Jun 19 13:46:59 mail2 postfix/smtpd[2614]: disconnect from unknown[10.0.0.254] Jun 19 13:46:59 mail2 postfix/pipe[2611]: 8F2047FF1: to=info@lda.net4all.ch, relay=dovecot, delay=0, status=sent (lda.net4all.ch) Jun 19 13:46:59 mail2 postfix/qmgr[2603]: 8F2047FF1: removed
==> /var/log/dovecot/dovecot <== dovecot: Jun 19 13:46:59 Error: auth(default): deliver(info@lda.net4all.ch): Error: Sendmail process terminated abnormally, signal 11
Signal 11 in sendmail is memory problem or bug. I use the debian postfix sendmail compatibility command. Postfix configuration is OK and can send message to local and distant user.
how does your postfix config look like? i just do mailbox_command = /usr/lib/dovecot/deliver and it works
darix
-- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org
As you can see in the log:
Jun 19 13:46:59 mail2 postfix/pipe[2611]: 8F2047FF1: to=info@lda.net4all.ch, relay=dovecot, delay=0, status=sent (lda.net4all.ch)
the relay is dovecot, the mail is delivered by Dovecot LDA, but when the sieve plugin try to send an email, the sendmail command exit with signal 11.
I can read the mail with IMAP, but sieve redirect, vacation does nothing.
Le lundi 19 juin 2006 à 16:11 +0200, Marcus Rueckert a écrit :
Jun 19 13:46:59 mail2 postfix/pipe[2611]: 8F2047FF1:
to=info@lda.net4all.ch, relay=dovecot, delay=0, status=sent (lda.net4all.ch)
Dominique Feyer Administrateur Système Ch. de la Colline 5bis CH-1007 Lausanne dfeyer@net4all.ch
On 2006-06-19 17:01:49 +0200, Dominique Feyer wrote:
the relay is dovecot, the mail is delivered by Dovecot LDA, but when the sieve plugin try to send an email, the sendmail command exit with signal 11.
right... so you added it to master.cf ... can we see that line? and maybe the line from main.cf where you assign the relay.
darix
-- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org
Le lundi 19 juin 2006 à 18:32 +0200, Marcus Rueckert a écrit :
On 2006-06-19 17:01:49 +0200, Dominique Feyer wrote:
the relay is dovecot, the mail is delivered by Dovecot LDA, but when the sieve plugin try to send an email, the sendmail command exit with signal 11.
right... so you added it to master.cf ... can we see that line? and maybe the line from main.cf where you assign the relay.
darix
For the transport in main.cf:
transport_maps = proxy:pgsql:/etc/postfix/transport.cf
If i check with:
postmap -q domain.com proxy:pgsql:/etc/postfix/transport.cf
The command return:
dovecot:
And for master.cf dovecot unix - n n - - pipe flags=DRhu user=vmail argv=/usr/local/dovecot-1.0-beta9/libexec/dovecot/deliver -c /usr/local/dovecot-1.0-beta9/etc/dovecot.conf -d ${recipient}
This command is the same as in the wiki,
Thanks
-- Dominique Feyer Administrateur Système Ch. de la Colline 5bis CH-1007 Lausanne dfeyer@net4all.ch
participants (3)
-
Dominique Feyer
-
Marcus Rueckert
-
Timothy White