我有一个名为users
的用户,用户user1
和user2
。我安装了postfix,我可以收到user1@example.com
和user2@example.com
的邮件。是否可以向users@examlpe.com
发送邮件,以便群组成员能够阅读?
postfix安装在ubuntu服务器上并使用相当多的默认配置,只需设置域和网络等。使用主目录创建用户和组。
答案 0 :(得分:1)
来自后缀手册:
# 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