快捷搜索:   nginx

Sendmail邮件服务器快速指南(3)

然后运行:

  [root@email cf]# sh Build config.cf

  该命令将在该目录下生成config.cf文件。然后安装sendmail:

  [root@email sendmail]# sh Build install

  将config.cf拷贝到/etc/mail目录下,并改名为sendmail.cf:
  [root@email mail]#cp /usr/src/sendmail-8.11.4/cf/cf/config.cf /etc/mail/sendmail.cf
在/etc/mail目录下创建access文件,内容如下:

  127.0.0.1 RELAY
  202.99.11 RELAY

  这里表示允许本机和202.99.11.0网段中的机器通过该邮件服务器的转发邮件。其中202.99.11应该是你拥有的局域网络IP网段的IP地址,只需要写网络部分即可。比如说你的用户有多个网段,只需要在其中设置多个网段即可:

  127.0.0.1 RELAY
  202.99.11 RELAY
  200.200.201 RELAY

  然后对access文件生成易于检索的库文件格式:

  [root@email mail]# makemap hash access.db
顶(0)
踩(0)

您可能还会对下面的文章感兴趣:

最新评论