主题: 今天想在FreeBSD8.1 64位上面装0.6.1,发生错误如下,请求指点!

Configuration completed.

*************************************************************************
***************************** WARNING ***********************************
*************************************************************************
*                                                                       *
* Please do remember to *MOVE* configuration file after installation    *
* completed successfully.                                               *
*                                                                       *
*   * /root/iRedMail-0.6.1/./config
*                                                                       *
*************************************************************************
< INFO > Continue? [Y|n]y
< INFO > ==== Fetch all source tarballs of required components (make fetch-recursive) ====
< INFO > Skip fetching tarballs of port: databases/mysql50-server.
< INFO > Skip fetching tarballs of port: net/openldap24-server.
< INFO > Skip fetching tarballs of port: mail/dovecot-sieve.
< INFO > Skip fetching tarballs of port: mail/dovecot-managesieve.
< INFO > Skip fetching tarballs of port: devel/pth.
< INFO > Skip fetching tarballs of port: security/gnupg.
< INFO > Skip fetching tarballs of port: dns/p5-Net-DNS.
< INFO > Skip fetching tarballs of port: mail/p5-Mail-SpamAssassin.
< INFO > Skip fetching tarballs of port: security/p5-Authen-SASL.
< INFO > Skip fetching tarballs of port: mail/altermime.
< INFO > Skip fetching tarballs of port: security/amavisd-new.
< INFO > Skip fetching tarballs of port: devel/pcre.
< INFO > Skip fetching tarballs of port: mail/postfix26.
< INFO > Skip fetching tarballs of port: mail/postfix-policyd-sf.
< INFO > Skip fetching tarballs of port: security/clamav.
< INFO > Skip fetching tarballs of port: www/apache22.
< INFO > Skip fetching tarballs of port: lang/php5.
< INFO > Skip fetching tarballs of port: mail/php5-imap.
< INFO > Skip fetching tarballs of port: graphics/php5-gd.
< INFO > Skip fetching tarballs of port: archivers/php5-zip.
< INFO > Skip fetching tarballs of port: archivers/php5-bz2.
< INFO > Skip fetching tarballs of port: archivers/php5-zlib.
< INFO > Skip fetching tarballs of port: devel/php5-gettext.
< INFO > Skip fetching tarballs of port: converters/php5-mbstring.
< INFO > Skip fetching tarballs of port: security/php5-mcrypt.
< INFO > Skip fetching tarballs of port: databases/php5-mysql.
< INFO > Skip fetching tarballs of port: security/php5-openssl.
< INFO > Skip fetching tarballs of port: www/php5-session.
< INFO > Skip fetching tarballs of port: net/php5-ldap.
< INFO > Skip fetching tarballs of port: textproc/php5-ctype.
< INFO > Skip fetching tarballs of port: security/php5-hash.
< INFO > Skip fetching tarballs of port: converters/php5-iconv.
< INFO > Skip fetching tarballs of port: textproc/php5-pspell.
< INFO > Skip fetching tarballs of port: textproc/php5-dom.
< INFO > Skip fetching tarballs of port: textproc/php5-xml.
< INFO > Skip fetching tarballs of port: databases/php5-sqlite.
< INFO > Skip fetching tarballs of port: databases/php5-mysqli.
< INFO > Skip fetching tarballs of port: devel/pear.
< INFO > Skip fetching tarballs of port: mail/roundcube.
< INFO > Skip fetching tarballs of port: net/pear-Net_LDAP2.
< INFO > Skip fetching tarballs of port: www/awstats.
< INFO > Skip fetching tarballs of port: net/phpldapadmin.
< INFO > Skip fetching tarballs of port: databases/phpmyadmin.
< INFO > Skip fetching tarballs of port: net/py-ldap2.
< INFO > Skip fetching tarballs of port: www/mod_wsgi.
< INFO > Skip fetching tarballs of port: www/webpy.
< INFO > Skip fetching tarballs of port: devel/py-Jinja2.
< INFO > Skip fetching tarballs of port: databases/py-MySQLdb.
< INFO > Skip fetching tarballs of port: net/py-netifaces.
< INFO > ==== Install packages ====
< INFO > Skip installing port: databases/mysql50-server.
< INFO > Skip installing port: net/openldap24-server.
< INFO > Skip installing port: mail/dovecot-sieve.
< INFO > Skip installing port: mail/dovecot-managesieve.
< INFO > Skip installing port: devel/pth.
< INFO > Skip installing port: security/gnupg.
< INFO > Skip installing port: dns/p5-Net-DNS.
< INFO > Skip installing port: mail/p5-Mail-SpamAssassin.
< INFO > Skip installing port: security/p5-Authen-SASL.
< INFO > Skip installing port: mail/altermime.
< INFO > Skip installing port: security/amavisd-new.
< INFO > Skip installing port: devel/pcre.
===>  Cleaning for postfix-2.6.8,1
< INFO > Installing port: mail/postfix26 ...
===>  Vulnerability check disabled, database not found
===>  License check disabled, port has not defined LICENSE
=> postfix-2.6.8.tar.gz doesn't seem to exist in /usr/ports/distfiles/postfix.
=> Attempting to fetch ftp://ftp.porcupine.org/mirrors/postfix … 6.8.tar.gz
postfix-2.6.8.tar.gz                          100% of 3251 kB 9234  Bps 00m00s
===>  Extracting for postfix-2.6.8,1
===>  Vulnerability check disabled, database not found
===>  License check disabled, port has not defined LICENSE
=> SHA256 Checksum OK for postfix/postfix-2.6.8.tar.gz.
===>   postfix-2.6.8,1 depends on file: /usr/local/bin/perl5.10.1 - found
===>  Patching for postfix-2.6.8,1
===>   postfix-2.6.8,1 depends on file: /usr/local/bin/perl5.10.1 - found
===>  Applying FreeBSD patches for postfix-2.6.8,1
===>   postfix-2.6.8,1 depends on file: /usr/local/lib/libcdb.a - found
===>   postfix-2.6.8,1 depends on file: /usr/local/bin/perl5.10.1 - found
===>   postfix-2.6.8,1 depends on shared library: pcre.0 - found
===>   postfix-2.6.8,1 depends on shared library: ldap-2.4.7 - found
===>   postfix-2.6.8,1 depends on shared library: mysqlclient.15 - found
===>   postfix-2.6.8,1 depends on shared library: db-4.6.0 - found
===>  Configuring for postfix-2.6.8,1
(cd /usr/ports/mail/postfix26/work/postfix-2.6.8 && make -f Makefile.init makefiles CC="cc" OPT="-O2 -pipe -DLDAP_DEPRECATED -fno-strict-aliasing"  CCARGS="-DDEF_CONFIG_DIR=\\\"/usr/local/etc/postfix\\\"  -DDEF_DAEMON_DIR=\\\"/usr/local/libexec/postfix\\\"  -DDEF_COMMAND_DIR=\\\"/usr/local/sbin\\\"  -DDEF_SENDMAIL_PATH=\\\"/usr/local/sbin/sendmail\\\"  -DDEF_NEWALIAS_PATH=\\\"/usr/local/bin/newaliases\\\"  -DDEF_MAILQ_PATH=\\\"/usr/local/bin/mailq\\\"  -DDEF_MANPAGE_DIR=\\\"/usr/local/man\\\"  -DDEF_README_DIR=\\\"/usr/local/share/doc/postfix\\\"  -DDEF_HTML_DIR=\\\"/usr/local/share/doc/postfix\\\"  -DDEF_QUEUE_DIR=\\\"/var/spool/postfix\\\"  -DDEF_DATA_DIR=\\\"/var/db/postfix\\\"  -DDEF_MAIL_OWNER=\\\"postfix\\\"  -DDEF_SGID_GROUP=\\\"maildrop\\\" -DHAS_PCRE -I/usr/local/include -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\" -DUSE_TLS -I/usr/include -I/usr/local/include/db46 -DHAS_MYSQL -I/usr/local/include/mysql -DHAS_LDAP -I/usr/local/include -DHAS_CDB -I/usr/local/include" AUXLIBS="-L/usr/local/lib -lpcre -L/usr/lib  -rpath=/usr/lib:/usr/local/lib -lssl -lcrypto -L/usr/local/lib/db46 -ldb-4.6 -L/usr/local/lib/mysql -lmysqlclient -lz -lcrypt -lm -L/usr/local/lib -lldap -llber -L/usr/local/lib -lcdb" &&  echo "all: default" >> Makefile)
make -f Makefile.in MAKELEVEL= Makefiles
(echo "# Do not edit -- this file documents how Postfix was built for your machine."; /bin/sh makedefs) >makedefs.tmp
set +e; if cmp makedefs.tmp conf/makedefs.out; then rm makedefs.tmp;  else mv makedefs.tmp conf/makedefs.out; fi >/dev/null 2>/dev/null
set -e; for i in src/util src/global src/dns src/tls src/xsasl src/milter src/master  src/postfix src/fsstone src/smtpstone  src/sendmail src/error src/pickup src/cleanup src/smtpd src/local  src/trivial-rewrite src/qmgr src/oqmgr src/smtp src/bounce  src/pipe src/showq src/postalias src/postcat src/postconf src/postdrop  src/postkick src/postlock src/postlog src/postmap src/postqueue  src/postsuper src/qmqpd src/spawn src/flush src/verify  src/virtual src/proxymap src/anvil src/scache src/discard src/tlsmgr  src/postmulti; do  (set -e; echo "[$i]"; cd $i; rm -f Makefile;  make -f Makefile.in Makefile MAKELEVEL=) || exit 1;  done;
[src/util]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/global]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/dns]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/tls]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/xsasl]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/milter]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/master]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/postfix]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/fsstone]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/smtpstone]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/sendmail]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/error]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/pickup]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/cleanup]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/smtpd]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/local]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/trivial-rewrite]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/qmgr]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/oqmgr]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/smtp]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/bounce]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/pipe]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/showq]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/postalias]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/postcat]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/postconf]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/postdrop]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/postkick]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/postlock]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/postlog]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/postmap]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/postqueue]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/postsuper]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/qmqpd]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/spawn]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/flush]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/verify]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/virtual]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/proxymap]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/anvil]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/scache]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/discard]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/tlsmgr]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/postmulti]
cat ../../conf/makedefs.out Makefile.in >Makefile
rm -f Makefile; (cat conf/makedefs.out Makefile.in) >Makefile
===>  Building for postfix-2.6.8,1
rm -f libexec/post-install && ln -sf ../conf/post-install libexec/post-install
rm -f libexec/postfix-files && ln -sf ../conf/postfix-files libexec/postfix-files
rm -f libexec/postfix-script && ln -sf ../conf/postfix-script libexec/postfix-script
rm -f libexec/postfix-wrapper && ln -sf ../conf/postfix-wrapper libexec/postfix-wrapper
rm -f libexec/main.cf && ln -sf ../conf/main.cf libexec/main.cf
rm -f libexec/master.cf && ln -sf ../conf/master.cf libexec/master.cf
rm -f libexec/postmulti-script && ln -sf ../conf/postmulti-script libexec/postmulti-script
set -e; for i in src/util src/global src/dns src/tls src/xsasl src/milter src/master  src/postfix src/fsstone src/smtpstone  src/sendmail src/error src/pickup src/cleanup src/smtpd src/local  src/trivial-rewrite src/qmgr src/oqmgr src/smtp src/bounce  src/pipe src/showq src/postalias src/postcat src/postconf src/postdrop  src/postkick src/postlock src/postlog src/postmap src/postqueue  src/postsuper src/qmqpd src/spawn src/flush src/verify  src/virtual src/proxymap src/anvil src/scache src/discard src/tlsmgr  src/postmulti; do  (set -e; echo "[$i]"; cd $i; make 'CC=cc -DDEF_CONFIG_DIR=\"/usr/local/etc/postfix\" -DDEF_DAEMON_DIR=\"/usr/local/libexec/postfix\" -DDEF_COMMAND_DIR=\"/usr/local/sbin\" -DDEF_SENDMAIL_PATH=\"/usr/local/sbin/sendmail\" -DDEF_NEWALIAS_PATH=\"/usr/local/bin/newaliases\" -DDEF_MAILQ_PATH=\"/usr/local/bin/mailq\" -DDEF_MANPAGE_DIR=\"/usr/local/man\" -DDEF_README_DIR=\"/usr/local/share/doc/postfix\" -DDEF_HTML_DIR=\"/usr/local/share/doc/postfix\" -DDEF_QUEUE_DIR=\"/var/spool/postfix\" -DDEF_DATA_DIR=\"/var/db/postfix\" -DDEF_MAIL_OWNER=\"postfix\" -DDEF_SGID_GROUP=\"maildrop\" -DHAS_PCRE -I/usr/local/include -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\"dovecot\" -DUSE_TLS -I/usr/include -I/usr/local/include/db46 -DHAS_MYSQL -I/usr/local/include/mysql -DHAS_LDAP -I/usr/local/include -DHAS_CDB -I/usr/local/include' update MAKELEVEL=) || exit 1;  done
[src/util]
cc -DDEF_CONFIG_DIR=\"/usr/local/etc/postfix\" -DDEF_DAEMON_DIR=\"/usr/local/libexec/postfix\" -DDEF_COMMAND_DIR=\"/usr/local/sbin\" -DDEF_SENDMAIL_PATH=\"/usr/local/sbin/sendmail\" -DDEF_NEWALIAS_PATH=\"/usr/local/bin/newaliases\" -DDEF_MAILQ_PATH=\"/usr/local/bin/mailq\" -DDEF_MANPAGE_DIR=\"/usr/local/man\" -DDEF_README_DIR=\"/usr/local/share/doc/postfix\" -DDEF_HTML_DIR=\"/usr/local/share/doc/postfix\" -DDEF_QUEUE_DIR=\"/var/spool/postfix\" -DDEF_DATA_DIR=\"/var/db/postfix\" -DDEF_MAIL_OWNER=\"postfix\" -DDEF_SGID_GROUP=\"maildrop\" -DHAS_PCRE -I/usr/local/include -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\"dovecot\" -DUSE_TLS -I/usr/include -I/usr/local/include/db46 -DHAS_MYSQL -I/usr/local/include/mysql -DHAS_LDAP -I/usr/local/include -DHAS_CDB -I/usr/local/include NO -O2 -pipe -DLDAP_DEPRECATED -fno-strict-aliasing -I. -DFREEBSD8 -c alldig.c
cc: NO: No such file or directory
*** Error code 1

Stop in /usr/ports/mail/postfix26/work/postfix-2.6.8/src/util.
*** Error code 1

Stop in /usr/ports/mail/postfix26/work/postfix-2.6.8.
*** Error code 1

Stop in /usr/ports/mail/postfix26.
*** Error code 1

Stop in /usr/ports/mail/postfix26.
< ERROR > Port was not success installed, please fix it manually and then re-execute this script.

回复: 今天想在FreeBSD8.1 64位上面装0.6.1,发生错误如下,请求指点!

似乎是postfix2.6出了问题,我进ports手工make install一下,是可以正常安装的,但是用iredmail安装脚本就说某个路径不存在什么的,我水平有限找不到办法,所以来这里请求指导。谢谢!

回复: 今天想在FreeBSD8.1 64位上面装0.6.1,发生错误如下,请求指点!

参考这个帖子:
http://www.iredmail.org/forum/post5176.html#p5176

回复: 今天想在FreeBSD8.1 64位上面装0.6.1,发生错误如下,请求指点!

哈哈,有效,远程服务器正在奋勇编译呢。我要等下去。谢谢。看来要去英文版混混乐

回复: 今天想在FreeBSD8.1 64位上面装0.6.1,发生错误如下,请求指点!

Installed /usr/local/lib/python2.6/site-packages/netifaces-0.5-py2.6-freebsd-8.1-RELEASE-x86_64.egg
===>   Registering installation for py26-netifaces-0.5
===>  Cleaning for py26-netifaces-0.5
< INFO > Configure User/Group: vmail.
< INFO > Configure Apache web server and PHP.
< Backup > /usr/local/etc/apache22/httpd.conf -> httpd.conf.2011.02.19.00.04.08.
< Backup > /usr/local/etc/apache22/extra/httpd-ssl.conf -> httpd-ssl.conf.2011.02.19.00.04.08.
< INFO > Configure OpenLDAP server.
< Backup > /usr/local/etc/openldap/slapd.conf -> slapd.conf.2011.02.19.00.04.08.
< Backup > /usr/local/etc/openldap/ldap.conf -> ldap.conf.2011.02.19.00.04.08.
slapd not running? (check /var/run/openldap/slapd.pid).
Starting slapd.
Segmentation fault
/usr/local/etc/rc.d/slapd: WARNING: failed to start slapd
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
< INFO > Configure Postfix.
< Backup > /usr/local/etc/postfix/main.cf -> main.cf.2011.02.19.00.04.08.
< Backup > /usr/local/etc/postfix/master.cf -> master.cf.2011.02.19.00.04.08.
< Backup > /etc/mail/mailer.conf -> mailer.conf.2011.02.19.00.04.08.
< INFO > Configure Policyd (postfix policy daemon).
< INFO > Configure Dovecot (pop3/imap server).
< Backup > /usr/local/etc/dovecot.conf -> dovecot.conf.2011.02.19.00.04.08.
< Backup > /usr/local/etc/dovecot-ldap.conf -> dovecot-ldap.conf.2011.02.19.00.04.08.
< INFO > Configure Procmail (MDA).
< INFO > Configure ClamAV (anti-virus toolkit).
< INFO > Configure Amavisd-new.
< Backup > /usr/local/etc/amavisd.conf -> amavisd.conf.2011.02.19.00.04.08.
< Backup > /usr/local/etc/amavisd.conf -> amavisd.conf.2011.02.19.00.04.08.
< INFO > Configure SpamAssassin (content-based spam filter).
< INFO > Configure Roundcube webmail.
< INFO > Configure phpLDAPadmin (web-based LDAP management tool).
< INFO > Configure phpMyAdmin (web-based MySQL management tool).
< INFO > Configure Awstats (logfile analyzer for mail and web server).
< Backup > /usr/local/www/awstats/cgi-bin/awstats.model.conf -> awstats.model.conf.2011.02.19.00.04.08.
< INFO > Configure iRedAdmin (official web-based admin panel).
< INFO > Checking necessary command/package: bzip2/bzip2 ...
< INFO > Configure iRedAPD (postfix policy daemon).
< INFO > Checking necessary command/package: bzip2/bzip2 ...

*************************************************************************
* iRedMail-0.6.1 installation and configuration complete.
*************************************************************************

上面似乎警告slapd没能启动也?openldap没装好?

6 最后由 satan (2011-02-19 11:47:42) 编辑

回复: 今天想在FreeBSD8.1 64位上面装0.6.1,发生错误如下,请求指点!

mail# cat openldap.log
Feb 19 01:11:00 mail slapd[731]: @(#) $OpenLDAP: slapd 2.4.23 (Feb 18 2011 19:11:45) $  root@mail.afmail.com.cn:/usr/ports/net/openldap24-server/work/openldap-2.4.23/servers/slapd
Feb 19 09:11:18 mail slapd[2543]: @(#) $OpenLDAP: slapd 2.4.23 (Feb 18 2011 19:11:45) $         root@mail.afmail.com.cn:/usr/ports/net/openldap24-server/work/openldap-2.4.23/servers/slapd

回复: 今天想在FreeBSD8.1 64位上面装0.6.1,发生错误如下,请求指点!

mail# cat slapd.conf
#
# File generated by iRedMail (2011.02.19.00.04.08):
#
# Version:  0.6.1
# Project:  http://www.iredmail.org/
#
# Community: http://www.iredmail.org/forum/
#

# Schemas.
include     /usr/local/etc/openldap/schema/core.schema
include     /usr/local/etc/openldap/schema/corba.schema
include     /usr/local/etc/openldap/schema/cosine.schema
include     /usr/local/etc/openldap/schema/inetorgperson.schema
include     /usr/local/etc/openldap/schema/nis.schema
# Integrate Amavisd-new.
include     /usr/local/etc/openldap/schema/amavisd-new.schema
# Schema provided by iRedMail.
include     /usr/local/etc/openldap/schema/iredmail.schema

# Where the pid file is put. The init.d script will not stop the
# server if you change this.
pidfile     /var/run/openldap/slapd.pid

# List of arguments that were passed to the server
argsfile    /var/run/openldap/slapd.args

# TLS files.
TLSCACertificateFile /etc/ssl/certs/iRedMail_CA.pem
TLSCertificateFile /etc/ssl/certs/iRedMail_CA.pem
TLSCertificateKeyFile /etc/ssl/private/iRedMail.key

# Modules.
modulepath  /usr/local/libexec/openldap
moduleload  back_bdb

# Disallow bind as anonymous.
disallow    bind_anon

# Uncomment below line to allow binding as anonymouse.
#allow bind_anon_cred

#
# Specify LDAP protocol version.
#require     LDAPv3
allow       bind_v2

# Log level.
#   -1:     enable all debugging
#    0:     no debugging
#   128:    access control list processing
#   256:    stats log connections/operations/results
loglevel    256

#
# Access Control List. Used for LDAP bind.
#
# NOTE: Every domain have a administrator. e.g.
#   Domain Name: 'afmail.com.cn'
#   Admin Name: mail=postmaster@afmail.com.cn, domainName=afmail.com.cn, o=domains,dc=afmail,dc=com.cn
#

#
# Set permission for LDAP attrs.
#
access to attrs="userPassword,mailForwardingAddress"
    by anonymous    auth
    by self         write
    by dn.exact="cn=vmail,dc=afmail,dc=com.cn"   read
    by dn.exact="cn=vmailadmin,dc=afmail,dc=com.cn"  write
    by users        none

access to attrs="cn,sn,telephoneNumber"
    by anonymous    auth
    by self         write
    by dn.exact="cn=vmail,dc=afmail,dc=com.cn"   read
    by dn.exact="cn=vmailadmin,dc=afmail,dc=com.cn"  write
    by users        read

# Domain attrs.
access to attrs="objectclass,domainName,mtaTransport,enabledService,domainSenderBccAddress,domainRecipientBccAddress,domainAdmin,domainGlobalAdmin,domainBackupMX,domainMaxQuotaSize,domainMaxUserNumber"
    by anonymous    auth
    by self         read
    by dn.exact="cn=vmail,dc=afmail,dc=com.cn"   read
    by dn.exact="cn=vmailadmin,dc=afmail,dc=com.cn"  write
    by users        read

# User attrs.
access to attrs="employeeNumber,homeDirectory,mailMessageStore,mail,accountStatus,userSenderBccAddress,userRecipientBccAddress,mailForwardingAddress,mailQuota,backupMailAddress,shadowAddress"
    by anonymous    auth
    by self         read
    by dn.exact="cn=vmail,dc=afmail,dc=com.cn"   read
    by dn.exact="cn=vmailadmin,dc=afmail,dc=com.cn"  write
    by users        read

#
# Set ACL for vmail/vmailadmin.
#
access to dn="cn=vmail,dc=afmail,dc=com.cn"
    by anonymous                    auth
    by self                         write
    by dn.exact="cn=vmailadmin,dc=afmail,dc=com.cn"  write
    by users                        none
access to dn="cn=vmailadmin,dc=afmail,dc=com.cn"
    by anonymous                    auth
    by self                         write
    by users                        none

#
# Allow users to access their own domain subtree.
# Allow domain admin to modify accounts under same domain.
#
access to dn.regex="domainName=([^,]+),o=domains,dc=afmail,dc=com.cn$"
    by anonymous                    auth
    by self                         write
    by dn.exact="cn=vmail,dc=afmail,dc=com.cn"   read
    by dn.exact="cn=vmailadmin,dc=afmail,dc=com.cn"  write
    by dn.regex="mail=[^,]+@$1,o=domainAdmins,dc=afmail,dc=com.cn$" write
    by dn.regex="mail=[^,]+@$1,ou=Users,domainName=$1,o=domains,dc=afmail,dc=com.cn$" read
    by users                        none

#
# Enable vmail/vmailadmin.
#
access to dn.subtree="o=domains,dc=afmail,dc=com.cn"
    by anonymous                    auth
    by self                         write
    by dn.exact="cn=vmail,dc=afmail,dc=com.cn"   read
    by dn.exact="cn=vmailadmin,dc=afmail,dc=com.cn"  write
    by dn.regex="mail=[^,]+,ou=Users,domainName=$1,o=domains,dc=afmail,dc=com.cn$" read
    by users                        read

access to dn.subtree="o=domainAdmins,dc=afmail,dc=com.cn"
    by anonymous                    auth
    by self                         write
    by dn.exact="cn=vmail,dc=afmail,dc=com.cn"   read
    by dn.exact="cn=vmailadmin,dc=afmail,dc=com.cn"  write
    by users                        none

#
# Set permission for "cn=*,dc=afmail,dc=com.cn".
#
access to dn.regex="cn=[^,]+,dc=afmail,dc=com.cn"
    by anonymous                    auth
    by self                         write
    by users                        none
#
# Set default permission.
#
access to *
    by anonymous                    auth
    by self                         write
    by users                        read

#######################################################################
# BDB database definitions
#######################################################################

database    bdb
suffix      dc=afmail,dc=com.cn
directory   /var/db/openldap-data/afmail.com.cn

rootdn      cn=Manager,dc=afmail,dc=com.cn
rootpw      {SSHA}blank

sizelimit   1000
cachesize   1000

#
# Set directory permission.
#
mode        0700

#
# Default index.
#
index objectClass                                   eq,pres
index uidNumber,gidNumber,uid,memberUid,loginShell  eq,pres
index homeDirectory,mailMessageStore                eq,pres
index ou,cn,mail,surname,givenname,telephoneNumber  eq,pres,sub
index nisMapName,nisMapEntry                        eq,pres,sub

#
# Index for mail attrs.
#
# ---- Domain related ----
index domainName,mtaTransport,accountStatus,enabledService  eq,pres,sub
index domainAliasName    eq,pres,sub
index domainMaxUserNumber eq,pres
index domainAdmin,domainGlobalAdmin,domainBackupMX    eq,pres,sub
index domainSenderBccAddress,domainRecipientBccAddress  eq,pres,sub
# ---- Group related ----
index accessPolicy,hasMember,listAllowedUser   eq,pres,sub
# ---- User related ----
index mailForwardingAddress,shadowAddress   eq,pres,sub
index backupMailAddress,memberOfGroup   eq,pres,sub
index userRecipientBccAddress,userSenderBccAddress  eq,pres,sub

回复: 今天想在FreeBSD8.1 64位上面装0.6.1,发生错误如下,请求指点!

mail# cat /etc/rc.conf

# -- sysinstall generated deltas -- # Fri Feb 18 16:23:25 2011
# Created: Fri Feb 18 16:23:25 2011
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
defaultrouter="10.99.0.9"
hostname="mail.afmail.com.cn"
ifconfig_bge0="inet 10.99.0.11  netmask 255.255.255.0"
ifconfig_bge1="inet 192.168.6.204  netmask 255.255.255.0"
keymap="us.iso"
sshd_enable="on"

# Start apache web server.
apache22_enable="YES"
htcacheclean_enable="NO"
# Start openldap server.
slapd_enable="YES"
slapd_flags='-h "ldapi://%2fvar%2frun%2fopenldap%2fldapi/ ldap://127.0.0.1/"'
slapd_sockets="/var/run/openldap/ldapi"
# Start mysql server.
mysql_enable="YES"
# Start postfix.
postfix_enable="YES"
# Disable sendmail.
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
daily_clean_hoststat_enable="NO"
daily_status_mail_rejects_enable="NO"
daily_status_include_submit_mailq="NO"
daily_submit_queuerun="NO"
# Start policyd.
postfix_policyd_sf_enable="YES"
# Start dovecot IMAP/POP3 server.
dovecot_enable="YES"
# Start clamd and freshclamd.
clamav_clamd_enable="YES"
clamav_freshclam_enable="YES"
# Start amavisd, disable amavis-milter.
amavisd_enable="YES"
amavisd_pidfile="/var/amavis/amavisd.pid"
amavis_milter_enable="NO"
amavis_p0fanalyzer_enable="NO"
#amavis_p0fanalyzer_p0f_filter="tcp dst port 25"
# Start iredapd.
iredapd_enable="YES"

回复: 今天想在FreeBSD8.1 64位上面装0.6.1,发生错误如下,请求指点!

mail# cat /etc/hosts
::1                     localhost localhost.afmail.com.cn
127.0.0.1               mail mail.afmail.com.cn localhost localhost.afmail.com.cn
192.168.6.204           mail.afmail.com.cn mail
192.168.6.204           mail.afmail.com.cn.

一点说明:
127.0.0.1               mail mail.afmail.com.cn 这前面的是我根据安装指导自己加上去的
原本是:
127.0.0.1               localhost localhost.afmail.com.cn

还有需要贴出来的请站长吩咐,谢谢!

回复: 今天想在FreeBSD8.1 64位上面装0.6.1,发生错误如下,请求指点!

尝试在命令行执行 rc.d 里的启动脚本来启动openldap,看看有什么提示信息。

回复: 今天想在FreeBSD8.1 64位上面装0.6.1,发生错误如下,请求指点!

mail# pwd
/usr/local/etc/rc.d
mail# ./slapd start
Starting slapd.
Segmentation fault
./slapd: WARNING: failed to start slapd

回复: 今天想在FreeBSD8.1 64位上面装0.6.1,发生错误如下,请求指点!

手动阻止了OpenLDAP还有PostFix的自动安装改为手工安装,然后再跑安装脚本,顺利完成安装,但是发生一个问题就是:webmail可以成功收发信件,但是smtp总是报sasl认证错误,用户名或密码错误。看来是PostFix手动安装时选的参数不对。

回复: 今天想在FreeBSD8.1 64位上面装0.6.1,发生错误如下,请求指点!

satan 写道:

似乎是postfix2.6出了问题,我进ports手工make install一下,是可以正常安装的,但是用iredmail安装脚本就说某个路径不存在什么的,我水平有限找不到办法,所以来这里请求指导。谢谢!

我猜,是不是因为/var/db/ports/postfix/options这里边的参数是针对postfix2.5的,所以用这些参数编译2.6的postfix才会报错?要是这样的话,老大应该在这里做个判断,如果是2.5的,就往/var/db/ports/postfix/options这里添加目前的参数,如果是2.6的postfix,就另行处理,老大觉得呢?