postfix + dovecot

网上搜了很长时间没有找到postfix+dovecot配置邮件服务器的简单说明,网上找到的都是加认证或者数据库的,下面是根据网上搜到的内容,然后不断修改后发现能运用的postfix+dovecot的简单配置,由于本人对其配置不是很熟,所以下面的配置在安全性和实用性有一些问题,但是如果只是内网使用的话,应该没什么问题。
1)修改/etc/postfix/main.cf
myhostname = example.com
mydomain = example.com
myorigin = $myhostname
inet_interfaces = all
mynetworks = 192.168.1.0/24127.0.0.0/8
relay_domains = $mydestination
mailbox_command = /usr/libexec/dovecot/deliver
2)修改/etc/dovecot.conf 
protocols = imap imaps pop3 pop3s
mail_privileged_group = mail
在/etc/dovecot.conf的protocol lda{}中修改:
postmaster_address = example.com
hostname = example.com
sendmail_path = /usr/lib/sendmail
auth_socket_path = /var/run/dovecot/auth-master
3)修改邮件目录权限:
chmod a+rwxt /var/mail

Advertisements
This entry was posted in Computers and Internet. Bookmark the permalink.

One Response to postfix + dovecot

  1. Pingback: The Linux cat Command | xjonquilx | Sabayon, Ubuntu, Fedora, Oh My!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s