Maildrop
Installation:
0. Install dependent libraries, header files, library files
# Ln-sv/usr/local/courier-authlib/bin/courierauthconfig/usr/bin
# ln-sv/usr/local/courier-authlib/include/*/usr/include
# yum-y Install Pcre-devel
1. Add Vmail users and groups with IDs greater than 1000:
# GROUPADD-G 1001 Vmail
# useradd-g vmail-u 1001-m-s/sbin/nologin vmail
2. Compile and install:
# Tar XF maildrop-xxx.tar.bz2
# CD Maildrop-xxx
#./configure \
--enable-sendmail=/usr/sbin/sendmail \
--enable-trusted-users= ' root vmail ' \
--enable-syslog=1--enable-maildirquota \
--ENABLE-MAILDROP-UID=1001 \
--ENABLE-MAILDROP-GID=1001 \
--with-trashquota--with-dirsync
# make
# make Install
Detailed compilation options:
--enable-sendmail=/usr/sbin/sendmail
--enable-trusted-users= ' root vmail ' enable trusted user as root and vmail
--enable-syslog=1 Enable logging
--enable-maildirquota mail address queuing enabled
--ENABLE-MAILDROP-UID=1001 enables the Maildrop group ID, which is Vmail
--enable-maildrop-gid=1001 enable Maildrop User ID, which is Vmail
--with-trashquota Starting the transmission queue
--with-dirsync Starting directory synchronization
3. Check the installation results and make sure that you have "Courier authentication Library extension enabled." A sentence appears:
# maildrop-v
Maildrop 2.6.0 Copyright 1998-2005 Double Precision, Inc.
GDBM/DB extensions enabled.
Courier authentication Library extension enabled.
Maildir quota extension is now always enabled.
This program was distributed under the terms of the GNU general public
License. See COPYING for additional information.
Configuration file:
/etc/maildroprc
# VIM/ETC/MAILDROPRC
LogFile "/var/log/maildrop.log" specifies the log file
# Touch/var/log/maildrop.log
# chown Vmail.vmail/var/log/maildrop.log
configuring Postfix Support Maildrop
1. Edit MASTER.CF
# VIM/ETC/POSTFIX/MASTER.CF
Maildrop unix-n N--pipe
Flags=drhu user=vmail argv=/usr/local/bin/maildrop-d ${recipient}
Note: When defining transport, the argument line must start with a space, such as the second row in the last two rows, or an error will occur.
2. Edit the MAIN.CF and change the delivery agent from Vitrual to Maildrop
#vim/ETC/POSTFIX/MAIN.CF
Virtual_transport = Maildrop
Virtual_uid_maps = static:1001
Virtual_gid_maps = static:1001
3. Edit/ETC/AUTHMYSQLRC, change the MySQL connection user
#vim/ETC/AUTHMYSQRC
Mysql_uid_field ' 1001 '
Mysql_gid_field ' 1001 '
Note: Maildrop may report a "Signal 0x06" error report without the modifications here.
Configure Extman and Extmail support Maildrop:
1. Edit the/etc/httpd/httpd.conf, modify the user identities of Extmail and Extman. Recommend the first kind
#vim/etc/httpd/extra/httpd-vhosts.conf
Suexecusergroup Vmail Vmail
Or:
#vim/etc/httpd/httpd.conf
User Vmail
Group Vmail
2. Designate the owner group/tmp/extman the directory/var/mailbox and Extman of the user's message as Vmail
#chown-R Vmail.vmail/var/mailbox
#chown-R Vmail.vmail/tmp/extman
3. Modify the Default User ID and group ID in the Extman master profile to make sure it is similar to the following
#vim/VAR/WWW/EXTSUITE/EXTMAN/WEBMAN.CF
Sys_default_uid = 1001
Sys_default_gid = 1001
4. Positive configuration:
Next restart Postfix and Apache, after sending the test, if the log records similar to the following entries, the installation is successful
APR 15:33:54 localhost postfix/pipe[11964]: 04b92147ce9:to=<[email protected]>, Relay=maildrop, delay=0.16, delays=0.07/0.03/0/0.07, dsn=2.0.0, Status=sent (delivered via Maildrop service)
This article is from "Small Private blog" blog, please be sure to keep this source http://ggvylf.blog.51cto.com/784661/1668741
Postfix's Maildrop detailed