Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/26.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 向postfix中的组发送邮件_Linux_Email_Postfix Mta - Fatal编程技术网

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
和users
user1
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

请提供您迄今为止所做的工作