code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/sh # File: create_mail_ldap_user.sh # $Revision: 451 $ # Author: Bibby(michaelbibby#gmail.com) # Date: $LastChangedDate: 2008-02-28 12:15:49 +0800 (Thu, 28 Feb 2008) $. # Purpose: Add new LDAP user for postfix mail server. # ---------------------------------------------- # ------------ Global Setting --------...
Shell
#!/bin/sh # Author: Zhang Huangbin (michaelbibby <at> gmail.com) # Date: 2008.03.29 # Purpose: Collect some log files and configuration files for iRedMail # error analytic. # Collect all ${ALL_FILES} to this directory. COLLDIR="/tmp/iRedMail_sysreport/" [ -d ${COLLDIR} ] || mkdir -p ${COLLDIR} rm -rf ${COLLD...
Shell
#!/bin/sh # Author: Zhang Huangbin (michaelbibby <at> gmail.com ) # Date: 2008.06.11 # Purpose: Convert WinMail user mailboxs to standard IMAP directory # structure (mailbox format). # Migration guide wrote in Chinese: # http://code.google.com/p/iRedMail/wiki/iRedMail_tut_Migration # Description: ...
Shell
# First domain name. while : ; do ${DIALOG} --backtitle "${DIALOG_BACKTITLE}" \ --title "Your first virtual domain" \ --inputbox "\ Please specify the name of your first virtual domain. EXAMPLES: * iredmail.org " 20 76 2>/tmp/first_domain FIRST_DOMAIN="$(cat /tmp/first_domain)" [ X"${FIRST_...
Shell
# ------------------------------------ # Mailman related configuration. # ------------------------------------ ${DIALOG} --backtitle "${DIALOG_BACKTITLE}" \ --title "First Mailing List in Mailman" \ --inputbox "\ Please specify the name of your first mailing list for your virtual domain: * ${FIRST_DOMAIN} ...
Shell
#!/bin/sh # Author: Zhang Huangbin (michaelbibby <at> gmail.com) . ./conf/global . ./conf/functions trap "exit 255" 2 check_arch DIALOG='dialog --no-collapse' DIALOG_BACKTITLE='iRedMail: Mail Server Installation Wizard for RHEL/CentOS 5.x' # Welcome message. ${DIALOG} --backtitle "${DIALOG_BACKTITLE}" \ --tit...
Shell
# -------------------------------------------------- # ------------------- PostfixAdmin ----------------- # -------------------------------------------------- # Username of PostfixAdmin site admin. while :; do ${DIALOG} --backtitle "${DIALOG_BACKTITLE}" \ --title "Username of PostfixAdmin site admin" \ --i...
Shell
# -------------------------------------------------- # --------------------- MySQL ---------------------- # -------------------------------------------------- . ${CONF_DIR}/mysql # MySQL root password. while : ; do ${DIALOG} --backtitle "${DIALOG_BACKTITLE}" \ --title "Password for MySQL administrator: root" ...
Shell
#!/bin/sh # Author: Zhang Huangbin (michaelbibby <at> gmail.com) # Purpose: Import users from a plain text file. # Plain text file format: one name, one line. e.g. # ----------------------- # userA # userB # userC # ----------------------- # Mailbox format: mbox, Maildir. HOME_MAILBOX='Maildir' # Maildir format. # ...
Shell
#!/bin/sh # Author: Zhang Huangbin (michaelbibby <at> gmail.com) export PROG_NAME='iRedMail' export PROG_NAME_LOWERCASE='iredmail' export PROG_VERSION='0.3' # ----------------- # ---- Generic ---- # ----------------- # Maildir format: mbox, Maildir. export HOME_MAILBOX='Maildir' # For distribute deployment. export...
Shell
#!/bin/sh # Author: Zhang Huangbin (michaelbibby <at> gmail.com) # ---------------------------------------- # For Dovecot and dovecot-sieve. # ---------------------------------------- export DOVECOT_CONF='/etc/dovecot.conf' export DOVECOT_LDAP_CONF='/etc/dovecot-ldap.conf' export DOVECOT_MYSQL_CONF='/etc/dovecot-my...
Shell
#!/bin/sh # Author: Zhang Huangbin (michaelbibby <at> gmail.com) # ---------------------------------------- # For SquirrelMail. # ---------------------------------------- # Version number for core program: SquirrelMail. export SM_VERSION='1.4.15' export SM_TARBALL="squirrelmail-${SM_VERSION}.tar.bz2" # -----------...
Shell
#!/bin/sh # Author: Zhang Huangbin (michaelbibby <at> gmail.com) ECHO_INFO() { if [ X"$1" == X"-n" ]; then shift 1 if [ X"${TERM}" == X"xterm" -o X"${TERM}" == X"linux" -o X"${TERM}" == X"pcconsole" ]; then echo -ne "\033[42m${OUTPUT_FLAG}\033[0m $@" else echo -ne "...
Shell
#!/bin/sh # Author: Zhang Huangbin (michaelbibby <at> gmail.com) # chkconfig: 345 90 90 # description: run freshclam as daemon. . /etc/rc.d/init.d/functions PROG='freshclam' FRESHCLAM_BIN='/usr/bin/freshclam' OPTIONS='-d -c 2' PID='/var/run/clamav/freshclam.pid' start() { if [ -e ${PID} ]; then echo -n...
Shell
#!/bin/sh # Author: Zhang Huangbin (michaelbibby <at> gmail.com) # Date: 2008.09.05 # chkconfig: 345 99 99 # description: run pysieved as daemon. . /etc/rc.d/init.d/functions PROG='pysieved' PYSIEVED_BIN='/usr/sbin/pysieved' OPTIONS='-c /etc/pysieved.ini' PID='/var/run/pysieved/pysieved.pid' start() { if [ -e...
Shell
#!/bin/sh # Author: Zhang Huangbin (michaelbibby <at> gmail.com) # chkconfig: 2345 82 28 # description: mailgraph postfix log grapher, based on official script of mailgraph. # # processname: mailgraph.pl # pidfile: /var/run/mailgraph.pid . /etc/rc.d/init.d/functions PATH='/bin:/usr/bin' MAILGRAPH_PL='/usr/local/bi...
Shell
#!/bin/sh # Author: Zhang Huangbin (michaelbibby <at> gmail.com) # Date: $LastChangedDate: 2008-03-02 21:11:40 +0800 (Sun, 02 Mar 2008) $ # Purpose: Fetch all extra packages we need to build mail server. FETCH_CMD='wget -c' # # Mirror site. # Site directory structure: # # ${MIRROR}/ # |- rpms/ # ...
Shell
# ------------------------------------------- # Functions to install and configure ExtMail. # ------------------------------------------- extmail_install() { cd ${MISC_DIR} ECHO_INFO "Create necessary directory and extract ExtMail: ${EXTMAIL_TARBALL}..." [ -d ${EXTSUITE_HTTPD_ROOT} ] || mkdir -p ${EXTSUIT...
Shell
# ------------------------------------------------------- # -------------------- MySQL ---------------------------- # ------------------------------------------------------- mysql_initialize() { ECHO_INFO "Starting MySQL." /etc/init.d/mysqld restart >/dev/null ECHO_INFO -n "Sleep 5 seconds for MySQL daemon...
Shell
# ------------------------------------------------------- # ------------------- phpLDAPadmin ---------------------- # ------------------------------------------------------- pla_install() { cd ${MISC_DIR} extract_pkg ${PLA_TARBALL} ${HTTPD_SERVERROOT} ECHO_INFO "Create directory alias for phpLDAPadmin." ...
Shell
# -------------------------------------------- # Amavisd-new. # -------------------------------------------- amavisd_dkim() { pem_file="${AMAVISD_DKIM_DIR}/${FIRST_DOMAIN}.pem" ECHO_INFO "Create directory to store CA files: ${AMAVISD_DKIM_DIR}." mkdir -p ${AMAVISD_DKIM_DIR} 2>/dev/null && \ chown ama...
Shell
# ------------------------------------------------- # Mailman. # ------------------------------------------------- mailman_config() { ECHO_INFO "Initialize mailman." echo "MTA = 'Postfix'" >> /etc/mailman/mm_cfg.py echo "POSTFIX_STYLE_VIRTUAL_DOMAINS = ['${FIRST_DOMAIN}',]" >> /etc/mailman/mm_cfg.py EC...
Shell
#!/bin/sh # Author: Zhang Huangbin <michaelbibby (at) gmail.com> # Configure pysieved. pysieved_config() { backup_file ${PYSIEVED_INI} ECHO_INFO "Setting up managesieve server: pysieved." cat > ${PYSIEVED_INI} <<EOF ${CONF_MSG} [main] # Authentication back-end to use auth = Dovecot # User DB back-...
Shell
# ------------------------------------------------------- # Dovecot & dovecot-sieve. # ------------------------------------------------------- # For dovecot SSL support. enable_dovecot_ssl() { ECHO_INFO "Generate CA file for dovecot: /etc/pki/dovecot/*." rm -f /etc/pki/dovecot/{certs,private}/dovecot.pem c...
Shell
# ------------------------------------------- # Install all optional components. # ------------------------------------------- optional_components() { if [ X"${USE_SM}" == X"YES" ]; then # ------------------------------------------------ # SquirrelMail and plugins. # ------------------------...
Shell
# ----------------------- # Roundcube. # ----------------------- rcm_install() { cd ${MISC_DIR} # Extract source tarball. extract_pkg ${RCM_TARBALL} ${HTTPD_SERVERROOT} ECHO_INFO "Set correct permission for Roundcubemail: ${RCM_HTTPD_ROOT}." chown -R root:root ${RCM_HTTPD_ROOT} chown -R apache...
Shell
install_all() { ALL_PKGS='' ENABLED_SERVICES='' DISABLED_SERVICES='' # Apache. ALL_PKGS="${ALL_PKGS} httpd.${ARCH} mod_ssl.${ARCH}" # PHP. ALL_PKGS="${ALL_PKGS} php.${ARCH} php-imap.${ARCH} php-gd.${ARCH} php-mbstring.${ARCH} libmcrypt.${ARCH} php-mcrypt.${ARCH} php-pear.noarch php-xml.${A...
Shell
#!/bin/sh # Author: Zhang Huangbin <michaelbibby (at) gmail.com> horde_install() { cd ${MISC_DIR} # Extract source tarball. extract_pkg ${HORDE_TARBALL} ${HTTPD_DOCUMENTROOT} mv ${HTTPD_DOCUMENTROOT}/horde-webmail-${HORDE_VERSION} ${HORDE_HTTPD_ROOT} ECHO_INFO "Set correct permission for Horde w...
Shell
enable_procmail() { ECHO_INFO "Setup procmail as Mail Deliver Agent(MDA)." ECHO_INFO "Copy ${SAMPLE_DIR}/procmailrc as ${PROCMAILRC}." cp -f ${SAMPLE_DIR}/procmailrc ${PROCMAILRC} ECHO_INFO "Setup Postfix transport in ${POSTFIX_FILE_MASTER_CF}." cat >> ${POSTFIX_FILE_MASTER_CF} <<EOF dovecot unix ...
Shell
# ------------------------------------------- # Misc. # ------------------------------------------- disable_selinux() { ECHO_INFO "Disable SELinux." [ -f /etc/selinux/config ] && perl -pi -e 's#^(SELINUX=)(.*)#${1}disabled#' /etc/selinux/config echo 'export status_disable_selinux="DONE"' >> ${STATUS_FILE} ...
Shell
#!/bin/sh # Author: Zhang Huangbin (michaelbibby <at> gmail.com). # Date: 2008.04.07 # --------------------------------------------- # Postgrey. # --------------------------------------------- postgrey_config() { # Modify initialize script. perl -pi -e 's#^(OPTIONS=".*)(")#${1} --greylist-text=Spammer -...
Shell
# ----------------------------- # PostfixAdmin. # ----------------------------- postfixadmin_install() { cd ${MISC_DIR} extract_pkg ${POSTFIXADMIN_TARBALL} ${HTTPD_SERVERROOT} && \ cd ${POSTFIXADMIN_HTTPD_ROOT}/ && \ patch -p0 < ${PATCH_DIR}/postfixadmin/create_mailbox.patch >/dev/null ECHO_INFO "...
Shell
# -------------------------------------------- # ClamAV. # -------------------------------------------- clamav_config() { ECHO_INFO "Configure ClamAV: ${CLAMD_CONF}." perl -pi -e 's/^(TCPSocket.*)/#${1}/' ${CLAMD_CONF} perl -pi -e 's/^(TCPAddr )/${1}no #/' ${CLAMD_CONF} # The following options are no ...
Shell
# ------------------------------------------------- # phpMyAdmin. # ------------------------------------------------- phpmyadmin_install() { cd ${MISC_DIR} extract_pkg ${PHPMYADMIN_TARBALL} ${HTTPD_SERVERROOT} ECHO_INFO "Create directory alias for phpMyAdmin in Apache: ${HTTPD_CONF_DIR}/phpmyadmin.conf." ...
Shell
# ------------------------------------------------------- # ---------------- Apache & PHP ------------------------- # ------------------------------------------------------- apache_php_config() { backup_file ${HTTPD_CONF} # -------------------------- # Apache Setting. # -------------------------- ...
Shell
# --------------------------------------------------------- # SpamAssassin. # --------------------------------------------------------- sa_config() { backup_file ${SA_LOCAL_CF} ECHO_INFO "Generate new configuration file: ${SA_LOCAL_CF}." cp -f ${SAMPLE_DIR}/sa.local.cf ${SA_LOCAL_CF} #ECHO_INFO "Disab...
Shell
# ------------------------------------------------------- # ---------------------- Postfix ------------------------ # ------------------------------------------------------- postfix_config_basic() { backup_file ${SMTPD_CONF} ECHO_INFO "Create saslauthd user auth lookup file: ${SMTPD_CONF}." cat > ${SMTPD...
Shell
#!/bin/sh # Author: Zhang Huangbin <michaelbibby (at) gmail.com> # ------------------------------------------------------- # ------------------- OpenLDAP -------------------------- # ------------------------------------------------------- openldap_config() { backup_file ${OPENLDAP_SLAPD_CONF} ${OPENLDAP_LDAP_C...
Shell
# ------------------------------------------------------- # ------------------- Cyrus-SASL ------------------------ # ------------------------------------------------------- cyrus_sasl_config_ldap() { ECHO_INFO "Configure saslauthd for LDAP bind: ${SASLAUTHD_CONF}" cat > ${SASLAUTHD_CONF} <<EOF ${CONF_MSG} SOC...
Shell
# ------------------------------------------------- # Mailgraph # ------------------------------------------------- mailgraph_setup() { ECHO_INFO "Setup mailgraph for mail log monitor." cp -f ${SAMPLE_DIR}/mailgraph/mailgraph.cgi ${HTTPD_SERVERROOT}/cgi-bin/ chmod 0755 ${HTTPD_SERVERROOT}/cgi-bin/mailgraph...
Shell
# ------------------------------------------------------- # ---------------- User/Group: vmail -------------------- # ------------------------------------------------------- adduser_vmail() { homedir="$(dirname $(echo ${VMAIL_USER_HOME_DIR} | sed 's#/$##'))" [ -d ${homedir} ] || mkdir -p ${homedir} ECHO_IN...
Shell
# ------------------------------------------------------- # ------------- Install and config backend. ------------- # ------------------------------------------------------- backend_install() { if [ X"${BACKEND}" == X"OpenLDAP" ]; then # Install, config and initialize OpenLDAP. check_status_before_r...
Shell
# --------------------------------------------------------- # SqruirrelMail. # --------------------------------------------------------- sm_install() { cd ${MISC_DIR} # Extract source tarball. extract_pkg ${SM_TARBALL} ${HTTPD_SERVERROOT} ECHO_INFO "Set correct permission for squirrelmail: ${SM_HTTPD_...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software:...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com ) # Purpose: Migrate ExtMail MySQL 'mailbox' table to iRedMail format. # Project: iRedMail (http://www.iredmail.org/) # # Migration guide wrote in Chinese: # http://www.iredmail.org/wiki/index.php?title=Migrate_from_ExtMail_Solution # Usa...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) # Purpose: Import users to MySQL database from plain text file. # Project: iRedMail (http://www.iredmail.org/) # ------------------------------------------------------------------- # Usage: # * Edit these variables: # STORAGE_BASE_...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby#gmail.com) # Purpose: Add new OpenLDAP user for postfix mail server. # Project: iRedMail (http://www.iredmail.org/) # --------------------------- WARNING ------------------------------ # This script only works under iRedMail >= 0.3.3 due to ldap schema # c...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com ) # Purpose: Convert WinMail user mailboxs to standard IMAP directory # structure (mailbox format). # Migration guide wrote in Chinese: # http://code.google.com/p/iRedMail/wiki/iRedMail_tut_Migration # Description: # WinMail s...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) # Purpose: Remove main components which installed by iRedMail, so that # you can re-install iRedMail. # Project: iRedMail (http://www.iredmail.org/) # ------------ USAGE -------- # Execute this file in the current directory. # # ...
Shell
#!/bin/sh # Author: Zhang Huangbin <michaelbibby (at) gmail.com> # Purpose: Send mail to notify user when his mailbox quota exceeds a # specified limit. # Project: iRedMail (http://www.iredmail.org/) PERCENT=$1 cat << EOF | /usr/libexec/dovecot/deliver -d ${USER} -c /etc/dovecot.conf From: postmaster@i...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software: y...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software: y...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software:...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software:...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software: ...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software:...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software:...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software: y...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software:...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software:...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software:...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software:...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software: y...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software:...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software:...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software:...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software:...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software:...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software:...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software:...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software:...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software: y...
Shell
#!/bin/sh # Author: Zhang Huangbin (michaelbibby <at> gmail.com) #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software: you can red...
Shell
#!/bin/sh # Author: Zhang Huangbin (michaelbibby <at> gmail.com) # Date: 2008.09.05 #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free so...
Shell
#!/usr/bin/env bash #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software: you can redistribute it and/or modify # it under the term...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) # Purpose: Fetch all extra packages we need to build mail server. #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterpri...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin <michaelbibby (at) gmail.com> #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software:...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin <michaelbibby (at) gmail.com> #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software:...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin <michaelbibby (at) gmail.com> #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software:...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software:...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin <michaelbibby (at) gmail.com> #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software:...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin <michaelbibby (at) gmail.com> #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software:...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software:...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software:...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software:...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin <michaelbibby (at) gmail.com> # ------------------------------------------------------- # ------------------- phpLDAPadmin ---------------------- # ------------------------------------------------------- pla_install() { ECHO_INFO "==================== phpLDAPadmin ====...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software:...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software:...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software:...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software:...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin <michaelbibby (at) gmail.com> # ------------------------------------------- # Install all optional components. # ------------------------------------------- optional_components() { # SquirrelMail. if [ X"${USE_SM}" == X"YES" ]; then # ----------------------...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin <michaelbibby (at) gmail.com> # ----------------------- # Roundcube. # ----------------------- rcm_install() { ECHO_INFO "==================== Roundcube Webmail ====================" cd ${MISC_DIR} # Extract source tarball. extract_pkg ${RCM_TARBALL} ${HT...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin <michaelbibby (at) gmail.com> install_all() { ALL_PKGS='' ENABLED_SERVICES='' DISABLED_SERVICES='' # Enable syslog. [ X"${DISTRO}" == X"RHEL" ] && ENABLED_SERVICES="syslog ${ENABLED_SERVICES} " [ X"${DISTRO}" == X"DEBIAN" ] && ENABLED_SERVICES="rsy...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin <michaelbibby (at) gmail.com> enable_procmail() { ECHO_INFO "==================== Procmail ====================" ECHO_INFO "Setup procmail as Mail Deliver Agent(MDA)." ECHO_INFO "Copy ${SAMPLE_DIR}/procmailrc as ${PROCMAILRC}." cp -f ${SAMPLE_DIR}/procmai...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com). # Date: 2008.04.07 # --------------------------------------------- # pypolicyd-spf. # --------------------------------------------- pypolicyd_spf_config() { ECHO_INFO "Install pypolicyd-spf for SPF." cd ${MISC_DIR} extract_p...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin <michaelbibby (at) gmail.com> # ----------------------------- # PostfixAdmin. # ----------------------------- postfixadmin_install() { ECHO_INFO "==================== PostfixAdmin ====================" cd ${MISC_DIR} extract_pkg ${POSTFIXADMIN_TARBALL} ${HTTP...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) # Purpose: Install & config necessary packages for iRedAdmin. #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise L...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software:...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin <michaelbibby (at) gmail.com> # ------------------------------------------------- # phpMyAdmin. # ------------------------------------------------- phpmyadmin_install() { ECHO_INFO "==================== phpMyAdmin ====================" cd ${MISC_DIR} extract_...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) #--------------------------------------------------------------------- # This file is part of iRedMail, which is an open source mail server # solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu. # # iRedMail is free software:...
Shell