星期日, 3月 06, 2005

Postfix Integrated Solution

待看

Postfix Integrated Solution

PLAdmin -- Postfix+ldap管理工具: "PLAdmin -- Postfix+ldap管理工具"

Postfix 在中國- faq

Postfix Integrated Solution

Huihoo.org - Internet基礎設施

Postfix RPM Packages

Pavo's Postfix Page - VDA Autoresponders

Pavo's Postfix Page

日本文章

日本文章

DEBIAN LINUX - Mailserver HOWTO, using Postfix, MySQL, Courier IMAP and virtual users

courier-users (read-only) Search

kunmail











Postfixadmin postfix installation
Because of Postfixadmin postfix installation [ The record of Linux ]
Presently, it makes MySQL correspond in order to introduce postfixadmin into postfix which is in the midst of operating
(Postfix being uninduced, it re-compiles being, the same)
As for UID GID following to howto of PostfixAdmin, with just the 銈?
Setting of 1001 is adjusted to UID GID of postfix of all actual UNIX systems
***********************************************
***************
To uninduced one
***************
Ftp://ftp.Dnsbalance.Ring.Gr.Jp/pub/net/mail/postfix/index.Html
The latest edition is procured from here
# cd /usr/local/src
# wget ftp://ftp.Dnsbalance.Ring.Gr.Jp/pub/net/mail/postfix/official/postfix-2.1.5.Tar.Gz
# cd..
# tar zxvf./src/postfix-2.1.5.Tar.Gz
If this is done, or less explanation is same
***********************************************

First quota which corresponds to MailDir type you insert.
The patch, Postfix VDA release is done in Postfix.
Http://web.Onda.Com.Br/nadal/
Adjusting to the version of Postfix, it will procure the patch
This time up-to-date postfix-2.1.5-trash.Patch.It is gz
# cd /usr/local/src
# wget http://web.Onda.Com.Br/nadal/postfix/VDA/postfix-2.1.5-trash.Patch.Gz
# gzip -d./src/postfix-2.1.5-trash.Patch.Gz
# cd /usr/local/postfix-2.1.5
# patch -p1 <../src/postfix-2.1.5-trash.patch

Because Make before doing, you become the open mail server, SMTP-AUTH is done
Because of that, Cyrus SASL2 is inserted in order to certify to MySQL

# cd /usr/local/src
# wget ftp://ftp.Andrew.Cmu.Edu/pub/cyrus-mail/OLD-VERSIONS/sasl/cyrus-sasl-2.1.17.Tar.Gz
# cd..
# tar zxvf./src/cyrus-sasl-2.1.17.Tar.Gz
# cd cyrus-sasl-2.1.17/
# ./configure --enable-static --with-saslauthd=/var/cyrus --with-pwcheck=/var/cyrus --with-openssl=/usr --disable-otp --disable-krb4 --disable-gssapi --disable-anon --enable-login --enable-sql --with-dblib=berkeley --with-mysql=/usr/local/mysql
# make
# make install
# ln -s /usr/local/lib/sasl2 /usr/lib/sasl2
# mkdir /var/cyrus
# chmod 700 /var/cyrus
# chown postfix /var/cyrus
# vi /usr/local/lib/sasl2/smtpd.Conf
***************************************
Pwcheck_method: Auxprop
Auxprop_plugin: Sql
Allowanonymouslogin: No
Allowplaintext: Yes
Mech_list: Plain login
Sql_engine: Mysql
Sql_user: Postfixadmin
Sql_passwd: Postfixpasswd
Sql_hostnames: Localhost
Sql_database: Postfix
Sql_select: SELECT password FROM mailbox WHERE username='%u@%r'
Sql_verbose: Yes
***************************************
Description above when it cooperates with PostfixAdmin,

Courier-IMAP of the reception server is installed
# wget http://unc.Dl.Sourceforge.Net/sourceforge/courier/courier-imap-3.0.8.Tar.Bz2
# cd..
# tar jxvf./src/courier-imap-3.0.8.Tar.Bz2
# chown -Rf./courier-imap-3.0.8
It returns to user authority from here, (error evasion)
$ ./configure
$ make WITH_MYSQL=yes
$ make check
$ su
# make install
# make install-configure
# cd /usr/lib/courier-imap/etc/
# vi authdaemonrc
********************************
Authmodulelist= "authmysql"
Version= "authdaemond.Mysql "
********************************
# vi authmysqlrc
********************************
MYSQL_SERVER localhost //MySQL server name
User name at time of MYSQL_USERNAME postfix //MySQL connection
Password at time of MYSQL_PASSWORD nabisco //MySQL connection
The database name of MYSQL_DATABASE postfix //PostfixAdmin
MYSQL_USER_TABLE mailbox
MYSQL_CRYPT_PWFIELD password/password type
MYSQL_UID_FIELD '1001' //postfix user identification
MYSQL_GID_FIELD '1001' //postfix group ID
MYSQL_LOGIN_FIELD username
MYSQL_HOME_FIELD '/usr/local/virtual'
MYSQL_NAME_FIELD name
MYSQL_MAILDIR_FIELD maildir
********************************
As for MYSQL_CRYPT_PWFIELD the setting file config. of PostfixAdminInc.Php
"#CONF [ 'encrypt' ] = 'md5crypt'; "Becoming, in case of the 銈? with" password "OK

You stop QPOPPER next
/etc/xinet.Moving d/popper to /root, xinet.Restarting d
(It just has made evacuate being, ahead moving it is good anywhere)

And POP3 IMAP is moved
# cd /usr/lib/courier-imap/libexec/
# ./pop3d.Rc START
# ./imapd.Rc START

Starting is verified next
#nmap localhost
110/tcp open pop-3
143/tcp open imap

Finally the re-compiling Postfix
# cd /usr/local/postfix-2.1.5
# make -f Makefile.Init makefiles 'CCARGS=-DHAS_MYSQL -I/usr/local/mysql/include/mysql -DUSE_SASL_AUTH -I/usr/local/include/sasl' 'AUXLIBS=-L/usr/local/mysql/lib/mysql -lmysqlclient -lz -lm -L/usr/lib -lsasl2'
# make
Verification whether and it became MySQL correspondence,
# ./src/postconf/postconf -m
****************************
Static
Cidr
Nis
Regexp
Environ
Mysql
Proxy
Btree
UNIX
Hash
****************************
Verifying the letter "of mysql"! If it is, success!

If there is error at the time of make, being to be many a thing where most file positions are not found
/usr/local/mysql/include/mysql
/usr/local/mysql/lib/mysql
Two probably will be checked properly in ls command
According to mysql installation state
/usr/local/mysql/include/
/usr/local/mysql/lib/
When is, it seems that is!

If it succeeds
# make install
So it ends the installation of postfix

The directory compilation which is appointed to virtual_mailbox_base
# mkdir /usr/local/virtual
# chown -R postfix:Postfix /usr/local/virtual
# chmod -R 751 /usr/local/virtual

And Postfix is set with the setting file
(As for the setting of basic mydomain and the like writing, increase it is)
# vi /etc/postfix/main.Cf
********************************
Virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.Cf
Virtual_gid_maps = static:1001 //postfix groups ID
Virtual_mailbox_base = /usr/local/virtual
Virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.Cf
Virtual_mailbox_limit = 51200000/maximum capacity (QUOTA either one priority lack of confirmation) of mailbox
Virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.Cf
Virtual_minimum_uid = 1001 //postfix user identification
Virtual_transport = virtual
Virtual_uid_maps = static:1001 //postfix user identification
From # this under when QUOTA is used with PostfixAdmin,
Virtual_create_maildirsize = yes
Virtual_mailbox_extended = yes
Virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.Cf
Virtual_mailbox_limit_override = yes
Virtual_maildir_limit_message = Sorry, the user's maildir has overdrawn his diskspace quota and please try again later.
Virtual_overquota_bounce = yes
********************************

Next
* Mysql_virtual_alias_maps.Cf
--------------------------------
User = postfix
Password = postfix
Hosts = localhost
Dbname = postfix
Table = alias
Select_field = goto
Where_field = address
--------------------------------

* Mysql_virtual_domains_maps.Cf
--------------------------------
User = postfix
Password = postfix
Hosts = localhost
Dbname = postfix
Table = domain
Select_field = description
Where_field = domain
--------------------------------

* Mysql_virtual_mailbox_maps.Cf
--------------------------------
User = postfix
Password = postfix
Hosts = localhost
Dbname = postfix
Table = mailbox
Select_field = maildir
Where_field = username
--------------------------------

* Mysql_virtual_mailbox_limit_maps.Cf
--------------------------------
User = postfix
Password = postfix
Hosts = localhost
Dbname = postfix
Table = mailbox
Select_field = quota
Where_field = username
--------------------------------

* Mysql_relay_domains_maps.Cf
--------------------------------
User = postfix
Password = postfix
Hosts = localhost
Dbname = postfix
Table = domain
Select_field = domain
Where_field = domain
Additional_conditions = and backupmx = '1'
--------------------------------
It sets, (it is not first stage being the file is made with vi)

Postfix+SASL2+Courier-IMAP+MySQL is completion at above
To tell the truth was long from here, but...

?? Postfix Admin
Http://www.High5.Net/postfixadmin/

?? ftp.Dnsbalance.Ring.Gr.Index. of jpHtml
Ftp://ftp.Dnsbalance.Ring.Gr.Jp/pub/net/mail/postfix/index.Html

Track/truck back

0 Comments:

張貼留言

<< Home