mail/websieve -- doesn't get along with apache22

Matthew Seaman m.seaman at infracaninophile.co.uk
Fri Sep 21 07:54:57 PDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Martin Schweizer wrote:
> Hello Matthew
> 
> Sorry for the delay. I use now websieve since two years. I found some
> pitfalls while the installation. I attache you my comments which I
> send to ports@ in the past. Hope this helpls.
> 
> PS: I also looking to contact the developers for future releases but
> they do not get answers.
> 
> 
> Kind regards,
> 
> After more the one successfully installation I found some problems in
> the actualy ports (from yesterday):
> 
> - while building websieve make wants download every time the old apache port
> 
> Makefile
> *********
> [snip]
> 
> RUN_DEPENDS=    ${SITE_PERL}/IMAP/Admin.pm:${PORTSDIR}/mail/p5-IMAP-Admin \
>                ${SITE_PERL}/IMAP/Sieve.pm:${PORTSDIR}/mail/p5-IMAP-Sieve
> .endif
> ## RUN_DEPENDS+=        ${LOCALBASE}/www/cgi-bin:${PORTSDIR}/${APACHE_PORT}
> 
> PKGMESSAGE=     ${WRKDIR}/pkg-message
> 
> [snip]
> 
> I alway commented out "RUN_DEPENDS..."
> 
> 
> - ... also while building make would copy websieve.pl to
> /usr/local/www/cgi-bin but it create a file called cgi-bin in
> /usr/local/www
> 
> 
> - websieve.pl:
> 
> [snip]
> 
> #creates global variables $mode, at rules, at mailboxes, at quota and %vacation;
> # get quota
>        @quota=&getquota("INBOX") if ($havequota || !$useprocmail);
>        if ($IMAPERROR = /no errors/i && !$ismanager && $IMAPERROR) {
>                $error=$IMAPERROR;
>                &closeimap;
>                &closesieve;
>                &incorrect_login;
>                exit;
>        }
> 
> [snip]
> 
> 
> In the port there is  here ("if ($IMAPERROR =~ /no..." ) a tile sign
> but for successfully login you have to remove this.
> 
> See also http://www.linuxnetmag.com/en/issue8/printm8sieve1.html
> 
> - error "base64 decoding..." in /var/log/messages
> 
> Sep  7 15:47:22 acsvfbsd04 imap[547]: login: mail3 [192.168.10.6]
> martin plaintext User logged in
> Sep  7 15:47:22 acsvfbsd04 sieve[548]: badlogin: mail3[192.168.10.6]
> PLAIN error base64 decoding string
> Sep  7 15:47:34 acsvfbsd04 imap[547]: login: mail3 [192.168.10.6] root
> plaintext User logged in
> Sep  7 15:47:34 acsvfbsd04 sieve[551]: badlogin: mail3[192.168.10.6]
> PLAIN error base64 decoding string
> 
> Here you have to edit in /usr/local/lib/perl5/site_perl/5.8.8/IMAP
> the file Sieve.pm:
> 
> Old:
> $encode=encode_base64($userpass);
> 
> New:
> $encode=encode_base64($userpass, '');
> 
> See also http://lists.freebsd.org/pipermail/freebsd-ports-bugs/2006-June/091540.html
> 
> 
> - If you change the location from /var/imap  to another location (f.e.
> to /usr/imap
>  because you need more disk space), you'll get the following message
> in /var/log/messages:
> 
> Sep  7 16:05:25 acsvfbsd04 imap[656]: login: acsvfbsd04 [192.168.10.6]
> martin plaintext User logged in
> Sep  7 16:05:25 acsvfbsd04 sieve[682]: IOERROR: creating directory
> /var/imap: Permission denied
> Sep  7 16:05:25 acsvfbsd04 sieve[682]: mkdir /var/imap: Permission denied
> Sep  7 16:05:25 acsvfbsd04 sieve[682]: error in actions_setuser()
> 
> Websieve wants to creat some file in /var/imap everytime you log in. I
> create an symlink like this:
> 
> lrwxr-xr-x   1 cyrus   cyrus       18  7 Sep 16:23 imap -> /usr/imap/var/imap
> 
> Afterwoods I works like a charme.
> 
> 
> 
> 
> 2007/9/20, Matthew Seaman <m.seaman at infracaninophile.co.uk>:
> 
> Dear all,
> 
> The mail/websieve port has a bug when installing with apache22 -- it
> registers a RUN_DEPENDS on /usr/local/www/cgi-bin and tries to install
> whatever the selected version of apache is to fulfil it.  Of course,
> apache22 uses /usr/local/www/apache22/cgi-bin so that's never going to
> work.


Hi, Martin,

Thanks for that.  I submitted ports/116493 last night, which addresses
some of the issues you mention.  I don't have time to take on
maintainership of this port, but I can certainly work up some additional
patches to address the points you mention.  The websieve project itself
seems to have ground to a halt, with no development work since about
2004, but it is still widely recommended for dealing with sieve stuff.

	Cheers,

	Matthew


- --
Dr Matthew J Seaman MA, D.Phil.                       Flat 3
                                                      7 Priory Courtyard
PGP: http://www.infracaninophile.co.uk/pgpkey         Ramsgate
                                                      Kent, CT11 9PW, UK
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG89ss3jDkPpsZ+VYRA/NPAKCASh5ht4PbCaj1qIYmEYRxGgA6ngCdEIw8
56isNULvYeeqdCfIl2ZlRb4=
=MoMr
-----END PGP SIGNATURE-----


More information about the freebsd-ports mailing list