|
673.
|
|
|
Router
|
|
|
|
路由器
|
|
Translated and reviewed by
姚渺波
|
|
|
|
Located in
serverguide/C/mail.xml:1011(para) serverguide/C/mail.xml:1083(title)
|
|
674.
|
|
|
Once Exim4 is installed, you can start the Exim server using the following command from a terminal prompt: <screen>
<command>sudo apt-get /etc/init.d/exim4 start</command>
</screen> In order to make mailman work with exim4, you need to configure exim4. As mentioned earlier, by default, exim4 uses multiple configuration files of different types. For details, please refer to the <ulink url="http://www.exim.org">Exim</ulink> website. To run mailman, we should add new a configuration file to the following configuration types: <placeholder-1/> Exim creates a master configuration file by sorting all these mini configuration files. So, the order of these configuration files is very important.
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
一旦 Exim4 安装之后,您可以在终端提示符后使用下列命令启动 Exim 服务器:<screen>
<command>sudo apt-get /etc/init.d/exim4 start</command>
</screen> 为了使 mailman 可以和 exim4 一起工作,您需要配置 exim4。正如先前所说的那样,在缺省状态下 exim4 使用不同类型的多个配置文件。详情请参考 <ulink url="http://www.exim.org">Exim</ulink> 网站。要运行 mailman,我们可以新建一个配置文件到下列配置类型:<placeholder-1/> Exim 按这些小的配置文件顺序创建出一个主配置文件。因此这些配置文件的顺序是非常重要的。
|
|
Translated by
姚渺波
|
|
Reviewed by
姚渺波
|
|
|
|
Located in
C/network-applications.xml:3276(para)
|
|
675.
|
|
|
# start
# Home dir for your Mailman installation -- aka Mailman's prefix
# directory.
# On Ubuntu this should be "/var/lib/mailman"
# This is normally the same as ~mailman
MM_HOME=/var/lib/mailman
#
# User and group for Mailman, should match your --with-mail-gid
# switch to Mailman's configure script. Value is normally "mailman"
MM_UID=list
MM_GID=list
#
# Domains that your lists are in - colon separated list
# you may wish to add these into local_domains as well
domainlist mm_domains=hostname.com
#
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
#
# These values are derived from the ones above and should not need
# editing unless you have munged your mailman installation
#
# The path of the Mailman mail wrapper script
MM_WRAP=MM_HOME/mail/mailman
#
# The path of the list config file (used as a required file when
# verifying list addresses)
MM_LISTCHK=MM_HOME/lists/${lc::$local_part}/config.pck
# end
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
|
|
Translated by
姚渺波
|
|
Reviewed by
姚渺波
|
In upstream: |
|
|
|
|
Suggested by
姚渺波
|
|
|
|
Located in
serverguide/C/mail.xml:1027(programlisting)
|
|
676.
|
|
|
All the configuration files belonging to the main type are stored in the <filename>/etc/exim4/conf.d/main/</filename> directory. You can add the following content to a new file, named <filename>04_exim4-config_mailman</filename>: <placeholder-1/>
|
|
|
|
所有隶属于主类别的配置文件都被保存在 <filename>/etc/exim4/conf.d/main/</filename> 目录中。您可以将下面的内容添加到一个名为 <filename>04_exim4-config_mailman</filename> 的新文件中:<placeholder-1/>
|
|
Translated and reviewed by
姚渺波
|
|
|
|
Located in
serverguide/C/mail.xml:1021(para)
|
|
677.
|
|
|
mailman_transport:
driver = pipe
command = MM_WRAP \
'${if def:local_part_suffix \
{${sg{$local_part_suffix}{-(\\w+)(\\+.*)?}{\$1}}} \
{post}}' \
$local_part
current_directory = MM_HOME
home_directory = MM_HOME
user = MM_UID
group = MM_GID
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
mailman_transport:
driver = pipe
command = MM_WRAP \
'${if def:local_part_suffix \
{${sg{$local_part_suffix}{-(\\w+)(\\+.*)?}{\$1}}} \
{post}}' \
$local_part
current_directory = MM_HOME
home_directory = MM_HOME
user = MM_UID
group = MM_GID
|
|
Translated and reviewed by
姚渺波
|
|
|
|
Located in
serverguide/C/mail.xml:1067(programlisting)
|
|
678.
|
|
|
All the configuration files belonging to transport type are stored in the <filename>/etc/exim4/conf.d/transport/</filename> directory. You can add the following content to a new file named <filename> 40_exim4-config_mailman</filename>: <placeholder-1/>
|
|
|
|
所有隶属于传输类型的文件被保存在 <filename>/etc/exim4/conf.d/transport/</filename> 目录中。您可以将下面的内容添加到一个名为 <filename>40_exim4-config_mailman</filename> 的新文件中:<placeholder-1/>
|
|
Translated and reviewed by
姚渺波
|
|
|
|
Located in
serverguide/C/mail.xml:1061(para)
|
|
679.
|
|
|
mailman_router:
driver = accept
require_files = MM_HOME/lists/$local_part/config.pck
local_part_suffix_optional
local_part_suffix = -bounces : -bounces+* : \
-confirm+* : -join : -leave : \
-owner : -request : -admin
transport = mailman_transport
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
mailman_router:
driver = accept
require_files = MM_HOME/lists/$local_part/config.pck
local_part_suffix_optional
local_part_suffix = -bounces : -bounces+* : \
-confirm+* : -join : -leave : \
-owner : -request : -admin
transport = mailman_transport
|
|
Translated by
姚渺波
|
|
Reviewed by
姚渺波
|
In upstream: |
|
mailman_router:
driver = accept
require_files = MM_HOME/lists/$local_part/config.pck
local_part_suffix_optional
local_part_suffix = -bounces : -bounces+* : \
-confirm+* : -join : -leave : \
-owner : -request : -admin
transport = mailman_transport
|
|
|
Suggested by
姚渺波
|
|
|
|
Located in
serverguide/C/mail.xml:1088(programlisting)
|
|
680.
|
|
|
All the configuration files belonging to router type are stored in the <filename>/etc/exim4/conf.d/router/</filename> directory. You can add the following content in to a new file named <filename>101_exim4-config_mailman</filename>: <placeholder-1/>
|
|
|
|
所有隶属于路由类的所有配置文件都被保存在 <filename>/etc/exim4/conf.d/router/</filename> 目录中。您可以将下列内容添加到名为 <filename>101_exim4-config_mailman</filename> 的新文件中:<placeholder-1/>
|
|
Translated and reviewed by
姚渺波
|
|
|
|
Located in
serverguide/C/mail.xml:1084(para)
|
|
681.
|
|
|
The order of main and transport configuration files can be in any order. But, the order of router configuration files must be the same. This particular file must appear before the <application>200_exim4-config_primary</application> file. These two configuration files contain same type of information. The first file takes the precedence. For more details, please refer to the references section.
|
|
|
|
主类和传输类的配置文件的顺序可以随意。但路由类的配置文件的顺序必须相同。该文件必须在 <application>200_exim4-config_primary</application> 文件之前出现。如果两个配置文件包含相同类型的信息。第一个文件优先。详情请参阅参考部分。
|
|
Translated and reviewed by
姚渺波
|
|
|
|
Located in
serverguide/C/mail.xml:1101(para)
|
|
682.
|
|
|
Enter the email address of the person running the list: bhuvan at ubuntu.com
Initial mailman password:
To finish creating your mailing list, you must edit your <filename>/etc/aliases</filename> (or
equivalent) file by adding the following lines, and possibly running the
`newaliases' program:
## mailman mailing list
mailman: "|/var/lib/mailman/mail/mailman post mailman"
mailman-admin: "|/var/lib/mailman/mail/mailman admin mailman"
mailman-bounces: "|/var/lib/mailman/mail/mailman bounces mailman"
mailman-confirm: "|/var/lib/mailman/mail/mailman confirm mailman"
mailman-join: "|/var/lib/mailman/mail/mailman join mailman"
mailman-leave: "|/var/lib/mailman/mail/mailman leave mailman"
mailman-owner: "|/var/lib/mailman/mail/mailman owner mailman"
mailman-request: "|/var/lib/mailman/mail/mailman request mailman"
mailman-subscribe: "|/var/lib/mailman/mail/mailman subscribe mailman"
mailman-unsubscribe: "|/var/lib/mailman/mail/mailman unsubscribe mailman"
Hit enter to notify mailman owner...
#
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
Enter the email address of the person running the list: bhuvan at ubuntu.com
Initial mailman password:
To finish creating your mailing list, you must edit your <filename>/etc/aliases</filename> (or
equivalent) file by adding the following lines, and possibly running the
`newaliases' program:
## mailman mailing list
mailman: "|/var/lib/mailman/mail/mailman post mailman"
mailman-admin: "|/var/lib/mailman/mail/mailman admin mailman"
mailman-bounces: "|/var/lib/mailman/mail/mailman bounces mailman"
mailman-confirm: "|/var/lib/mailman/mail/mailman confirm mailman"
mailman-join: "|/var/lib/mailman/mail/mailman join mailman"
mailman-leave: "|/var/lib/mailman/mail/mailman leave mailman"
mailman-owner: "|/var/lib/mailman/mail/mailman owner mailman"
mailman-request: "|/var/lib/mailman/mail/mailman request mailman"
mailman-subscribe: "|/var/lib/mailman/mail/mailman subscribe mailman"
mailman-unsubscribe: "|/var/lib/mailman/mail/mailman unsubscribe mailman"
Hit enter to notify mailman owner...
#
|
|
Translated by
姚渺波
|
|
Reviewed by
姚渺波
|
|
|
|
Located in
serverguide/C/mail.xml:1129(programlisting)
|