postconf -e postfix_mydestination = localhost blah.deblah.com.au

postconf -e postfix_mydestination = localhost blah.deblah.com.au

上面是某人用来成功定向到子域的命令示例,但是当我尝试它时,我得到的postconf: fatal: missing '=' after attribute name结果对我来说毫无意义,因为显然等号在那里。

答案1

使用

postconf -e "postfix_mydestination = localhost, blah.deblah.com.au"

请注意引号和逗号(以逗号分隔)。另请注意,您在这里编辑的不是主程序mydestination,而是postfix_实例程序。不确定这是否是您真正想要的。

由于等号周围有空格,因此需要引用。只需从联机帮助页中阅读postconf(1)

-e     Edit  the main.cf configuration file, and update parameter settings with
       the "name=value" pairs on the postconf(1)  command  line.  The  file  is
       copied  to  a temporary file then renamed into place.  Specify quotes to
       protect special characters and whitespace  on  the  postconf(1)  command
       line.

相关内容