<!--
   $FML: case_studies.sgml,v 1.5 2005/12/07 11:50:57 fukachan Exp $
   $jaFML: case_studies.sgml,v 1.4 2003/04/15 14:51:36 fukachan Exp $
-->


<sect1 id="sect.casestudy.01">
	<title>
	Case Study: Office (1)
	</title>

<para>
Edit /usr/local/etc/fml/site_default_config.cf to apply the effect to
all ML's.
</para>

<para>
No tag of subject. 
<footnote>
<para>
This is default in &fml8; (default site_default_config.cf includes
this configuration).
</para>
</footnote>
<screen>
article_header_rewrite_rules	-=	rewrite_article_subject_tag
</screen>
This means header rewrite rules minus "adding subject tag" operation.
</para>

<para>
Prepend office# at X-ML-Name:. That is, 
mlname is changed to office#mlname.
<screen>
# office#$mlname
outgoing_mail_header_x_ml_name          =       office#$ml_name
</screen>
</para>

<para>
Anybody can post to this ML since customers send mails to this address.
<screen>
article_post_restrictions		=	permit_anyone
</screen>
In this case, anybody including system special accounts e.g. root,
postmaster can post.
</para>

<para>
Disable almost all filters since a lot of customer messages looks
something wrong.
<screen>
use_article_filter		=	no
</screen>
</para>

<para>
Change spool type as subdir since the number of articles may become
over million.
<screen>
spool_type			=	subdir
</screen>
</para>

<para>
Disable command mail.
<screen>
use_command_mail_function	=	no
</screen>
If someboby want to use command mail (e.g. by CGI), we use this
variable. It is recommended to remove proper alias entries if could to
ensure the command mail is prohibited.
</para>

</sect1>


<sect1 id="sect.casestudy.02">
	<title>
	Case Study: Office (2)
	</title>

<para>
Edit /usr/local/etc/fml/site_default_config.cf to apply the effect to
all ML's.
</para>

<para>
Add uppercase-ed ML name to the article subject tag.
<screen>
article_subject_tag = (\U$ml_name\E %05d)
</screen>
For example, an article of support@example.co.jp has the tag
<screen>
Subject: (SUPPORT 10000)
</screen>
.
</para>

<para>
Allow the use of command mail, which comes only from the specific
domain (my domain e.g. example.co.jp).  This hook enables it.
<screen>
$command_verify_request_end_hook = q{
        my $cred = $curproc->credential();
        my $from = $cred->sender();

        unless ($from =~ /\@example\.co\.jp/i) {
                $curproc->stop_this_process();
                $curproc->logerror("deny command request from $from");
        }
};
</screen>  
</para>


</sect1>
