summaryrefslogtreecommitdiff
path: root/fml/doc/en/tutorial/setup/newml.sgml
blob: 99e9eb25737982b52858b8dfee57711af281630c (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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
<!--
   $FML: newml.sgml,v 1.2 2005/07/23 01:57:37 fukachan Exp $
   $jaFML: newml.sgml,v 1.3 2003/04/15 14:51:44 fukachan Exp $
-->


<chapter id="setup.newml">
	<title>
	Create ML On Unix
	</title>


<sect1>
	<title>
	Run "makefml newml" To Create An ML (In The Case Of Default Domain)
	</title>

<caution>
<para>
The usage of &fml8; makefml is same as &fml4; in the case of default
domain.  But differs in the virtual domain case. See
<link linkend="setup.newml.nondefault">
<xref linkend="setup.newml.nondefault">
</link>
for the virtual domain case.
</para>
</caution>

<para>
To create an ML, use "makefml" command (CUI) in the same way as &fml4;.
<screen>
% su fml
% makefml newml elena
   ... snip ...
</screen>
</para>

<para>
In the case of non default domain (virtual domain), 
run "makefml newdomain" command before running "makefml newml".
<screen>
% su root
# makefml newdomain fml.org /var/spool/virtual/fml.org
# exit
% su fml
% makefml newml elena
   ... snip ...
</screen>
</para>

<para>
"makefml newml" processes the following steps.

<itemizedlist>

   <listitem>
        <para>
	Create files such as
	<screen>
	config.cf
	include
	include-ctl
	</screen>
	at /var/spool/ml/elena. The domain name et.al. in these files
	is replaced to proper value.
        </para>
   </listitem>

   <listitem>
        <para>
	Add elena ML entry into /var/spool/ml/etc/mail/aliases.
	Run postalias to rebuild /var/spool/ml/etc/mail/aliases.db.
        </para>
   </listitem>

   <listitem>
        <para>
	Create ~fml/.qmail-* files for qmail.
        </para>
   </listitem>

   <listitem>
        <para>
	Update procmailrc as a sample.
        </para>
   </listitem>

   <listitem>
        <para>
	Prepare the directory
	<screen>
	~fml/public_html/fml/mlarchive/$domain/$ml/
	</screen>
	for html archive.
	For example, for elena@fml.org
	<screen>
	~fml/public_html/fml/mlarchive/fml.org/elena/
	</screen>
	is creatd.
	HTML archive of ML articles is created by default.
        </para>
   </listitem>

   <listitem>
        <para>
	Prepare CGI (GUI). Set up 
	<screen>
	~fml/public_html/cgi-bin/fml/$domain/admin/config.cgi
	</screen>
	for the master cgi, instead cgi to control one ML $ml@$domain
	is set up at
	<screen>
	~fml/public_html/cgi-bin/fml/$domain/ml-admin/$ml/config.cgi
	</screen>
        </para>
   </listitem>

</itemizedlist>
</para>

</sect1>


<sect1 id="setup.newml.nondefault">
	<title>
	Run "makefml newml" To Create An ML (In The Case Of Virtual Domain)
	</title>

<caution>
<para>
The usage of makefml differs from &fml4;.
In the case of &fml8; firstly use "makefml newdomain" command, 
in the next run "makefml newml" command.
Also ml_name differs. For virtual domain, use ml_name@ml_domain form.
</para>
</caution>

<para>
In using "makefml newml", the usage is same as &fml4; except for 
the ml_name. ml_name part is ml_name@ml_domain in the case of &fml8;
</para>

<para>
At the first time to use a virtual domain, 
run "makefml newdomain" before "makefml newml".
<screen>
% su root
# makefml newdomain nuinui.net /var/spool/virtual/nuinui.net
# exit
% su fml
% makefml newml elena@nuinui.net
</screen>
After the second time, just use "makefml newml". 
<screen>
% su fml
% makefml newml elena@nuinui.net
</screen>
</para>

<para>
In running "makefml newdomain", 
specify a pair of domain and directory in ml_home_prefix_maps.
This command edits /usr/local/etc/fml/ml_home_prefix file to add the
following line.
<screen>
nuinui.net /var/spool/virtual/nuinui.net
</screen>
To remove this line, use "makefml rmdomain".
</para>

<para>
The usage of "makefml newml" command is same as in the case of default
domain.
</para>

<para>
"makefml newml" creates an example of virtual domain configurations
for several MTA's such as
<screen>
/var/spool/ml/etc/sendmail/virtusertable
/var/spool/ml/etc/postfix/virtual
</screen>
.
No example for qmail (not needed).
No example for procmail since .procmailrc contains domain.
</para>

<para>
See the chapter of
<link linkend="virtualdomain">
virtual domain
</link>
for more details.
</para>

</sect1>


<!-- MTA config -->
&sect.setup.postfix;
&sect.setup.qmail;


<!-- each ML config -->
&sect.setup.config.cf;


<!-- recipies -->
&sect.setup.newml.recipes;

</chapter>