Linux 向postfix中的组发送邮件
我有一个名为Linux 向postfix中的组发送邮件,linux,email,postfix-mta,Linux,Email,Postfix Mta,我有一个名为users和usersuser1和user2的组。我安装了postfix,我可以通过user1@example.com和user2@example.com。是否可以将邮件发送到users@examlpe.com,这样组成员就可以阅读它了 postfix安装在ubuntu服务器上,几乎使用默认配置,只需设置域和网络等。用户和组使用其主目录创建。来自postfix手册: # man aliases ... Aliases Local Aliases /etc/mail/a
users
和usersuser1
和user2
的组。我安装了postfix,我可以通过user1@example.com
和user2@example.com
。是否可以将邮件发送到users@examlpe.com
,这样组成员就可以阅读它了
postfix安装在ubuntu服务器上,几乎使用默认配置,只需设置域和网络等。用户和组使用其主目录创建。来自postfix手册:
# man aliases
...
Aliases
Local Aliases
/etc/mail/aliases is formatted as a series of lines of the
form
aliasname:address[, address]
aliasname is the name of the alias or alias group, and
address is the address of a recipient in the group. Aliases
can be nested. That is, an address can be the name of
another alias group. Because of the way sendmail(1M) per-
forms mapping from upper-case to lower-case, an address that
is the name of another alias group must not contain any
upper-case letters.
Lines beginning with white space are treated as continuation
lines for the preceding alias. Lines beginning with # are
comments.
您需要手动将每个用户添加到主机上别名文件中的用户组(请查看手册以了解该别名文件的分发位置)
因此,对于您给出的示例:
# tail -1 /etc/mail/aliases
users: user1, user2
对别名文件进行这些更改后,请运行以下操作:
# newaliases
请提供您迄今为止所做的工作