分类: BSD
2007-09-26 16:03:00
# 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
+---------------
#