UPDATED 已修复(01/10/2006) : extmail 安装包 ( CENTOS 4.3 with LDAP)
[b]注意[/b][b] Please download from here:
[url]http://www.ethansoft.com/index.php?option=com_docman&task=doc_download&gid=1&Itemid=26[/url]
[b]Extman default username and password ( 管理员用户名及密码 )
username: [email]root@directory.server[/email]
password: extmail
当你新加 domain 的时候, 记得在transport 的格子里放 maildrop:
当你在extman里修改了[email]root@directory.serv[/email]er 密码之后,必须也同时修改/etc/authlib/authldaprc 的 LDAP_BINDPW 及 /etc/sysconfig/saslauthd 的 ldap_bind_pw:.
我不在/etc/authlib/authldaprc 及 /etc/saslauthd.conf 用cn=Manager,dc=directory,dc=server 而选择用mail=root@directory.server,o=extmailManager,dc=directory,dc=server
是因为cn=Manager,dc=directory,dc=server 是ldap server 的超级admin, 而mail=root@directory.server,o=extmailManager,dc=directory,dc=server 只是extmail 与extman 的admin,主要在与/etc/authlib/authldaprc 及/etc/saslauthd.conf 都用文明写上密码,假如某人hack 进server, 而我们又用 cn=Manager,dc=directory,dc=server 的话, 那整个ldap 就完了, 但如用mail=root@directory.server,o=extmailManager,dc=directory,dc=server , 那最坏也只是丢了 extmail 的那一部分,其它在openldap的资料都回平安无事, 希望大家明白[/b]
AUTHOR
---------
Ethan Chai Voon Chong
installer Version
---------
0.1 - initial release 25/7/06
TODO LIST
------------
TLS integration for postfix
FCGI support for extmail
SPAM Filltering and virus scanning.
openldap indexing and acl control.
review security setting and permission for all the config file
update extman to version 0.16-pre1
create one user for saslauthd.conf and authldaprc setting
Application version
------------------------
extmail = extmail-0.24-pre8
extman = extman-0.15-20060519
postfix = postfix-2.1.5-4.2.RHEL4
openldap = openldap-2.2.13-4
courier-imap = courier-imap-4.1.0-1
maildrop = maildrop-2.0.2-1
courier-authlib = courier-authlib-0.58-1
apache = httpd-2.0.52-22.ent.centos4
WARNING
------------
This auto installer assume that user install the minimal centos (version 4.3) system, and run the installer once finish installed, This installer is released without any warranty and used at your own risk.
USAGE DETAIL
-----------------
Please change this parameters at installer.sh
LDAPPW="secret"; # This is Ldap Manager password in slapd.conf
EXTMAIL_SERVER_NAME="extmail.example.com"; # This is the URL to access extmail
EXTMAN_SERVER_NAME="extman.example.com"; # This is the URL to access extman
DOMAINNAME="example.com"; # This is the domain used in postfix main.cf
HOSTNAME="mail.example.com"; # This is the hostname used in postfix main.cf
also, please find the email address, [email]root@abc.com[/email] and change to the email address that you want to recieve system mail.
After change all the parameter to your own value, execute this command to execute the auto installer and wait for it to finish.
[quote][SHELL] > sh installer.sh[/quote]
After finish installation, modify your dns or you hosts file so that it can resolved extman.example.com and extmail.example.com or whatever name that you have change for the the variable EXTMAIL_SERVER_NAME and EXTMAN_SERVER_NAME.
Example, a simple ping to extman.example.com will tell you if you modify the host file or dns correctly.
Please read SMTP_AUTHENTICATION_HELP.doc included for smtp authentication help on mail client.
SUPPORT
----------
Please post all support and feedback at here. YOUR FEEDBACK IS VERY IMPORTANT FOR ME TO IMPROVE THE INSTALLER. 好象没有附件 Where is I can download the installer.sh ? hi!! where download package!!!! good!
trying...
download url:
[url]http://www.ethansoft.com/index.php?option=com_docman&task=doc_download&gid=1&Itemid=36[/url] Q:
how to use virtual domains on this install package?
thks! are you install in redhat linux as 4? Very good
Trying.... [quote][b]下面是引用booker2688于2006-07-25 13:25发表的:[/b]
are you install in redhat linux as 4?[/quote]
YES,REDHAT LINUX AS 4 [quote][b]下面是引用zhanghj_ok于2006-07-25 13:15发表的:[/b]
Q:
how to use virtual domains on this install package?
thks![/quote]
extman本身就支持虚拟域管理,因此这个不是问题。 [quote]how to use virtual domains on this install package?[/quote]
yes . This installer is using virtual domain and virtual user with ldap.
[quote]are you install in redhat linux as 4?[/quote]
nope. But actually redhat linux as 4 = centos 4 , if you want to use the installer, please remember to download the yum application, and put in the repository as in the centos. If you need extra information on how to do that, visit [url]http://www.centos.org[/url] 没作任何修改,安装出现下面的问题,请高手们指点一下啊。
: command not found15:
: command not found22:
: command not found23:
: command not found24:
: command not found25:
: command not found26:
: command not found27:
error: /usr/share/doc/centos-release-4/RPM-GPG-KEY-centos4: import read failed(-1).
'nstaller.sh: line 47: syntax error near unexpected token `
'nstaller.sh: line 47: `for i in $BOOT_OFF_SERVICES; 下载...
测试中.... ethan:
Can you give us a install doc for redhat linux as 4?
thks ! is this Single Server for centeros 4.3 ? 对于centos系统不是很了解。看看, [quote]没作任何修改,安装出现下面的问题,请高手们指点一下啊。][/quote]
yes. this is a problem with the zip file. Please redownload it here
[url]http://www.ethansoft.com/index.php?option=com_docman&task=cat_view&gid=15&Itemid=36[/url]
[quote]Can you give us a install doc for redhat linux as 4?[/quote]
I will come out the documentation for rhas 4 and centos later. lets test the installer first ..:)
[quote]is this Single Server for centeros 4.3 ?[/quote]
No. You have to do a minimal centos installation yourself this is my installion:
[root@mail extmail_installer]# sh installer.sh
Performing Server Update (Please wait} : DONE
Installing needed application (Please wait} :
Setting up Install Process
Setting up repositories
update 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for expect to pack into transaction set.
expect-5.42.1-1.i386.rpm 100% |=========================| 13 kB 00:00
---> Package expect.i386 0:5.42.1-1 set to be updated
---> Downloading header for openldap-clients to pack into transaction set.
openldap-clients-2.2.13-4 100% |=========================| 24 kB 00:00
---> Package openldap-clients.i386 0:2.2.13-4 set to be updated
---> Downloading header for libtool-libs to pack into transaction set.
libtool-libs-1.5.6-4.EL4. 100% |=========================| 11 kB 00:00
---> Package libtool-libs.i386 0:1.5.6-4.EL4.1.c4.3 set to be updated
---> Downloading header for perl-LDAP to pack into transaction set.
perl-LDAP-0.31-5.noarch.r 100% |=========================| 12 kB 00:00
---> Package perl-LDAP.noarch 0:0.31-5 set to be updated
---> Downloading header for vim-common to pack into transaction set.
vim-common-6.3.046-0.40E. 100% |=========================| 116 kB 00:01
---> Package vim-common.i386 1:6.3.046-0.40E.7 set to be updated
---> Downloading header for openldap-servers to pack into transaction set.
openldap-servers-2.2.13-4 100% |=========================| 37 kB 00:01
---> Package openldap-servers.i386 0:2.2.13-4 set to be updated
---> Downloading header for vim-enhanced to pack into transaction set.
vim-enhanced-6.3.046-0.40 100% |=========================| 7.2 kB 00:00
---> Package vim-enhanced.i386 1:6.3.046-0.40E.7 set to be updated
---> Downloading header for db4-utils to pack into transaction set.
db4-utils-4.2.52-7.1.i386 100% |=========================| 14 kB 00:00
---> Package db4-utils.i386 0:4.2.52-7.1 set to be updated
--> Running transaction check
--> Processing Dependency: perl-Convert-ASN1 for package: perl-LDAP
--> Processing Dependency: libtcl8.4.so for package: expect
--> Processing Dependency: perl(XML::SAX::Base) for package: perl-LDAP
--> Processing Dependency: perl(Convert::ASN1) for package: perl-LDAP
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for tcl to pack into transaction set.
tcl-8.4.7-2.i386.rpm 100% |=========================| 24 kB 00:00
---> Package tcl.i386 0:8.4.7-2 set to be updated
---> Downloading header for perl-XML-SAX to pack into transaction set.
perl-XML-SAX-0.12-7.noarc 100% |=========================| 6.6 kB 00:00
---> Package perl-XML-SAX.noarch 0:0.12-7 set to be updated
---> Downloading header for perl-Convert-ASN1 to pack into transaction set.
perl-Convert-ASN1-0.18-3. 100% |=========================| 3.3 kB 00:00
---> Package perl-Convert-ASN1.noarch 0:0.18-3 set to be updated
--> Running transaction check
--> Processing Dependency: perl(XML::NamespaceSupport) for package: perl-XML-SAX
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for perl-XML-NamespaceSupport to pack into transaction set.
perl-XML-NamespaceSupport 100% |=========================| 2.2 kB 00:00
---> Package perl-XML-NamespaceSupport.noarch 0:1.08-6 set to be updated
--> Running transaction check
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
db4-utils i386 4.2.52-7.1 base 104 k
expect i386 5.42.1-1 base 148 k
libtool-libs i386 1.5.6-4.EL4.1.c4.3 base 23 k
openldap-clients i386 2.2.13-4 base 116 k
openldap-servers i386 2.2.13-4 base 3.2 M
perl-LDAP noarch 0.31-5 base 247 k
vim-common i386 1:6.3.046-0.40E.7 base 3.4 M
vim-enhanced i386 1:6.3.046-0.40E.7 base 956 k
Installing for dependencies:
perl-Convert-ASN1 noarch 0.18-3 base 33 k
perl-XML-NamespaceSupport noarch 1.08-6 base 13 k
perl-XML-SAX noarch 0.12-7 base 75 k
tcl i386 8.4.7-2 base 897 k
Transaction Summary
=============================================================================
Install 12 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 9.2 M
Downloading Packages:
(1/12): tcl-8.4.7-2.i386. 100% |=========================| 897 kB 00:11
(2/12): expect-5.42.1-1.i 100% |=========================| 148 kB 00:01
(3/12): perl-XML-SAX-0.12 100% |=========================| 75 kB 00:01
(4/12): openldap-clients- 100% |=========================| 116 kB 00:01
(5/12): libtool-libs-1.5. 100% |=========================| 23 kB 00:00
(6/12): perl-Convert-ASN1 100% |=========================| 33 kB 00:00
(7/12): perl-LDAP-0.31-5. 100% |=========================| 247 kB 00:01
(8/12): vim-common-6.3.04 100% |=========================| 3.4 MB 00:46
(9/12): openldap-servers- 100% |=========================| 3.2 MB 00:44
(10/12): vim-enhanced-6.3 100% |=========================| 956 kB 00:09
(11/12): db4-utils-4.2.52 100% |=========================| 104 kB 00:01
(12/12): perl-XML-Namespa 100% |=========================| 13 kB 00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: perl-XML-NamespaceSupport ####################### [ 1/12]
Installing: perl-XML-SAX ####################### [ 2/12]
Installing: vim-common ####################### [ 3/12]
Installing: perl-Convert-ASN1 ####################### [ 4/12]
Installing: tcl ####################### [ 5/12]
Installing: expect ####################### [ 6/12]
Installing: openldap-clients ####################### [ 7/12]
Installing: libtool-libs ####################### [ 8/12]
Installing: perl-LDAP ####################### [ 9/12]
Installing: openldap-servers ####################### [10/12]
Installing: vim-enhanced ####################### [11/12]
Installing: db4-utils ####################### [12/12]
Installed: db4-utils.i386 0:4.2.52-7.1 expect.i386 0:5.42.1-1 libtool-libs.i386 0:1.5.6-4.EL4.1.c4.3 openldap-clients.i386 0:2.2.13-4 openldap-servers.i386 0:2.2.13-4 perl-LDAP.noarch 0:0.31-5 vim-common.i386 1:6.3.046-0.40E.7 vim-enhanced.i386 1:6.3.046-0.40E.7
Dependency Installed: perl-Convert-ASN1.noarch 0:0.18-3 perl-XML-NamespaceSupport.noarch 0:1.08-6 perl-XML-SAX.noarch 0:0.12-7 tcl.i386 0:8.4.7-2
Complete!
warning: rpms/perl-File-Tail-0.99.3-1.2.el4.rf.noarch.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing... ########################################### [100%]
1:courier-authlib ########################################### [ 14%]
2:courier-authlib-ldap ########################################### [ 29%]
3:courier-imap ########################################### [ 43%]
4:maildrop ########################################### [ 57%]
5:perl-File-Tail ########################################### [ 71%]
6:rrdtool ########################################### [ 86%]
7:perl-rrdtool ########################################### [100%]
Stopping atd: [FAILED]
Stopping HAL daemon: [FAILED]
Shutting down smartd: [FAILED]
Shutting down console mouse services: [FAILED]
Stopping portmap: [FAILED]
Stopping xinetd: [ OK ]
Stopping NFS statd: [FAILED]
Shutting down RPC idmapd: [ OK ]
error reading information on service sendmail: No such file or directory
sendmail: unrecognized service
Stopping cups: [FAILED]
Stopping automount:[ OK ]
Setting up Remove Process
No Match for argument: sendmail
No Packages marked for removal
sed: -e expression #1, char 36: unknown option to `s'
Starting httpd: [ OK ]
Checking configuration files for : config file testing succeeded
Starting slapd: [ OK ]
Starting postfix: [ OK ]
Starting ntpd: [ OK ]
Starting queue statistics grapher: qmonitor
Starting mail statistics grapher: mailgraph_ext
Starting Courier authentication services: authdaemond
Starting Courier-IMAP server: imap generating-SSL-certificate... imap-ssl pop3 generating-SSL-certificate... pop3-ssl
Starting saslauthd: [ OK ]
ldap_initialize( <DEFAULT> )
ldap_bind: Can't contact LDAP server (-1)
what's wrong the last words hint that means, something not right with the command inside the installer. Please go to my website to download the installer again because i just fix it. Sorry because it is my mistake that post the installer that have a little bugs. Thanks for reporting and please try again. i am sure this time it will alright :)
ALSO, if ANYONE use the installer and work. Please Let me know here. thanks I have done .
But what's the manager account and password of the extman,
I tried [email]root@directory.serv[/email]er and secret as the default account and password, but failed.
then I tried [email]root@example.com[/email] and secret, failed again. the username for extman is [email]root@directory.serv[/email]er, password is extmail, please change after login. 我也遇到tonyye的情况,提示跟他的也是一样的 重新下载一次.tar.gz version 就可以了 thanks ethan for help.
this time I encounter this problem
Add domains (mytest.com), it says:
Add mytest.com fail, reason: transport: value #0 invalid per syntax root@mail extmail_installer]# sh installer.sh
: command not found15:
: command not found22:
: command not found23:
: command not found24:
: command not found25:
: command not found26:
: command not found27:
: command not found35:
: command not found37:
Installing needed application (Please wait} :
: command not found39:
Setting up Install Process
Setting up repositories
update 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 67 kB 00:02
update : ################################################## 167/167
Added 167 new packages, deleted 0 old in 1.40 seconds
primary.xml.gz 100% |=========================| 554 kB 00:01
base : ################################################## 1450/1450
Added 1450 new packages, deleted 0 old in 8.48 seconds
primary.xml.gz 100% |=========================| 157 B 00:00
Added 0 new packages, deleted 0 old in 0.03 seconds
primary.xml.gz 100% |=========================| 45 kB 00:05
extras : ################################################## 204/204
Added 204 new packages, deleted 0 old in 0.97 seconds
Parsing package install arguments
No Match for argument: perl-Time-HiRes
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for php-ldap to pack into transaction set.
php-ldap-4.3.9-3.15.i386. 100% |=========================| 18 kB 00:01
---> Package php-ldap.i386 0:4.3.9-3.15 set to be updated
---> Downloading header for openldap-clients to pack into transaction set.
openldap-clients-2.2.13-4 100% |=========================| 24 kB 00:00
---> Package openldap-clients.i386 0:2.2.13-4 set to be updated
---> Downloading header for expect to pack into transaction set.
expect-5.42.1-1.i386.rpm 100% |=========================| 13 kB 00:00
---> Package expect.i386 0:5.42.1-1 set to be updated
---> Downloading header for vim-enhanced to pack into transaction set.
vim-enhanced-6.3.046-0.40 100% |=========================| 7.2 kB 00:00
---> Package vim-enhanced.i386 1:6.3.046-0.40E.7 set to be updated
---> Downloading header for openldap-servers to pack into transaction set.
openldap-servers-2.2.13-4 100% |=========================| 37 kB 00:00
---> Package openldap-servers.i386 0:2.2.13-4 set to be updated
---> Downloading header for vim-common to pack into transaction set.
vim-common-6.3.046-0.40E. 100% |=========================| 116 kB 00:00
---> Package vim-common.i386 1:6.3.046-0.40E.7 set to be updated
---> Downloading header for postfix to pack into transaction set.
postfix-2.1.5-4.2.RHEL4.i 100% |=========================| 39 kB 00:00
---> Package postfix.i386 2:2.1.5-4.2.RHEL4 set to be updated
--> Running transaction check
--> Processing Dependency: php = 4.3.9-3.15 for package: php-ldap
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for php to pack into transaction set.
php-4.3.9-3.15.i386.rpm 100% |=========================| 23 kB 00:00
---> Package php.i386 0:4.3.9-3.15 set to be updated
--> Running transaction check
--> Processing Dependency: php = 4.3.9-3.9 for package: php-pear
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for php-pear to pack into transaction set.
php-pear-4.3.9-3.15.i386. 100% |=========================| 33 kB 00:29
---> Package php-pear.i386 0:4.3.9-3.15 set to be updated
--> Running transaction check
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
expect i386 5.42.1-1 base 148 k
openldap-clients i386 2.2.13-4 base 116 k
openldap-servers i386 2.2.13-4 base 3.2 M
postfix i386 2:2.1.5-4.2.RHEL4 base 2.7 M
vim-common i386 1:6.3.046-0.40E.7 base 3.4 M
vim-enhanced i386 1:6.3.046-0.40E.7 base 956 k
Updating:
php-ldap i386 4.3.9-3.15 update 34 k
Updating for dependencies:
php i386 4.3.9-3.15 update 1.3 M
php-pear i386 4.3.9-3.15 update 266 k
Transaction Summary
=============================================================================
Install 6 Package(s)
Update 3 Package(s)
Remove 0 Package(s)
Total download size: 12 M
Downloading Packages:
(1/9): php-ldap-4.3.9-3.1 100% |=========================| 34 kB 00:01
(2/9): openldap-clients-2 100% |=========================| 116 kB 00:00
(3/9): php-4.3.9-3.15.i38 100% |=========================| 1.3 MB 01:30
(4/9): expect-5.42.1-1.i3 100% |=========================| 148 kB 00:00
(5/9): vim-enhanced-6.3.0 100% |=========================| 956 kB 00:03
(6/9): php-pear-4.3.9-3.1 100% |=========================| 266 kB 00:17
(7/9): openldap-servers-2 100% |=========================| 3.2 MB 00:09
(8/9): vim-common-6.3.046 100% |=========================| 3.4 MB 00:11
(9/9): postfix-2.1.5-4.2. 100% |=========================| 2.7 MB 00:09
warning: rpmts_HdrFromFdno: V3 DSA signature: NOKEY, key ID 443e1821
Public key for php-ldap-4.3.9-3.15.i386.rpm is not installed
Retrieving GPG key from [url]http://mirror.centos.org/centos/RPM-GPG-KEY-centos4[/url]
Importing GPG key 0x443E1821 "CentOS-4 key <[email]centos-4key@centos.org[/email]>"
Key imported successfully
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: vim-common ####################### [ 1/12]
Installing: vim-enhanced ####################### [ 2/12]
Installing: postfix ####################### [ 3/12]
Installing: openldap-servers ####################### [ 4/12]
Updating : php-pear ####################### [ 5/12]
Installing: expect ####################### [ 6/12]
Installing: openldap-clients ####################### [ 7/12]
Updating : php-ldap ####################### [ 8/12]
Updating : php ####################### [ 9/12]
Cleanup : php-ldap ####################### [10/12]
Cleanup : php ####################### [11/12]
Cleanup : php-pear ####################### [12/12]
Installed: expect.i386 0:5.42.1-1 openldap-clients.i386 0:2.2.13-4 openldap-servers.i386 0:2.2.13-4 postfix.i386 2:2.1.5-4.2.RHEL4 vim-common.i386 1:6.3.046-0.40E.7 vim-enhanced.i386 1:6.3.046-0.40E.7
Updated: php-ldap.i386 0:4.3.9-3.15
Dependency Updated: php.i386 0:4.3.9-3.15 php-pear.i386 0:4.3.9-3.15
Complete!
: command not found41:
warning: rpms/perl-File-Tail-0.99.3-1.2.el4.rf.noarch.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6
error: Failed dependencies:
perl(Time::HiRes) is needed by perl-File-Tail-0.99.3-1.2.el4.rf.noarch
Suggested resolutions:
/home/buildcentos/CENTOS/en/4.0/i386/CentOS/RPMS/perl-Time-HiRes-1.55-3.i386.rpm
: command not found44:
'nstaller.sh: line 46: syntax error near unexpected token `
'nstaller.sh: line 46: `for i in $BOOT_OFF_SERVICES; [quote]Add mytest.com fail, reason: transport: value #0 invalid per syntax[/quote]
when u add domain, in the transport field , put this
[quote]maildrop:[/quote]
[quote]install is failure on centos 4.3 ,help[/quote]
重新下载一次.tar.gz version 就可以了 It's ok
thank you very much