On Sunday 10 June 2007, Sam Varshavchik wrote:
> Milan Obuch writes:
> > Hi,
> > I am trying to update FreeBSD courier port to 0.55.1. This works, but I
> > need to include some support for WebMLM interface for completeness. While
> > testing it I found something which could be considered a bug.

Just for testing, I created a jail virtual machine. This way cleanup action 
needed afterwards is just simple rm -rf, basically. Its name, c5.dino.sk, 
will be used in following clarification.

> > I created directory /var/List/1 with couriermlm create command, chowned
> > it to courier, set URL, LISTNAME and LISTDESCR options. Address used was
> > [EMAIL PROTECTED] - basically I thing trouble occurs because last component 
> > in
> > directory name (1) is not equal to local part of address (test).

c5# couriermlm create /var/List/1 [EMAIL PROTECTED] 
URL=http://c5.dino.sk/cgi-bin/webmlm/test1 LISTNAME=test1 LISTDESCR=TestMLM1
c5# couriermlm create /var/List/2 [EMAIL PROTECTED] 
URL=http://c5.dino.sk/cgi-bin/webmlm/test2 LISTNAME=test2 LISTDESCR=TestMLM2
c5# chown -R 465:465 /var/List/?

Command used to start webmlmd was
${bindir}/webmlmd start ${sysconfdir}/webmlmrc
(with variables resolved appropriately, /usr/local/bin 
and /usr/local/etc/courier, repectively).

There is
LISTS=/var/List/1:/var/List/2
line in webmlmrc file.

> > Using 
> > http://testserver/cgi-bin/webmlm URL I got simple page listing all lists
> > created (I created another one, just for fun), and LISTNAME option was
> > used in text, but in URL directory name was used. Clicked there, and
> > subscription page was shown. I put some address into subscribe box and
> > clicked subscribe button. Until now, all is well. However, in mail sent
> > URL used was based on URL list option, in my case test, and it does not
> > work - subscription confirmation URL told 'no such list'. After replacing
> > '1' in URL with 'test' comfirmation succeeded successfully.
>

http://c5.dino.sk/cgi-bin/webmlm/ shows

Courier Mailing List Manager
The following mailing lists are available on this server:
test1
test2

(test1 and test2 are links to http://c5.dino.sk/cgi-bin/webmlm/1 and 
http://c5.dino.sk/cgi-bin/webmlm/2, respectively).

Clicking on test1, http://c5.dino.sk/cgi-bin/webmlm/1 shows

test1
TestMLM1 
To subscribe, send a blank E-mail message to <[EMAIL PROTECTED]>, or 
enter your E-mail address here: Subscribe
To unsubscribe, send a blank E-mail message to <[EMAIL PROTECTED]>, 
or enter your E-mail address: Unsubscribe

I put [EMAIL PROTECTED] into subscribe textbox and pressed subscribe button.

URL shown in address bar is http://c5.dino.sk/cgi-bin/webmlm/1/sendsub and 
content is

Request received
An E-mail message was sent to this address, which you should receive shortly. 
Follow the instructions in the E-mail message to process your request.
Continue

(Continue is clickable.)

Clicking on Continue gives me http://c5.dino.sk/cgi-bin/webmlm/1 again.

In confirmation mail, there is following:

Or, instead of replying, click here:

<URL:http://c5.dino.sk/cgi-bin/webmlm/test1/subconfirm/PKEJEKFLKMPMHILLPNGLFDCCGOKCOEGE>

When I enter 
http://c5.dino.sk/cgi-bin/webmlm/test1/subconfirm/PKEJEKFLKMPMHILLPNGLFDCCGOKCOEGE
 
into web browser, result is

List test1 not found.

But 
http://c5.dino.sk/cgi-bin/webmlm/1/subconfirm/PKEJEKFLKMPMHILLPNGLFDCCGOKCOEGE 
results in

Request confirmation
Your confirmation is required to process this request.
Confirm

and clicking on Confirm produces

Request processed
Your request was processed, and a confirmation E-mail was sent to you.
Continue


> You need to post an actual example of the confirmation mail, and the actual
> contents of all the relevant configuration.  Using made-up  labels such as
> "http://testserver";, "1", and "test", makes your tale nearly impossible to
> follow.
>

As you see above, all that was omitted was just server name c5.dino.sk.

> Having said that, the URL in confirmation requests is taken directly from
> the URL setting of the mailing list.  If the confirmation URL is wrong, fix
> the mailing list's URL setting.
>

Well, then maybe we need some doc note stating that local part of mailing list 
address, last slash delimited part of both URL and internal filename should 
be equal... if that's the intention. I would like to have internal list 
directory name different, but if that's not possible, I can live with that. I 
just need to know.

> > As a side note, there is mknod() call in main() function in
> > courier/webmlmd.C file I need to comment out in FreeBSD. It fails
> > everytime calling it, and everything works fine after removal. Why is it
> > there?
>
> Because it needs to be there, to properly check that everything will
> correctly work without the "check" option.
>

Hm, it works without this call, but not with it. I will try to ask on FreeBSD 
mailing list for more, no idea here yet.
man 2 mknod tells me for EINVAL (which was the reported error code)
Creating anything else than a block or character special file (or a whiteout) 
is not supported.
So this looks like i could not leave this call uncommented.

> >                                                       I can use OS
> > specific patch to handle this, but I would like to ask...
>
> How exactly to you go about creating a filesystem socket node on FreeBSD?

Looking at source I think actual creation is done in start_daemon() function 
on cgidaemond.c file with socket() call. The same function is used in 
sqwebmaild, and there is no mknod() call.

Regards,
Milan

-- 
This address is used only for mailing list response.
Do not send any personal messages to it, use milan in
address instead.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to