summaryrefslogtreecommitdiff
path: root/fml/doc/en/tutorial/install/postfix.sgml
blob: 01acc89fbf7bd4ece13b3df6db6065db93d6c1da (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
<!--
   $FML: postfix.sgml,v 1.2 2005/07/23 01:57:39 fukachan Exp $
   $jaFML: postfix.sgml,v 1.3 2003/04/15 14:51:39 fukachan Exp $
-->

<sect1 id="install.postfix">
	<title>
	MTA Configuration (postfix)
	</title>

<para>
Please set up postfix properly before "makefml newml" can set up a ml.
</para>

<sect2>
	<title>
	Default Domain (Example: fml.org)
	</title>


<para>
Set up /etc/postfix/main.cf like this:
<screen>
[/etc/postfix/main.cf]

allow_mail_to_commands = alias,forward,include

alias_maps	=	hash:/etc/mail/aliases
			hash:/var/spool/ml/etc/mail/aliases

</screen>
</para>

<warning>
<para>
Please check that $mydestination contains the default domain (may be
$mydomain).
</para>
</warning>

</sect2>


<sect2>
	<title>
	Virtual Domain (Example: nuinui.net)
	</title>

<para>
You need to edit /etc/postfix/main.cf to set up $virtual_maps.
<screen>
[/etc/postfix/main.cf]

allow_mail_to_commands = alias,forward,include

alias_maps	=	hash:/etc/mail/aliases
			hash:/var/spool/ml/etc/mail/aliases
			hash:/var/spool/nuinui.net/etc/mail/aliases

virtual_maps	=	hash:/var/spool/nuinui.net/etc/postfix/virtual

[/usr/local/etc/fml/ml_home_prefix]

nuinui.net /var/spool/nuinui.net

</screen>
Both alias files and /var/spool/nuinui.net/etc/postfix/virtual are
updated by makefml automatically
where we suppose ml_home_prefix_maps defines
<screen>
nuinui.net /var/spool/nuinui.net
</screen>
relation.
</para>

<warning>

<para>
Postfix variable $mydestination should contain the default domain (may
be $mydomain) but not virtual domain. Pay attention that we assume we
use postfix style virtual domain. Please see postfix document for more
details.
</para>

<para>
When you begin to use a new virtual domain, you need to update both
$alias_maps and $virtual_maps in /etc/postfix/main.cf. Also, you have
to update /usr/local/etc/fml/ml_home_prefix by running "makefml
newdomain".
</para>

<para>
Recent postfix has $virtual_alias_maps and $virtual_maps variables.
But $virtual_alias_maps = $virtual_maps by default.
You can use either.
</para>

</warning>

</sect2>


</sect1>