[PREVIOUS CHAPTER] [NEXT CHAPTER]
3 Fmlserv - Listserv Style Interface -


3.1	Listserv (Or Majordomo) Style Interface (libexec/fmlserv.pl)


Fmlserv provides listserv compatible mode. It is interface convertor.


Consider Elena ML (elena@baycity.asia) and Freekick ML
(freekick@baycity.asia).


To get articles from 1 to 10 in MIME/Multipart mode, you send "get
1-10 mp" to Elena-ctl@baycity.asia.


Fmlserv provides the same function if you send "get elena 1-10 mp" to
fmlserv@baycity.asia.  The command style for fmlserv is "command <ML>
options".  You can insert <ML> within command syntaxes. So you can
inject commands such as

	"get Freekick 1-10 mp" 	
	"get elena 1-10 mp".


   "get Freekick 1-10 mp" 	


3.2	Install And Setup Fmlserv


To set up listserv style interface for FML, please use

	/usr/local/fml/makefml fmlserv 


(path may be different). In default FML provides each command address
for each ML. But fmlserv provides listserv style. The difference is
just the interface. The internal routines are the same.


Consider fmlserv@baycity.asia serve two mailing lists.

	elena@baycity.asia	(/var/spool/elena)
	Freekick@baycity.asia	(/var/spool/Freekick)


When "makefml install", I suppose you select "fmlserv" in mode choice
(personal or group or fmlserv).
To set up "fmlserv",
	1	makefml fmlserv, which creates 
		/var/spool/fmlserv/include.
		It implies fmlserv is a kind of mailing lists.
	2	set up /etc/aliases and newaliases using
		/var/spool/fmlserv/include.

"/var/spool/fmlserv/include" is as follows:

	"|/usr/libexec/fml/libexec/fmlserv.pl /var/spool"


where the argument of fmlserv.pl is the top directory ("/var/spool")
which provides mailing list homes in "/var/spool" such as

	/var/spool/fmlserv
	/var/spool/elena
	/var/spool/Freekick
	...


There exist

	/var/spool/elena/config.ph
	/var/spool/elena/spool/
	...

	/var/spool/Freekick/config.ph
	/var/spool/Freekick/spool/
	...

	/var/spool/fmlserv/config.ph
	...


Configuration variables are that /var/spool/fmlserv is $FMLSERV_DIR,
/var/spool/fmlserv/log is $FMLSERV_LOGFILE.

3.3	Available commands

In default, fmlserv cannot provide "lists" for security.
To make "lists" available, please set

	$FMLSERV_PERMIT_LISTS_COMMAND  = 1; (default 0)

To make "which" available, please set

	$FMLSERV_PERMIT_WHICH_COMMAND  = 1; (default 0)


* fmlserv commands

	help		fmlserv help

	*** prohibited for security
	which
	lists

* all fml commands are available.

	command <ML> options

3.4	Variables

	$MAP_DB 

is a cache for 'lists' command.

[PREVIOUS CHAPTER] [NEXT CHAPTER]