Commits

Zhang Huangbin  committed 796091f

Remove unused files.

  • Participants
  • Parent commits ec76fcc

Comments (0)

Files changed (4)

File extra/iRedMail.tips

-Admin of domain example.com:
-    * Account: postmaster@example.com
-    * Password: iredmail
-
-    Note:
-        - This account is used only for system administrations, not a mail user.
-        - You can login iRedAdmin or PostfixAdmin with this account, login name
-          is full email address.
-
-First mail user:
-    * Account: www@example.com
-    * Password: iredmail
-
-    Note:
-        - This account is a normal mail user.
-        - You can login webmail with this account, login name is full email address.
-
-Admin of domain example.com:
-    * Account: postmaster@example.com
-    * Password: iredmail
-
-    Note:
-        - This account is used only for system administrations, not a mail user.
-        - You can login iRedAdmin or PostfixAdmin with this account, login name
-          is full email address.
-
-First mail user:
-    * Account: www@example.com
-    * Password: iredmail
-
-    Note:
-        - This account is a normal mail user.
-        - You can login webmail with this account, login name is full email address.
-
-Mail Storage:
-    - Path:
-        + /var/vmail
-        + /var/vmail/vmail01
-
-Apache & PHP:
-    * Configuration files:
-        - /etc/apache2
-        - /etc/apache2/conf.d
-        - /etc/php5/apache2/php.ini
-    * Directories:
-        - /usr/share/apache2
-        - /var/www
-
-OpenLDAP:
-    * LDAP suffix: dc=example,dc=com
-    * LDAP root dn: cn=Manager,dc=example,dc=com, password: iredmail
-    * LDAP bind dn: cn=vmail,dc=example,dc=com, password: rtj8peGYAnCHQWogf1MJuTnP7y2iYq
-    * LDAP admin dn: cn=vmailadmin,dc=example,dc=com, password: mdM7S6QoKM1mKcylLjUOp53UYscat1
-    * LDAP base dn: o=domains,dc=example,dc=com
-    * LDAP admin base dn: o=domainAdmins,dc=example,dc=com
-    * Configuration files:
-        - /etc/ldap
-        - /etc/ldap/slapd.conf
-        - /etc/ldap/ldap.conf
-        - /etc/ldap/schema/iredmail.schema
-    * Log file related:
-        - /etc/syslog.conf
-        - /var/log/openldap.log
-        - /etc/logrotate.d/openldap
-    * Data dir and files:
-        - /var/lib/ldap
-        - /var/lib/ldap/example.com
-        - /var/lib/ldap/example.com/DB_CONFIG
-    * RC script:
-        - /etc/init.d/slapd
-    * See also:
-        - /root/iRedMail-0.5.1/conf/ldap_init.ldif
-
-MySQL:
-    * Data directory:
-        - /var/lib/mysql
-    * RC script:
-        - /etc/init.d/mysql
-    * Log file:
-        - /var/log/mysqld.log
-    * SSL Cert keys:
-        - /etc/ssl/certs/iRedMail_CA.pem
-        - /etc/ssl/private/iRedMail.key
-    * See also:
-        - /root/iRedMail-0.5.1/conf/mysql_init.sql
-
-Postfix (basic):
-    * Configuration files:
-        - /etc/postfix
-        - /etc/postfix/aliases
-        - /etc/postfix/main.cf
-        - /etc/postfix/master.cf
-
-Postfix (LDAP):
-    * Configuration files:
-        - /etc/postfix/ldap_virtual_mailbox_domains.cf
-
-        - /etc/postfix/ldap_transport_maps_domain.cf
-
-        - /etc/postfix/ldap_transport_maps_user.cf
-
-        - /etc/postfix/ldap_virtual_mailbox_maps.cf
-
-        - /etc/postfix/ldap_virtual_alias_maps.cf
-
-        - /etc/postfix/ldap_virtual_group_maps.cf
-
-        - /etc/postfix/ldap_recipient_bcc_maps_domain.cf
-
-        - /etc/postfix/ldap_recipient_bcc_maps_user.cf
-
-        - /etc/postfix/ldap_sender_bcc_maps_domain.cf
-
-        - /etc/postfix/ldap_sender_bcc_maps_user.cf
-
-Postfix (syslog):
-    * logrotate file: /etc/logrotate.d/maillog
-
-Policyd:
-    * Configuration files:
-        - /etc/postfix-policyd.conf
-    * RC script:
-        - /etc/init.d/policyd
-    * Misc:
-        - /etc/cron.daily/policyd-cleanup
-        - 
-        - crontab -l -u policyd
-
-
-Dovecot:
-    * Configuration files:
-        - /etc/dovecot/dovecot.conf
-    * LDAP:
-        - /etc/dovecot/dovecot-ldap.conf
-    * MySQL:
-        - /etc/dovecot/dovecot-mysql.conf
-    * RC script:
-        - /etc/init.d/dovecot
-    * Log files:
-        - /etc/logrotate.d/dovecot
-        - /var/log/dovecot.log
-        - /var/log/sieve.log
-    * See also:
-        - /var/vmail/sieve/dovecot.sieve
-
-ClamAV:
-    * Configuration files:
-        - /etc/clamav/clamd.conf
-        - /etc/clamav/freshclam.conf
-        - /etc/logrotate.d/clamav
-    * RC scripts:
-        - RHEL/CentOS:
-            + /etc/init.d/clamd 
-            + /etc/init.d/freshclam
-        - Debian & Ubuntu:
-            + /etc/init.d/clamav-daemon
-            + /etc/init.d/clamav-freshclam
-    * Log files:
-        - /var/log/clamav/clamd.log
-        - /var/log/clamav/freshclam.log
-
-DNS record for DKIM support:
-; key#1, domain example.com, /var/lib/dkim/example.com.pem
-dkim._domainkey.example.com.	3600 TXT (
-  "v=DKIM1; p="
-  "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCyVhmN8+xW5OpVA7SXQd345BbG"
-  "ZoB/zIDxCsS84c/jSA7An6tLRDXkIr3egtrJCmjYt3+B5IJWH1CVuIyalCT90mcw"
-  "NDuDgcImMXQJVB7J9ocIS7XT44YOqKXk/8TZHWTXtsfV3JmcsVcUC9nNzKHEOohf"
-  "uuTfNTPiCotFwOhifQIDAQAB")
-
-Amavisd-new:
-    * Configuration files:
-        - /etc/amavis/conf.d/50-user
-        - /etc/postfix/master.cf
-        - /etc/postfix/main.cf
-    * RC script:
-        - /etc/init.d/amavis
-
-SpamAssassin:
-    * Configuration files:
-        - /etc/mail/spamassassin/
-
-    - Rules:
-        * /usr/share/spamassassin/
-
-WebMail(Roundcubemail):
-    * Configuration files:
-        - /usr/share/apache2/roundcubemail-0.2.1/
-        - /usr/share/apache2/roundcubemail-0.2.1/config/
-    * URL:
-        - http://mail.example.com/mail/
-        - http://mail.example.com/webmail/
-    * Login account:
-        - Username: www@example.com, password: iredmail
-    * See also:
-        - /etc/apache2/conf.d/roundcubemail.conf
-
-phpLDAPadmin:
-    * Configuration files:
-        - /usr/share/apache2/phpldapadmin-1.1.0.7/config/config.php
-    * URL:
-        - /usr/share/apache2/phpldapadmin-1.1.0.7
-        - https://mail.example.com/phpldapadmin/
-        - https://mail.example.com/ldap/
-    * Login account:
-        - LDAP root account:
-            + Username: cn=Manager,dc=example,dc=com
-            + Password: iredmail
-        - Mail admin:
-            + Username: cn=vmailadmin,dc=example,dc=com
-            + Password: mdM7S6QoKM1mKcylLjUOp53UYscat1
-    * See also:
-        - /etc/apache2/conf.d/phpldapadmin.conf
-
-phpMyAdmin:
-    * Configuration files:
-        - /usr/share/apache2/phpMyAdmin-2.11.9.5-all-languages
-        - /usr/share/apache2/phpMyAdmin-2.11.9.5-all-languages/config.inc.php
-    * Login account:
-        - Username: root, password: iredmail
-        - Username: vmailadmin, password: lyTPOU3assz4VrcV7JuWlmHtVy4zmA
-    * URL:
-        - https://mail.example.com/phpmyadmin
-    * See also:
-        - /etc/apache2/conf.d/phpmyadmin.conf
-
-Awstats:
-    * Configuration files:
-        - /etc/awstats
-        - /etc/awstats/awstats.conf
-        - /etc/awstats/awstats.mail.example.com.conf
-        - /etc/awstats/awstats.mail.conf
-        - /etc/apache2/conf.d/awstats.conf
-    * Login account:
-        - Username: postmaster@example.com, password: iredmail
-    * URL:
-        - https://mail.example.com/awstats/awstats.pl
-        - https://mail.example.com/awstats/awstats.pl?config=mail.example.com
-        - https://mail.example.com/awstats/awstats.pl?config=mail
-    * Crontab job:
-        shell> crontab -l root
-    
-Official Web-based Admin Panel (iRedAdmin):
-    * Version: 0.1.1
-    * Configuration files:
-        - /usr/share/apache2/iRedAdmin-0.1.1/
-        - /usr/share/apache2/iRedAdmin-0.1.1/settings.ini*
-    * URL:
-        - https://mail.example.com/iredadmin/
-    * Login account:
-        - Username: postmaster@example.com, password: iredmail
-    * MySQL database and account:
-        - Database name: iredadmin
-        - Database user: iredadmin
-        - Database password: 96R7BjhvJoYOaKWrLHNJ4hAWGEIf02
-    * See also:
-        - /etc/apache2/conf.d/iredadmin.conf
-

File extra/ks.cfg

-#
-# Kickstart file used to customize iRedOS. Provided by iRedMail project:
-# http://code.google.com/p/iredmail/
-#
-
-# Used for interactive installation.
-#interactive
-
-# Install OS instead of upgrade
-install
-
-# Installation method.
-cdrom
-
-# For RHEL 5.x
-#key --skip
-
-# System authorization information
-auth  --useshadow  --enablemd5
-
-# System keyboard
-#keyboard us
-
-# System language. It will affect both installation interface and
-# system after installation complete.
-#lang en_US
-
-# Installation logging level: debug, info, warning, error, critical.
-#logging --level=debug
-logging --level=critical
-
-# SELinux configuration
-selinux --disabled
-
-# Do not configure the X Window System
-skipx
-
-# System timezone. Do not use '--utc' option here.
-#timezone Asia/Hong_Kong
-
-# Use graphical/text install
-graphical
-
-# Enable/Disable services, seperated by comma.
-# Options: --enabled/disabled
-services --enabled=network
-
-# -------------------
-# ---- Test only ----
-# -------------------
-# System bootloader configuration
-#bootloader --location=mbr
-
-# Clear the Master Boot Record
-#zerombr
-
-# Partition clearing information
-#clearpart --all --initlabel 
-
-#Root password: redhat
-#rootpw --iscrypted $1$h7EtIFv4$R9JQ4aCOVN7E9ml3A2SXv.
-
-# Run the Setup Agent on first boot
-firstboot --disable
-
-# Network information
-network --onboot=yes --bootproto=query --hostname='iredos.iredmail.org'
-
-# Disk partitioning information
-#part swap --bytes-per-inode=4096 --fstype="swap" --size=512
-#part / --bytes-per-inode=4096 --fstype="ext3" --grow --size=1
-
-# -------------------
-
-# For more kickstart options, please refer:
-# http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Installation_Guide-en-US/s1-kickstart2-options.html
-# -------------------------------------------
-# Packages.
-# -------------------------------------------
-%packages --excludedocs
-basesystem
-kernel
-
--rmt
--dump
--amtu
--anacron
--acpid
--apmd
--at
--ftp
--redhat-lsb
--atk
--gtk2
--GConf2
--bluez-gnome
--bluez-utils
--notification-daemon
--libwnck
--libnotify
--attr
--audit
--audit-libs-python
--setools
--authconfig
--firstboot-tui
--autofs
--bc
--bluez-libs
--cairo
--pango
--paps
--cups
--ccid
--coolkey
--cpuspeed
--Deployment_Guide-en-US
--dhcpv6_client
--finger
--hdparm
--dmraid
--NetworkManager
--smartmontools
--ppp
--rp-pppoe
--ecryptfs-utils
-#-rhn-client-tools
-#-rhn-check
-#-yum-rhn-plugin
-#-rhnsd
-#-rhn-setup
--hesiod
--sendmail
--ifd-egate
--pcsc-lite
--gpm
--ipsec-tools
--libselinux-python
--ksh
--mailcap
--nano
--nc
--mtools
--syslinux
--mkbootdisk
--net-snmp-libs
--OpenIPMI
--redhat-menus
--htmlview
--pinfo
--mgetty
--specspo
--nscd
--nss_ldap
--nfs-utils-lib
--nfs-utils
--portmap
--ypbind
--yp-tools
--quota
--lsof
--irqbalance
--system-config-securitylevel-tui
--crash
--conman
--cryptsetup-luks
--dbus-python
--yum-updatesd
--dosfstools
--gnu-efi
--iptstate
--microcode_ctl
--mtr
--pam_smb
--parted
--pax
--pm-utils
--psacct
--pygobject2
--rdate
--rdist
--rhel-instnum
--rsh
--sos
--talk
--tcsh
--telnet
--exim
-# ------------------------
-# Required packages.
-# ------------------------
-# Required by postfix (/etc/pam.d/smtp.postfix)
-policycoreutils
-selinux-policy
-selinux-policy-targeted
-
-ntp
-man
-man-pages
-lynx
-wget
-mailx
-openssh-server
-openssh-clients
-unzip
-bzip2
-dhclient
-vim-minimal
-system-config-network-tui
-iptables
-tmpwatch
-acl
-createrepo
-vixie-cron
-crontabs
-dialog
-patch
-yum
-which
-kbd
-dos2unix
-logwatch
-
-# Post macro.
-%post --nochroot
-# Mount CD-ROM, will be used after chroot.
-mkdir -p /mnt/sysimage/mnt/
-mount -t iso9660 /tmp/cdrom /mnt/sysimage/mnt
-
-%post
-
-# Change tty, we need interactive mode.
-chvt 3
-
-exec < /dev/tty3 > /dev/tty3
-
-echo -e "\n\n* ---- Starting iRedMail Installation ----"
-
-# Set LC_ALL.
-echo "* Export LC_ALL"
-export LC_ALL=C
-
-# Set PATH.
-echo "* Set PATH"
-export PATH="/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"
-
-# Repo file.
-echo "* Set yum repository related variables: REPOFILE, REPOFILE, REPOURL"
-export REPOFILE='/etc/yum.repos.d/iRedMail.repo'
-export REPONAME='iRedMail'
-export REPOURL='http://iredmail.org/yum/rpms/5/'
-
-# Get hostname from file.
-echo "* Get HOSTNAME via cmd 'hostname --fqdn'."
-export HOSTNAME="$(hostname --fqdn)"
-
-# Copy /etc/skel/.*
-echo "* Copy /etc/skel/*"
-cp -rf /etc/skel/.bash* /root/ >/dev/null 2>&1
-
-# We need network, but loopback device is enough.
-echo "* Active loop back network interface: lo."
-/sbin/ifconfig lo up
-
-# Create yum repo file for iRedMail.
-echo "* Generate temp yum repo file: ${REPOFILE}"
-cat > ${REPOFILE} <<EOF
-[${REPONAME}]
-name=${REPONAME}
-baseurl=file:///mnt/
-enabled=1
-gpgcheck=0
-priority=1
-EOF
-
-# We need write-access.
-echo "* Copy iRedMail from CDROM to disk: /root/iRedMail"
-cp -rf /mnt/iRedMail/ /root/
-
-# Change directory.
-echo "* Change directory to /root/iRedMail/"
-cd /root/iRedMail/
-
-#
-# Run iRedMail.sh:
-#
-
-echo "* Set necessary variables for iRedMail."
-# Skip some steps.
-export status_get_all="DONE"
-# Don't create a new yum repo.
-export status_create_yum_repo="DONE"
-# Don't disable iredmail repo.
-export status_disable_iredmail_repo="DONE"
-# Don't run freshclam.
-export status_run_freshclam_now="DONE"
-# Don't start postfix.
-export status_start_postfix_now="DONE"
-# Don't upgrade php-pear now.
-export status_cleanup_upgrade_php_pear="DONE"
-
-# Setting command used to install pkgs.
-export YUM="yum -d 2 --disablerepo=os,base,updates,addons,extras,centosplus,c5-media --enablerepo=${REPONAME}"
-
-echo "* Sleeping 10 seconds before starting iRedMail installation wizard."
-for i in 10 9 8 7 6 5 4 3 2 1; do
-    echo -n " ${i}s" && sleep 1
-done
-echo '.'
-
-echo "* Start iRedMail installation."
-# Answer some questions automatic:
-#   - Y: Continue install packages after configure complete.
-#   - Y: Use iptables rule file shipped within iRedMail?
-#   - N: Restart iptables now?
-#   - Y: Use MySQL config file (/etc/my.cnf) shipped within iRedMail?
-#   - N: Start postfix now?
-sh iRedMail.sh <<EOF
-Y
-Y
-N
-Y
-N
-EOF
-
-# Read iRedMail config.
-. config
-
-if [ X"${BACKEND}" == X"OpenLDAP" ]; then
-    echo "* Install php pear package: Net_LDAP2."
-    pear install /root/iRedMail/pkgs/misc/Net_LDAP2-2.0.9.tgz
-fi
-
-# Clear yum repo metadata.
-yum clean all 2>/dev/null
-
-# Re-generate yum repo file, used for softwares update.
-cat > ${REPOFILE} <<EOF
-[${REPONAME}]
-name=${REPONAME}
-baseurl=${REPOURL}
-enabled=1
-gpgcheck=0
-priority=1
-EOF
-
-# Return to default installation tty.
-grep '\<text\>' /proc/cmdline >/dev/null 2>&1
-if [ X"$?" == X"0" ]; then
-    # For text installation mode.
-    chvt 1
-    exec < /dev/tty1 > /dev/tty1
-else
-    # For graphical installation mode.
-    chvt 6
-    exec < /dev/tty6 > /dev/tty6
-fi

File extra/pureftpd.schema

-#
-# pureftpd.schema
-#
-# Pure-FTPd User LDAP Schema
-# See README.LDAP in the Pure-FTPd documentation for more information.
-#
-# Written by Ben Gertzfield <che =AT= debian -DOT- org>
-#
-
-## Pure-FTPd-related LDAP attributes
-
-attributetype ( 1.3.6.1.4.1.6981.11.3.1 NAME 'FTPQuotaFiles'
-        DESC 'Quota (in number of files) for an FTP user'
-        EQUALITY integerMatch
-        SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
-
-attributetype ( 1.3.6.1.4.1.6981.11.3.2 NAME 'FTPQuotaMBytes'
-        DESC 'Quota (in megabytes) for an FTP user'
-        EQUALITY integerMatch        
-        SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
-
-attributetype ( 1.3.6.1.4.1.6981.11.3.3 NAME 'FTPUploadRatio'
-        DESC 'Ratio (compared with FTPRatioDown) for uploaded files'
-        EQUALITY integerMatch        
-        SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
-
-attributetype ( 1.3.6.1.4.1.6981.11.3.4 NAME 'FTPDownloadRatio'
-        DESC 'Ratio (compared with FTPRatioUp) for downloaded files'
-        EQUALITY integerMatch        
-        SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
-
-attributetype ( 1.3.6.1.4.1.6981.11.3.5 NAME 'FTPUploadBandwidth'
-        DESC 'Bandwidth (in KB/s) to limit upload speeds to'
-        EQUALITY integerMatch        
-        SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
-
-attributetype ( 1.3.6.1.4.1.6981.11.3.6 NAME 'FTPDownloadBandwidth'
-        DESC 'Bandwidth (in KB/s) to limit download speeds to'
-        EQUALITY integerMatch        
-        SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
-
-attributetype ( 1.3.6.1.4.1.6981.11.3.7 NAME 'FTPStatus'
-        DESC 'Account status: enabled or disabled'
-        EQUALITY caseIgnoreIA5Match
-        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
-
-attributetype ( 1.3.6.1.4.1.6981.11.3.8 NAME 'FTPuid'
-        DESC 'System uid (overrides uidNumber if present)'
-        EQUALITY integerMatch
-        SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
-
-attributetype ( 1.3.6.1.4.1.6981.11.3.9 NAME 'FTPgid'
-        DESC 'System uid (overrides gidNumber if present)'
-        EQUALITY integerMatch
-        SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
-
-attributetype ( 1.3.6.1.4.1.6981.11.3.10 NAME 'FTPHomeDir'
-        DESC 'FTP directory'
-        EQUALITY caseIgnoreIA5Match
-        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
-
-## New Pure-FTPd object type
-
-objectclass ( 1.3.6.1.4.1.6981.11.2.3 NAME 'PureFTPdUser'
-        DESC 'PureFTPd user with optional quota, throttling and ratio'
-        SUP top AUXILIARY
-        MAY ( FTPStatus $ FTPQuotaFiles $ FTPQuotaMBytes $ FTPUploadRatio $ 
-              FTPDownloadRatio $ FTPUploadBandwidth $ FTPDownloadBandwidth $
-              FTPuid $ FTPgid $ FTPHomeDir ) )

File extra/samples/pureftp/ldap.conf

-
-#############################################
-#                                           #
-# Sample Pure-FTPd LDAP configuration file. #
-# See README.LDAP for explanations.         #
-#                                           #
-#############################################
-
-
-# Optional : name of the LDAP server. Default : localhost
-
-#LDAPServer ldap.c9x.org
-LDAPServer localhost
-
-# Optional : server port. Default : 389
-
-LDAPPort   389
-
-
-# Mandatory : the base DN to search accounts from. No default.
-
-#LDAPBaseDN cn=Users,dc=c9x,dc=org
-LDAPBaseDN o=domains,dc=example,dc=com
-
-# Optional : who we should bind the server as.
-#            Default : binds anonymously
-
-#LDAPBindDN cn=Manager,dc=c9x,dc=org
-LDAPBindDN cn=vmail,dc=example,dc=com
-
-# Password if we don't bind anonymously
-# This configuration file should be only readable by root
-
-#LDAPBindPW r00tPaSsw0rD
-LDAPBindPW xjlE6sfKWy6CNmVXIfa4iwkmun0MTJ
-
-# Optional : default UID, when there's no entry in an user object
-
-# LDAPDefaultUID 500
-LDAPDefaultUID 1000
-
-# Optional : default GID, when there's no entry in an user object
-
-# LDAPDefaultGID 100
-LDAPDefaultGID 1000
-
-# Filter to use to find the object that contains user info
-# \L is replaced by the login the user is trying to log in as
-# The default filter is (&(objectClass=posixAccount)(uid=\L))
-
-# LDAPFilter (&(objectClass=posixAccount)(uid=\L))
-LDAPFilter (&(objectClass=PureFTPdUser)(mail=\L)(FTPStatus=enabled))
-
-# Attribute to get the home directory
-# Default is homeDirectory (the standard attribute from posixAccount)
-
-# LDAPHomeDir homeDirectory
-LDAPHomeDir FTPHomeDir
-
-# LDAP protocol version to use
-# Version 3 (default) is mandatory with recent releases of OpenLDAP.
-
-# LDAPVersion 3
-LDAPVersion 3