fml 8 tutorial
Prev | Chapter 17. Case Studies Of Customization | Next

# Case Study: Mail Magazine (1)

Warning
Please use PGP auth if could, though we describe header based auth here. Also please set up MTA properly e.g. to disable smtp interfaces as could as possible. It is a problem that PGP auth requires user's skill at some level.

In the case of header based auth, you can create a mail magazine by using the asymmetirc member list. Consider asymmetric case of member list (list of persons who can post) and recipient list below.

Firstly, remove $primary_member_map from $member_maps. Instead, define $ml_home_dir/members-mailmag who can post to $member_maps.

    member_maps	=	$ml_home_dir/members-mailmag

The use of "subscribe" command is same as default one since "subscribe" command changes $primary_member_map not $member_maps. It is a little tricky but crafty use of $primary_XXX_map and $XX_maps enhances fml8 configuration.

In this case, when a new user is subscribed, the user address is added to both $ml_home_dir/members ($primary_member_map) and $ml_home_dir/recipinets ($primary_recipient_map). But $member_maps is defined as $ml_home_dir/members-mailmag. $ml_home_dir/members is not used. Hence, only the list of recipients is updated but the list of posters is NOT changed.

Warning
Strictly speaking, this configuration is not enough safe. If somebody fakes From: address, he/she can post since fml checks only From: address. So, pgp auth is recommended.

Another solution.

    primary_member_map	=	$tmp_dir/members-dummy

and use $member_maps (member_maps = $ml_home_dir/members) for normal use. It has only poster's addresses.

Prev | Home | Next
Case Study: Disable Command Mail | Up | Case Study: Mail Magazine (2)

fml 8.0 (fml-devel) project homepage is www.fml.org/software/fml8/.
fml 4.0 project homepage is www.fml.org/software/fml4/.
about one floppy bsd routers, see www.bsdrouter.org/.
other free softwares are found at www.fml.org/software/.

author's homepage is www.fml.org/home/fukachan/.
Also, visit nuinui's world :) at www.nuinui.net.

For questions about FML, e-mail <fml-bugs@fml.org>.