个人工具
登录
查看“Postfix 基本设置指南”的源代码 - Ubuntu中文
页面
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“Postfix 基本设置指南”的源代码
来自Ubuntu中文
←
Postfix 基本设置指南
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
=== Adding local domains to postfix === <pre><nowiki> sudo vi /etc/postfix/main.cf </nowiki></pre> '''Add your domain to:''' <pre><nowiki> sudo vi /etc/postfix/main.cf </nowiki></pre> Add your domain to <code><nowiki>mydestination</nowiki></code>. Once added it should be like the following code segment. <pre><nowiki> ... mydestination = mail.fossedu.org, localhost.localdomain, localhost, yourdoamin.com ... </nowiki></pre> '''Add your local network to:''' <pre><nowiki> sudo vi /etc/postfix/main.cf </nowiki></pre> I assume that your local network is 192.168.1.0/24 and add your local network to <code><nowiki>mynetworks</nowiki></code>. Once added it should be like the following code segment. <pre><nowiki> mynetworks = 127.0.0.0/8, 192.168.1.0/24 </nowiki></pre> '''Make Postfix to receive mail from the Internet''' Set <code><nowiki>inet_interfaces = all</nowiki></code> in <code><nowiki>/etc/postfix/main.cf</nowiki></code> using: <pre><nowiki> sudo vi /etc/postfix/main.cf </nowiki></pre> Finally Restart Postfix; <pre><nowiki> sudo /etc/init.d/postfix restart </nowiki></pre> Test your setup again using following code: <pre><nowiki> telnet mail.yourdomain.com 25 ehlo yourdmain.com mail from: root@yourdomain.com rcpt to: fmaster@yourdomain.com data Subject: My first mail for my domain Hi, Are you there? regards, Admin . (and Enter In a new Line) quit </nowiki></pre> Check the mailbox of <code><nowiki>fmaster</nowiki></code> <pre><nowiki> su - fmaster cd Maildir/new ls </nowiki></pre> Now you will see mail has a separate file
返回至
Postfix 基本设置指南
。