Chinaunix首页 | 论坛 | 博客
  • 博客访问: 649952
  • 博文数量: 197
  • 博客积分: 4858
  • 博客等级: 上校
  • 技术积分: 2162
  • 用 户 组: 普通用户
  • 注册时间: 2006-05-06 22:46
文章分类

全部博文(197)

文章存档

2011年(30)

2010年(21)

2009年(25)

2008年(80)

2007年(41)

分类: BSD

2010-02-06 15:06:22

   有一台BSD6.2的服务器,运行了两年了,一直想在上边装一个邮件服务器,但是心中没底一直没做,这两天就进行了安装,把安装过程中出现的错误记录下来,以备自己以后使用。
软件平台:系统自带的sendmail+dovecot+openwebmail.
原来打算安装的是squirrelmail,安装过后一直报错,无耐,只好换成了openwebmai.
1.安装dovecot,
cd /usr/ports/mail/dovecot
make install clean
我的配置参数如下:
%cd /usr/ports/mail/dovecot
%make showconfig
===> The following configuration options are available for dovecot-1.2.10:
     KQUEUE=on "kqueue(2) support"
     SSL=on "SSL support"
     IPV6=off "IPv6 support"
     MANAGESIEVE=off "ManageSieve support"
     GSSAPI=off "GSSAPI support"
     VPOPMAIL=off "VPopMail support"
     BDB=off "BerkleyDB support"
     LDAP=off "OpenLDAP support"
     PGSQL=off "PostgreSQL support"
     MYSQL=off "MySQL support"
     SQLITE=off "SQLite support"
===> Use 'make config' to modify these settings
2.编辑grep -v "#" /usr/local/etc/dovcot.conf文件如下:
 
protocols = imap pop3
disable_plaintext_auth = no
ssl_cert_file = /etc/ssl/server.crt
ssl_key_file = /etc/ssl/server.key
login_trusted_networks = 125.93.0.0/8 126.com 163.com
mail_location = mbox:~/mail/:INBOX=/var/mail/%u
mail_privileged_group = mail
dotlock_use_excl = yes
verbose_proctitle = yes
first_valid_uid = 1000
first_valid_gid = 1000
maildir_copy_with_hardlinks = yes

protocol imap {

  imap_client_workarounds = delay-newmail netscape-eoh tb-extra-mailbox-sep
}

protocol pop3 {
 
  pop3_uidl_format = %08Xu%08Xv
 

  pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
}

protocol lda {
  postmaster_address =
 
  sendmail_path = /usr/sbin/sendmail
 
}
 
auth_username_format = %Lu

auth default {
  mechanisms = plain login

  passdb pam {
    args = session=yes dovecot
  }
 
  userdb passwd {
    args = blocking=yes
  }
 
  user = root
 
   socket listen {
    master {
      path = /var/run/dovecot/auth-master
      mode = 0600
    }
    client {
      path = /var/run/dovecot/auth-client
阅读(1067) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~