(INSTALL_README)文档
=================================================
Options for gettext 0.14.5_2
-------------------------------------------------
[X] EXAMPLES install example files
[X] HTMLMAN install man pages in HTML format
-------------------------------------------------
Options for courier-imap 4.1.1,1
-------------------------------------------------
[X] OPENSSL Build with OpenSSL support
[ ] FAM Build in fam support for IDLE command
[ ] DRAC Build in DRAC support
[ ] TRASHQUOTA Include deleted mails in the quota
[ ] GDBM Use gdbm db instead of system bdb
[ ] IPV6 Build with IPv6 support
[ ] AUTH_LDAP LDAP support
[X] AUTH_MYSQL MySQL support
[ ] AUTH_PGSQL PostgreSQL support
[ ] AUTH_USERDB Userdb support
[ ] AUTH_VCHKPW Vpopmail/vchkpw support
-------------------------------------------------
Options for postfix 2.3.3,1
-------------------------------------------------
[X] PCRE Perl Compatible Regular Expressions
[ ] SASL Cyrus SASLv1 (Simple Auth. and Sec. Layer)
[X] SASL2 Cyrus SASLv2 (Simple Auth. and Sec. Layer)
[ ] DOVECOT Dovecot SASL authentication method
[ ] SASLKRB If your SASL req. Kerberos select this option
[ ] SASLKRB5 If your SASL req. Kerberos5 select this option
[ ] SASLKMIT If your SASL req. MIT Kerberos5 select this option
[X] TLS Enable SSL and TLS support
[ ] BDB Berkeley DB (choose version with WITH_BDB_VER)
[X] MYSQL MySQL maps (choose version with WITH_MYSQL_VER)
[ ] PGSQL PostgreSQL maps (choose with DEFAULT_PGSQL_VER)
[ ] OPENLDAP OpenLDAP maps (choose ver. with WITH_OPENLDAP_VER)
[ ] CDB CDB maps lookups
[ ] NIS NIS maps lookups
[X] VDA VDA (Virtual Delivery Agent)
[ ] TEST SMTP/LMTP test server and generator
-------------------------------------------------
Options for p5-Mail-SpamAssassin 3.1.5
-------------------------------------------------
[X] AS_ROOT Run spamd as root (recommended)
[ ] DOMAINKEYS DomainKeys support
[X] SSL Build with SSL support for spamd/spamc
[X] MYSQL Add MySQL support
[ ] PGSQL Add PostreSQL support
[ ] RAZOR Add Vipul's Razor support
[ ] SPF_QUERY Add SPF query support
[ ] RELAY_COUNTRY Relay country support
[X] TOOLS Install SpamAssassin tools
-------------------------------------------------
Options for amavisd-new 2.4.2_3,1
-------------------------------------------------
[X] BDB Use BerkeleyDB for nanny/cache/snmp
[ ] SQLITE Use SQLite for lookups/logging/quarantine
[X] MYSQL Use MySQL for lookups/logging/quarantine
[ ] PGSQL Use PgSQL for lookups/logging/quarantine
[ ] LDAP Use LDAP for lookups
[X] SASL Use SASL authentication
[X] MILTER Sendmail milter support
[ ] NEW_MILTER New sendmail milter support (external module)
[X] SPAMASSASSIN Use mail/p5-Mail-SpamAssassin
[ ] P0F Passive operating system fingerprinting
[ ] FILE Use newer file(1) utility from ports
[X] RAR RAR support with archivers/rar
[X] UNRAR RAR support with archivers/unrar
[X] ARJ ARJ support with archivers/arj
[X] UNARJ ARJ support with archivers/unarj
[X] LHA LHA support with archivers/lha
[X] ARC ARC support with archivers/arc
[X] NOMARCH ARC support with archivers/nomarch
[X] CAB CAB support with archivers/cabextract
[X] RPM RPM support with archivers/rpm2cpio
[X] ZOO ZOO support with archivers/zoo
[X] UNZOO ZOO support with archivers/unzoo
[X] LZOP LZOP support with archivers/lzop
[X] FREEZE FREEZE support with archivers/freeze
[X] TNEF Add external tnef decoder converters/tnef
-------------------------------------------------
Options for clamav 0.88.4
-------------------------------------------------
[X] MILTER Compile the milter interface
[X] CURL Support URL downloading
[X] LIBUNRAR Support for external Unrar library
[X] STDERR Print logs to stderr instead of stdout
-------------------------------------------------
Options for php5 5.1.6
-------------------------------------------------
[ ] CLI Build CLI version
[ ] CGI Build CGI version
[X] APACHE Build Apache module
[ ] DEBUG Enable debug
[ ] SUHOSIN Enable Suhosin protection system
[X] MULTIBYTE Enable zend multibyte support
[ ] IPV6 Enable ipv6 support
[ ] REDIRECT Enable force-cgi-redirect support (CGI only)
[ ] DISCARD Enable discard-path support (CGI only)
[ ] FASTCGI Enable fastcgi support (CGI only)
[ ] PATHINFO Enable path-info-check support (CGI only)
-------------------------------------------------
Options for php5-extensions 1.0
-------------------------------------------------
[X] BCMATH bc style precision math functions
[X] BZ2 bzip2 library support
[X] CALENDAR calendar conversion support
[X] CTYPE ctype functions
[X] CURL CURL support
[ ] DBA dba support
[ ] DBASE dBase library support
[X] DOM DOM support
[ ] EXIF EXIF support
[ ] FILEINFO fileinfo support
[ ] FILEPRO filePro support
[ ] FRIBIDI FriBidi support
[X] FTP FTP support
[X] GD GD library support
[ ] GETTEXT gettext library support
[ ] GETTEXT gettext library support
[ ] GMP GNU MP support
[X] HASH HASH Message Digest Frameworkx
[X] ICONV iconv support
[X] IMAP IMAP support
[ ] INTERBASE Interbase 6 database support (Firebird)
[ ] LDAP OpenLDAP support
[ ] MBSTRING multibyte string support
[X] MCRYPT Encryption support
[X] MHASH Crypto-hashing support
[ ] MING ming shockwave flash support
[ ] MSSQL MS-SQL database support
[X] MYSQL MySQL database support
[ ] MYSQLI MySQLi database support
[ ] NCURSES ncurses support (CLI only)
[ ] ODBC unixODBC support
[ ] OPENSSL OpenSSL support
[ ] PANDA panda support
[ ] PCNTL pcntl support (CLI only)
[X] PCRE Perl Compatible Regular Expression support
[ ] PDF PDFlib support (implies GD)
[X] PDO PHP Data Objects Interface (PDO)
[ ] PGSQL PostgreSQL database support
[X] POSIX POSIX-like functions
[ ] PSPELL pspell support
[ ] READLINE readline support (CLI only)
[ ] RECODE recode support
[X] SESSION session support
[ ] SHMOP shmop support
[X] SIMPLEXML simplexml support
[ ] SNMP SNMP support
[ ] SOAP SOAP support
[ ] SOCKETS sockets support
[X] SQLITE sqlite support
[ ] SYBASE_CT Sybase database support
[ ] SYSVMSG System V message support
[ ] SYSVSEM System V semaphore support
[ ] SYSVSHM System V shared memory support
[ ] TIDY TIDY support
[X] TOKENIZER tokenizer support
[ ] WDDX WDDX support (implies XML)
[X] XML XML support
[X] XMLREADER XMLReader support
[ ] XMLRPC XMLRPC-EPI support
[X] XMLWRITER XMLWriter support
[ ] XSL XSL support (Implies DOM)
[ ] YAZ YAZ support (ANSI/NISO Z39.50)
[X] ZIP ZIP support
[X] ZLIB ZLIB support
Options for phpMyAdmin 2.9.0.2
-------------------------------------------------
[X] BZ2 bzip2 library support
[X] GD GD library support
[X] MYSQLI Improved MySQL support
[X] OPENSSL OpenSSL support
[X] PDF PDFlib support (implies GD)
[X] ZLIB ZLIB support
[X] MCRYPT MCrypt library support
[X] MBSTRING Multi-byte character-set string support
========================================================
----------------------------------------------------------------
1、修改用户增加和编辑界面,增加激活内网用户的操作界面
----------------------------------------------------------------
vi /usr/local/www/cgi-bin-dist/extman/html/standard/edit_user.html
找到以下代码72行处:
<tr>
<td><%active%></td><td><input name=active type=checkbox <!-- IF ACTIVE -->checked<!-- END ACTIVE-->></td>
</tr>
在其下面增加:
<tr>
<td><%lanuser%></td><td><input name=lanuser type=checkbox <!-- IF LANUSER -->checked<!-- END LANUSER-->></td>
</tr>
----------------------------------------------------------------
2、修改用户增加和编辑界面,增加激活内网用户语言包内容
----------------------------------------------------------------
vi /usr/local/www/cgi-bin-dist/extman/lang/zh_CN
找到以下代码78行处
%lang_user = (
.
.
.
lanuser => '激活',
在其下面增加一行
lanuser => '激活内网用户',
vi /usr/local/www/cgi-bin-dist/extman/lang/en_CN
找到以下代码78行处:
%lang_user = (
.
.
.
active => 'Active',
找到191行处:
sub get_users_list {
my $self = shift;
my $SQL = "SELECT * FROM mailbox WHERE domain='$_[0]'";
my $rs = $self->get_entries($SQL);
my $arr = []; # null ARRAY ref
foreach my $ref (@$rs) {
push @$arr, {
mail => $ref->{username},
cn => $ref->{name},
domain => $ref->{domain},
uidnumber => $ref->{uidnumber},
gidnumber => $ref->{gidnumber},
uid => $ref->{uid},
netdiskquota => $ref->{netdiskquota},
active => $ref->{active} ? 1 : 0,
在其下面增加:
lanuser => $ref->{smtp_local_limit} ? 1 : 0,
找到281行处:
sub add_user {
my $self = shift;
my %opt = @_;
my $db = $self->{dbh};
my $ctype = $self->{crypt_type};
my $srv = [];
push @$srv, 'webmail' if ($opt{srv_webmail});
push @$srv, 'smtpauth' if ($opt{srv_smtpauth});
push @$srv, 'pop3' if ($opt{srv_pop3});
push @$srv, 'imap' if ($opt{srv_imap});
push @$srv, 'netdisk' if ($opt{srv_imap});
$srv = join(',',@$srv); # XXX
my $passwd = $self->encrypt($ctype, $opt{passwd});
my $active = $opt{active} ? 1 : 0;
在其下面增加:
my $lanuser = $opt{lanuser} ? 1 : 0;
my $webmail_limit = $opt{srv_webmail} ? 1 : 0;
my $smtp_limit = $opt{srv_smtpauth} ? 1 : 0;
my $pop3_limit = $opt{srv_pop3} ? 1 : 0;
my $imap_limit = $opt{srv_imap} ? 1 : 0;
my $netdisk_limit = $opt{srv_imap} ? 1 : 0;
找到以下代码处501行
sub modify_user {
my $self = shift;
my %opt = @_;
my $db = $self->{dbh};
my $srv = [];
push @$srv, 'webmail' if ($opt{srv_webmail});
push @$srv, 'smtpauth' if ($opt{srv_smtpauth});
push @$srv, 'pop3' if ($opt{srv_pop3});
push @$srv, 'imap' if ($opt{srv_imap});
push @$srv, 'netdisk' if ($opt{srv_imap});
$srv = join(',',@$srv); # XXX
my $active = $opt{active} ? 1 : 0;
在其下面增加
my $lanuser = $opt{lanuser} ? 1 : 0;
my $smtp_limit = $opt{srv_smtpauth} ? 1 : 0;
my $webmail_limit = $opt{srv_webmail} ? 1 : 0;
my $pop3_limit = $opt{srv_pop3} ? 1 : 0;
my $imap_limit = $opt{srv_imap} ? 1 : 0;
my $netdisk_limit = $opt{srv_imap} ? 1 : 0;
vi /usr/local/www/cgi-bin-dist/extman/libs/Ext/MgrApp/User.pm
----------------------------------------------------------------
找到如下代码:(约57行处)
sub add_user {
my $self = shift;
my $tpl = $self->{tpl};
my $mgr = $self->{backend};
my $q = $self->{query};
my $sys = $self->{sysconfig};
向下找到如下代码:(130行处)
sub edit_user {
my $self = shift;
my $tpl = $self->{tpl};
my $mgr = $self->{backend};
my $q = $self->{query};
my $multiplier = $self->{sysconfig}->{SYS_QUOTA_MULTIPLIER} || '1048576';
my $user = $q->cgi('user') || $q->cgi('username').'@'.$q->cgi('domain');
my $ui = $mgr->get_user_info($user);
my $charset = $self->{sysconfig}->{SYS_CHARSET} || $lang_charset;