Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3287826
  • 博文数量: 815
  • 博客积分: 12898
  • 博客等级: 上将
  • 技术积分: 7883
  • 用 户 组: 普通用户
  • 注册时间: 2006-12-25 09:57
文章分类

全部博文(815)

文章存档

2014年(1)

2011年(46)

2010年(192)

2009年(121)

2008年(70)

2007年(385)

分类: BSD

2007-09-26 16:03:00

# ftp ftp://ftp.openbsd.org/pub/OpenBSD/4.1/ports.tar.gz
#cp ports.tar.gz /usr
#cd /usr;  tar xzf ports.tar.gz

在线编译postfix
# cd /usr/ports/mail/postfix/stable/
# FLAVOR="sasl2 ldap" make package
===> Checking files for postfix-2.3.7-sasl2-ldap
`/usr/ports/distfiles/postfix/postfix-2.3.7.tar.gz' is up to date.
>> Checksum OK for postfix/postfix-2.3.7.tar.gz. (sha1)
===> postfix-2.3.7-sasl2-ldap depends on: pcre-* - found
===> postfix-2.3.7-sasl2-ldap depends on: cyrus-sasl-* - found
===> postfix-2.3.7-sasl2-ldap depends on: openldap-client-2.* - found
===> Verifying specs: pcre sasl2 ldap.>=2 lber pcre sasl2 ldap.>=2 lber c crypto ssl c crypto ssl
===> found pcre.1.0 sasl2.2.21 ldap.9.1 lber.9.1 c.40.3 crypto.13.0 ssl.11.0
===> Extracting for postfix-2.3.7-sasl2-ldap
===> Patching for postfix-2.3.7-sasl2-ldap
===> Configuring for postfix-2.3.7-sasl2-ldap

[...snip...]

===> Building package for postfix-2.3.7-sasl2-ldap
Create /usr/ports/packages/i386/all/postfix-2.3.7-sasl2-ldap.tgz
Link to /usr/ports/packages/i386/ftp/postfix-2.3.7-sasl2-ldap.tgz
#

安装postfix
# pkg_add /usr/ports/packages/i386/all/postfix-2.3.7-sasl2-ldap.tgz
postfix-2.3.7-sasl2-ldap: complete
--- postfix-2.3.7-sasl2-ldap -------------------
-> Creating /etc/mailer.conf.postfix
-> Creating Postfix spool directory and chroot area under /var/spool/postfix

Warning: you still need to edit myorigin/mydestination/mynetworks
parameter settings in /etc/postfix/main.cf.

See also
for information about dialup sites or about sites inside a
firewalled network.

BTW: Check your /etc/mail/aliases file and be sure to set up
aliases that send mail for root and postmaster to a real person,
then run /usr/local/sbin/newaliases.

+---------------
| Configuration files has been installed in /etc/postfix.
| Please update these files to meet your needs.
+---------------
+---------------
| Postfix can be set up to replace sendmail entirely. Please read the
| documentation at file:/usr/local/share/doc/postfix/html/index.html or
| carefully before you decide to do this!
|
| To replace sendmail with postfix you have to install a new mailer.conf
| using the following command:
|
| /usr/local/sbin/postfix-enable
|
| If you want to restore sendmail, this is done using the following command:
|
| /usr/local/sbin/postfix-disable
+---------------

#




阅读(1444) | 评论(0) | 转发(0) |
0

上一篇:Packet Filter(PF)

下一篇:什么是LDAP

给主人留下些什么吧!~~