From owner-freebsd-ports@FreeBSD.ORG Fri Sep 21 09:01:23 2007 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AC43116A41B for ; Fri, 21 Sep 2007 09:01:23 +0000 (UTC) (envelope-from schweizer.martin@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by mx1.freebsd.org (Postfix) with ESMTP id 3A2F513C4A7 for ; Fri, 21 Sep 2007 09:01:23 +0000 (UTC) (envelope-from schweizer.martin@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so665682nfb for ; Fri, 21 Sep 2007 02:01:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=jkUmrhbOfoAxn4EZltz8wdbb/mY8WfNL+SWjJ6sK0vI=; b=RS5+GbUD48I58S/ivk5FXvYcgm5cNoLJOWaOk857q7oNSMDLwtLM4q4NU1VMT+98jyY9Is8fy0fQ9lvZsR8Fomlvc8D5VWXcXtYnD2NxSx1JRtq/Ca6abiPSZaGfdlLdSy9BfbAvN/N5i56IM372QFeSDS3GcBICA6SwgiTACm4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=aQxHzBY87G3R350Bmf8NRSGGWq0T9jCxQUdYtol1KGFeidzTGEYb48n1kOkwViMmf0/Yu8eICJ6H+qviIN/urHnpL9eymAC3slsekV7GXRk227nbPZ0gUuN9XwCa154l5wlOOLkrboGYxiUtgztjuKTo3zTFPcUqX6rNsFSQJZI= Received: by 10.78.188.10 with SMTP id l10mr442373huf.1190363782333; Fri, 21 Sep 2007 01:36:22 -0700 (PDT) Received: by 10.78.70.2 with HTTP; Fri, 21 Sep 2007 01:36:22 -0700 (PDT) Message-ID: <380ccfd60709210136v2a90cf1ehaff94ab66bce0f98@mail.gmail.com> Date: Fri, 21 Sep 2007 10:36:22 +0200 From: "Martin Schweizer" To: "Matthew Seaman" , freebsd-ports@freebsd.org In-Reply-To: <46F23776.4080503@infracaninophile.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <46F23776.4080503@infracaninophile.co.uk> Cc: Subject: Re: mail/websieve -- doesn't get along with apache22 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Sep 2007 09:01:23 -0000 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,@rules,@mailboxes,@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 : > -----BEGIN PGP SIGNED MESSAGE----- > Hash: RIPEMD160 > > > 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. > > According to my reading of the porter's handbook, I think this port > shouldn't have any explicit dependency on any web server --- websieve > just installs a bunch of perl CGI scripts. I'll submit a patch to make > that so shortly. > > However my question is: can I use a generic cgi-bin dir as the location > for the files to go into, or should I be putting everything into > /usr/local/www/websieve ? If I can use a generic cgi-bin directory, > should that be /usr/local/www/cgi-bin ? > > 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 > > iD8DBQFG8jd23jDkPpsZ+VYRA7a7AJ9Tp2RLF1WBxfSfjcbe5Vald1QuhACfd+gT > GiDFaTXamFVNCLfZuFYq7CM= > =4AyR > -----END PGP SIGNATURE----- > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" > -- Martin Schweizer schweizer.martin@gmail.com Tel.: +41 32 512 48 54 (VoIP) Fax: +1 619 3300587