快捷搜索:   nginx

LINUX下Mail服务器配置(2)

    vauth.c:1368: warning: format argument is not a pointer (arg 3)

    vauth.c: In function `valias_select_all':

    vauth.c:1386: warning: format argument is not a pointer (arg 3)

    vauth.c:1390: warning: assignment makes pointer from integer without a cast

    vauth.c: In function `valias_select_all_next':

    vauth.c:1397: error: subscripted value is neither array nor pointer

    vauth.c:1398: error: subscripted value is neither array nor pointer

    make[2]: *** [vauth.o] Error 1

    make[2]: Leaving directory `/home/mail/vpopmail-5.4.0'

    make[1]: *** [all-recursive] Error 1

    make[1]: Leaving directory `/home/mail/vpopmail-5.4.0'

    make: *** [all] Error 2

    解决方案:如下….

    因为是重新编译,所以一定要用命令make clean把生成的文件删除然后再重新编译就可以了

    [root@mail vpopmail-5.4.0]#

    vpopmail directory = /home/vpopmail

    uid = 89

    gid = 89

    roaming users = ON --enable-roaming-users

    tcpserver file = /home/vpopmail/etc/tcp.smtp

    open_smtp file = /home/vpopmail/etc/open-smtp

    rebuild tcpserver file = ON --enable-rebuild-tcpserver-file (default)

    password learning = OFF --disable-learn-passwords (default)

    md5 passwords = ON --enable-md5-passwords (default)

    file locking = ON --enable-file-locking (default)

    vdelivermail fsync = OFF --disable-file-sync (default)

    make seekable = ON --enable-make-seekable (default)

    clear passwd = ON --enable-clear-passwd (default)

    user dir hashing = ON --enable-users-big-dir (default)

    address extensions = OFF --disable-qmail-ext (default)

    ip alias = OFF --disable-ip-alias-domains (default)

    domain quotas = OFF --disable-domainquotas (default)

    auth module = mysql --enable-auth-module=mysql

    mysql replication = OFF --disable-mysql-replication (default)

    mysql logging = OFF --disable-mysql-logging (default)

    mysql limits = OFF --disable-mysql-limits (default)

    MySQL valias = ON --enable-valias

    auth inc = -I/usr/local/mysql/include/mysql

    auth lib = -L/usr/local/mysql/l

ib/mysql -lmysqlclient -lz

    system passwords = OFF --disable-passwd (default)

    pop syslog = show only failed attempts

    --enable-logging=e (default)

    auth logging = OFF --disable-auth-logging

    all domains in one SQL table = --enable-many-domains (default)

    [root@mail vpopmail-5.4.0]# make install-strip

    [root@mail bin]# ./vadddomain china-yr.com

    ./vadddomain: error while loading shared libraries: libmysqlclient.so.15: cannot open shared object file: No such file or directory

    增加虚拟域的时候出现如上问题:

    解决方案: [root@mail bin]# cp /usr/local/mysql/lib/mysql/ /usr/lib/ -Rf

    [root@mail bin]# echo "/usr/local/mysql/lib/mysql/">>/etc/ld.so.conf

    [root@mail bin]# ldconfig -v|grep libmysqlclient

    libmysqlclient.so.15 -> libmysqlclient.so.15.0.0

    然后增加虚拟域的时候就可以成功了:)

    [root@mail bin]# ./vadddomain china-yr.com

    Please enter password for postmaster:

    [root@mail bin]# ./vadddomain china-yr.com

    Please enter password for postmaster:

    enter password again:

    [root@mail bin]# ./vadduser [email protected]

    Please enter password for [email protected]:

    enter password again:

    安装courier-imap邮件系统的IMAP模块

    [root@mail mail]# tar jxvf courier-imap-4.0.6.tar.bz2

    [root@mail mail]# cd courier-imap-4.0.6

    安装这个软件的时候解压配置必须用非ROOT用户的普通用户才行。等到编译的时候再切换为超级用户ROOT帐户。

    [vpopmail@mail mail]$ tar zxvf courier-imap-4.0.6.tar.gz

    [vpopmail@mail courier-imap-4.0.6]$ cd courier-imap-4.0.6

    [vpopmail@mail courier-imap-4.0.6]$ ./configure --prefix=/usr/local/courier-imap

    --with-authvchkpw --with-redhat

    checking for courierauthconfig... no

    configure: WARNING: === Courier authentication library not found.

    configure: WARNING: === You need to download and install

    configure: WARNING: === http://www.courier-mta.org/download.php#authlib first.

    configure: WARNING: === If courier-authlib is installed in a non-default

    configure: WARNING: === directory, set the COURIERAUTHCONFIG environment

    configure: WARNING: === variable to the full path to the courierauthconfig

    configure: WARNING: === binary and rerun this configure script.>

    configure: WARNING:

    configure: error: courierauthconfig not found

    出现上述相关联错误,

    解决方案必须安装一个叫做authentication library的包.到http://www.courier-mta.org/download.php#authlib  这个地方来下载..

    安装: courier-authlib-0.58.tar.gz

    注:在安装的时候会出现下面这样的错误,一定要先解决他们的关联性才可在继续安装

    /bin/sh authmigrate

    make install-configure

    checking for courier-config... no

    checking for expect... no

    configure: WARNING: -----------------------------------------------------

    configure: WARNING: expect not found - will not be able to change passwds

    configure: WARNING: in webmail

    configure: WARNING: -----------------------------------------------------

    checking for passwd... /usr/bin/passwd

    checking whether -lm is needed for floor... yes

    checking for socket in -lsocket... no

    checking for socket in -lsocket... (cached) no

    checking for connect in -lsocket... no

    checking for connect in -lsocket... (cached) no

    checking for gdbm_open in -lgdbm... no

    checking for gdbm_open... no

    checking for dbopen in -ldb... no

    checking for db_open in -ldb... no

    checking for db_env_create in -ldb... no

    checking for dbopen... no

    checking for db_open... no

    checking for db_env_create... no

    configure: error: Cannot find either the gdbm or the db library.

    出现上述错误,解决方案是安装下面的软件在进行

    [root@mail mail]# rpm -ihv gdbm-devel-1.8.0-25.i386.rpm

    warning: gdbm-devel-1.8.0-25.i386.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2

    Preparing...                ########################################### [100%]

    1:gdbm-devel ########################################### [100%]

    [root@mail courier-authlib-0.58]# ./configure --prefix=/usr/local/courier-auth --with-redhat --with-mysql-libs=/usr/local/mysql/lib/mysql/ --with-mysql-includes=/usr/local/mysql/include/mysql/ --with-gd=gdbm

    [root@mail courier-authlib-0.58]# make

    [root@mail courier-authlib-0.58]# make install

    [root@mail courier-authlib-0.58]# make install-migrate

    [root@mail courier-authlib-0.

58]# make install-configure

    注意:安装之后一定要确保起动来了.不然还会出现上述错误.

    解决方案如下:(如下是我在网上查到的一些资料,有问题和答案,大家可以做一下参考)

    On Wed, Oct 26, 2005 at 08:21:39AM -0700, Mike Baker wrote: > I am trying to install Courier-Imap with the --with-redhat tag. The

    > install clips along fine until this:

    > checking for courierauthconfig... no > configure: WARNING: === Courier authentication library not found.

    > configure: WARNING: === You need to download and install

    > configure: WARNING: ===

    > [1]http://www.courier-mta.org/download.php#authlib first.

    > configure: WARNING: === If courier-authlib is installed in a

    > non-default

    > configure: WARNING: === directory, set the COURIERAUTHCONFIG

    > environment

    > configure: WARNING: === variable to the full path to the

    > courierauthconfig

    > configure: WARNING: === binary and rerun this configure script.

    > configure: WARNING:

    > configure: error: courierauthconfig not found

    > What's weird is I already installed Courier Authentication. In fact,

    > when I su as root, I can run courier-auth start and it starts okay.

    > I suspect that something is in a non-default location. None of the

    > procedures I'm working from reference 'courierauthconfig'. Where do I

    > find this? Is it a file or maybe a directory name?
There's no script "courier-auth start" in a default installation. What O/S and packaging system are you using? What version of courier-authlib did you install?

    Note that you can't run a modern courier-imap (4.x) using the authdaemon which comes in a older version of courier-imap (3.x). You really must install courier-authlib as a separate package.

    If you are building directly from source, and you have a recent courier-authlib (0.57 preferably), then the following should help.

    If you start authdaemond using

    # /foo/sbin/authdaemond start

    then courierauthconfig is most likely in

    # /foo/bin/courierauthconfig

    Otherwise look for it using:

    # which courierauthconfig

    # locate courierauthconfig

    # find / -type f -name courierauthconfig

    Once you know what directory it's in, make sure that directory is in the $PATH be

fore running ./configure in the courier-imap source directory. In

    the above example:

    $ PATH=/foo/bin:$PATH

    $ export PATH

    $ ./configure ...

    Regards,

    Brian.

    [root@mail local]# ln -s /usr/local/courier-auth/bin/courierauthconfig /usr/bin/courierauthconfig

    [root@mail local]# export PATH

    [root@mail local]# ln -s /usr/local/courier-auth/bin/courierauthconfig /usr/bin/courierauthconfig

    [root@mail local]# export PATH

    [root@mail courier-imap-4.0.6]# cp /usr/local/courier-auth/include/courierauth.h

    /home/vpopmail/courier-imap-4.0.6/imap/

    [root@mail courier-imap-4.0.6]# cp /usr/local/courier-auth/include/courierauthde

    bug.h /home/vpopmail/courier-imap-4.0.6/imap/

    [root@mail courier-imap-4.0.6]# cp /usr/local/courier-auth/include/courier_auth_config.h /home/vpopmail/courier-imap-4.0.6/imap/

    [root@mail courier-imap-4.0.6]# cp /usr/local/courier-auth/include/courierauthsasl.h /home/vpopmail/courier-imap-4.0.6/imap/

    [root@mail courier-imap-4.0.6]# cp /usr/local/courier-auth/include/courierauthsaslclient.h /home/vpopmail/courier-imap-4.0.6/imap/

    [root@mail courier-imap-4.0.6]# cp /usr/local/courier-auth/include/ltdl.h /home/vpopmail/courier-imap-4.0.6/imap/

    [vpopmail@mail courier-imap-4.0.6]$ ./configure --prefix=/usr/local/courier-imap --with-authvchkpw --with-redhat --with-authchangepwdir=/usr/local/courier-auth/libexec/courier-authlib/

    [vpopmail@mail courier-imap-4.0.6]$ make

    [vpopmail@mail courier-imap-4.0.6]$ make check

    下面切换为ROOT用户

    [root@mail courier-imap-4.0.6]# make install

    [root@mail courier-imap-4.0.6]# make install-configure

    下面修改/usr/local/courier-imap/etc/imapd文件

    ·         改变 MAXDAEMONS 到 40.

    ·         改变 MAXPERIP 到 100.

    ·         改变 TCPDOPTS 为 "-nodnslookup -noidentlookup -user=vpopmail -group=vchkpw".

    ·改变AUTHMODULES为"authvchkpw"使用vpopmail认证

    ·         根据个人需要任意改变 IMAP_EMPTYTRASH=Trash:7,Sent:30

    ·         改变 IMAPDSTART 为YES.

    qmailadmin……..

    安装autorespond 自动回复程序,可以很好的与qmailadmin配合使用

    [root@mail mail]# tar zxvf autorespond-2.02.tar.gz

    [root@mail mail]# cd autorespond-2.0.2

    [root@mail autorespond-2.0.2]# ls

    autorespond.c  help_message  Makefile  qmail-auto  README

顶(0)
踩(0)

您可能还会对下面的文章感兴趣:

最新评论