blob: 3b0d7598d08a8405b85378ae603cf67041b6e646 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
<!--
$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>
|