code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/usr/bin/env bash # Author: Zhang Huangbin <michaelbibby (at) gmail.com> # --------------------------------------------------------- # SpamAssassin. # --------------------------------------------------------- sa_config() { ECHO_INFO "==================== SpamAssassin ====================" backup_file ${SA_...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin <michaelbibby (at) gmail.com> # ------------------------------------------------------- # ---------------------- Postfix ------------------------ # ------------------------------------------------------- postfix_config_basic() { ECHO_INFO "==================== Postfix...
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> # ------------------------------------------------------- # ---------------- User/Group: vmail -------------------- # ------------------------------------------------------- adduser_vmail() { ECHO_INFO "==================== User/Group: vma...
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
#!/bin/sh # Author: Zhang Huangbin <michaelbibby (at) gmail.com> # --------------------------------------------------------- # SqruirrelMail. # --------------------------------------------------------- sm_install() { cd ${MISC_DIR} # Extract source tarball. extract_pkg ${SM_TARBALL} ${HTTPD_SERVERROOT} ...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) # ------------------------------ # Define some global variables. # ------------------------------ export ROOTDIR="$(pwd)" export CONF_DIR="${ROOTDIR}/conf" export FUNCTIONS_DIR="${ROOTDIR}/functions" export DIALOG_DIR="${ROOTDIR}/dialog" expor...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com ) # Date: 2008.06.11 # Purpose: Migrate ExtMail MySQL 'mailbox' table to iRedMail format. # Migration guide wrote in Chinese: # http://code.google.com/p/iRedMail/wiki/iRedMail_tut_Migration # Usage: # English: # * Run into MySQL c...
Shell
#!/usr/bin/env bash # ------------------------------------------------------------------- # Filename: create_mail_user_MySQL.sh # Author: Zhang Huangbin (michaelbibby <at> gmail.com) # Lastest update date: 2008.10.24 # Purpose: Import users to MySQL database from plain text file. # Project: iRedMail (http://co...
Shell
#!/usr/bin/env bash # Filename: create_mail_ldap_user.sh # Author: Zhang Huangbin (michaelbibby#gmail.com) # Lastest update date: 2009.02.19 # Purpose: Add new OpenLDAP user for postfix mail server. # # Shipped within iRedMail project: # * http://code.google.com/p/iredmail/ # --------------------------- WARNING ...
Shell
#!/usr/bin/env bash # 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 # Des...
Shell
#!/usr/bin/env bash # Filename: backup_iRedMail.sh # Author: Zhang Huangbin (michaelbibby@gmail.com) # Purpose: Backup all mail server related software configure files. # Project: Open Source Mail Server Solution for Red Hat Enterprise # Linux and CentOS 5.x: # http://code.google.com/p/iredmai...
Shell
#!/bin/sh # Filename: dovecot-quota-warning.sh # Author: Zhang Huangbin <michaelbibby (at) gmail.com> # Date: 2008.10.28 # Version: 0.1 # Purpose: Send mail to notify user when his mailbox quota exceeds a # specified limit. # Project: iRedMail: Open Source Mail Server Solution for Red Hat # ...
Shell
#!/usr/bin/env bash # Filename: backup_mysql_db.sh # Author: Zhang Huangbin (michaelbibby <at> gmail.com) # Date: 2007.09.16 # Purpose: Backup specified mysql databases. # Copyright: # # This shell script is shipped within iRedMail project, released under # GPL v2. # ---- # Usage: # * Add crontab job for wh...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) # --------------------------------------- # RoundcubeMail. http://roundcube.net # --------------------------------------- export RCM_VERSION='0.2.1' export RCM_TARBALL="roundcubemail-${RCM_VERSION}.tar.gz" export RCM_HTTPD_ROOT="${HTTPD_SERVER...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) # ------------------------------------------------ # pypolicyd-spf. # ------------------------------------------------ export PYPOLICYD_SPF_VERSION='0.6.1' export PYPOLICYD_SPF_TARBALL="pypolicyd-spf-${PYPOLICYD_SPF_VERSION}.tar.gz"
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) # For phpLDAPadmin. export PLA_VERSION='1.1.0.7' export PLA_TARBALL="phpldapadmin-${PLA_VERSION}.tar.gz" export PLA_HTTPD_ROOT="${HTTPD_SERVERROOT}/phpldapadmin-${PLA_VERSION}"
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) # Variables for MySQL database server and related. export MYSQL_FRESH_INSTALLATION='YES' # If your host is "localhost" MySQL (the commandline tool 'mysql' as well) # always tries to use the socket connection for speeding up things. If you # ...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) # Variables for Postfix and related. # # You do *NOT* need to modify them. # # ---- Postfix ---- # You do *NOT* need to modify them. export POSTFIX_ROOTDIR='/etc/postfix' export POSTFIX_CHROOT_DIR='/var/spool/postfix' export POSTFIX_FILE_MAI...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) export PHPMYADMIN_VERSION='2.11.9.5-all-languages' export PHPMYADMIN_TARBALL="phpMyAdmin-${PHPMYADMIN_VERSION}.tar.bz2" export PHPMYADMIN_HTTPD_ROOT="${HTTPD_SERVERROOT}/phpMyAdmin-${PHPMYADMIN_VERSION}" export PHPMYADMIN_CONFIG_FILE="${PHPMYA...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) # Variables for OpenLDAP and related. Refer to 'dialog/ldap_config.sh'. # LDAP service info. export LDAP_SERVER_HOST='127.0.0.1' export LDAP_SERVER_PORT='389' export LDAP_USE_TLS='NO' export LDAP_BIND='yes' export LDAP_BIND_VERSION='3' export...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) export POSTFIXADMIN_VERSION='2.2.1.1' export POSTFIXADMIN_TARBALL="postfixadmin-${POSTFIXADMIN_VERSION}.tar.gz" export POSTFIXADMIN_HTTPD_ROOT="${HTTPD_SERVERROOT}/postfixadmin-${POSTFIXADMIN_VERSION}" # Use config.local.php to store settings...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) # Variables for pysieved. export PYSIEVED_INI='/etc/pysieved.ini' export PYSIEVED_BINDADDR='127.0.0.1' export PYSIEVED_PORT='2000' # default is '2000' # We will run pysieved service as vmail user/group, but they can't # write pid file unde...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) export PROG_NAME='iRedMail' export PROG_NAME_LOWERCASE='iredmail' export PROG_VERSION='0.5.0' # ----------------- # ---- Generic ---- # ----------------- # Maildir format: mbox, Maildir. export MAILBOX_FORMAT='Maildir' # Maildir style: hash...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) # ---------------------------------------- # For Dovecot and dovecot-sieve. # ---------------------------------------- if [ X"${DISTRO}" == X"RHEL" ]; then export DOVECOT_CONF='/etc/dovecot.conf' export DOVECOT_LDAP_CONF='/etc/doveco...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) # For SpamAssassin. export SA_INIT_PRE='/etc/mail/spamassassin/init.pre' export SA_LOCAL_CF='/etc/mail/spamassassin/local.cf'
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) export CLAMAV_USER='clamav' export CLAMAV_GROUP='clamav' # Clamav. if [ X"${DISTRO}" == X"RHEL" ]; then export CLAMD_CONF='/etc/clamd.conf' # Freshclam. export FRESHCLAM_CONF='/etc/freshclam.conf' export FRESHCLAM_INIT_FILE_S...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) # Variables for Apache & PHP and related. # ---- Apache ---- export HTTPD_PORT='80' if [ X"${DISTRO}" == X"RHEL" ]; then # Apache configuration files. export HTTPD_CONF_ROOT="/etc/httpd" export HTTPD_CONF="${HTTPD_CONF_ROOT}/con...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) backup_file() { # Usage: backup_file file1 [file2 file3 ... fileN] if [ X"$#" != X"0" ]; then for conf_file in $@; do if [ -f ${conf_file} ]; then if [ X"${TERM}" == X"xterm" -o X"${TERM}" == X"linux...
Shell
#!/bin/sh # Author: Zhang Huangbin (michaelbibby <at> gmail.com) # ---------------------------------------- # For SquirrelMail. # ---------------------------------------- # Version number for core program: SquirrelMail. export SM_VERSION='1.4.19' export SM_TARBALL="squirrelmail-${SM_VERSION}.tar.bz2" # -----------...
Shell
#!/usr/bin/env bash # 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${INFO_FLAG}\033[0m $@" else ec...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) # Warning: Please source 'conf/postfix' first. export AMAVISD_SERVER='127.0.0.1' export AMAVISD_USER='amavis' export AMAVISD_GROUP='amavis' export AMAVISD_LOGFILE='/var/log/amavisd.log' export AMAVISD_LOGROTATE_FILE="${LOGROTATE_DIR}/amavisd"...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) # Awstats homepage: http://awstats.sf.net/ # Variables for awstats and related. export AWSTATS_CONF_DIR='/etc/awstats' export AWSTATS_HTTPD_CONF="${HTTPD_CONF_DIR}/awstats.conf" # Used for apache directory access list. Generated via 'htpass...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) # ------------------------------------------------ # Policyd. # ------------------------------------------------ if [ X"${DISTRO}" == X"RHEL" ]; then export PKG_POLICYD='policyd' export POLICYD_CONF='/etc/policyd.conf' export POLIC...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) export PROCMAIL_BIN='/usr/bin/procmail' export PROCMAILRC='/etc/procmailrc' export PROCMAIL_LOGFILE='/var/log/procmail.log' export PROCMAIL_LOGROTATE_FILE="${LOGROTATE_DIR}/procmail"
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
#!/usr/bin/env bash # ### BEGIN INIT INFO # Provides: iptables # Required-Start: $network $syslog # Required-Stop: $network $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Control iptables firewall. ### END INIT INFO # # This init.d script is used to control iptables...
Shell
#!/usr/bin/env bash # 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. ROOTDIR="$(pwd)" CONF_DIR="${ROOTDIR}/../conf" . ${CONF_DIR}/global . ${CONF_DIR}/functions . ${...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin <michaelbibby (at) gmail.com> # -------------------------------------------------- # --------------------- LDAP ----------------------- # -------------------------------------------------- # LDAP suffix. while : ; do ${DIALOG} --backtitle "${DIALOG_BACKTITLE}" \ ...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin <michaelbibby (at) gmail.com> # -------------------------------------------------- # ------------- POP3(s)/IMAP(s) -------------------- # -------------------------------------------------- # Check enable dovecot or not. No dialog pages, but read from global # variables d...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin <michaelbibby (at) gmail.com> # First domain name. while : ; do ${DIALOG} --backtitle "${DIALOG_BACKTITLE}" \ --title "Your first virtual \Zb\Z2domain name\Zn" \ --inputbox "\ Please specify your first virtual \Zb\Z2domain name\Zn. EXAMPLES: * iredmail....
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin (michaelbibby <at> gmail.com) # Note: config file will be sourced in 'conf/functions', check_env(). . ./conf/global . ./conf/functions . ./conf/core trap "exit 255" 2 # Initialize config file. echo '' > ${CONFIG_FILE} DIALOG='dialog --colors --no-collapse --insecure --...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin <michaelbibby (at) gmail.com> # -------------------------------------------------- # ------------------- PostfixAdmin ----------------- # -------------------------------------------------- # Username of PostfixAdmin site admin. while :; do ${DIALOG} --backtitle "${D...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin <michaelbibby (at) gmail.com> # -------------------------------------------------- # --------------------- MySQL ---------------------- # -------------------------------------------------- . ${CONF_DIR}/mysql # MySQL root password. while : ; do ${DIALOG} --backtitl...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin <michaelbibby (at) gmail.com> # Set default language for webmails. ${DIALOG} --backtitle "${DIALOG_BACKTITLE}" \ --title "Choose the \Zb\Z2default language\Zn for your webmail(s)" \ --radiolist "\ Choose the \Zb\Z2default language\Zn for your webmail(s): TIP: ...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin <michaelbibby (at) gmail.com> # -------------------------------------------------- # -------------------- Awstats --------------------- # -------------------------------------------------- . ${CONF_DIR}/awstats if [ X"${BACKEND}" == X"OpenLDAP" -o X"${BACKEND}" == X"MySQ...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin <michaelbibby (at) gmail.com> awstats_config_basic() { ECHO_INFO "==================== Awstats ====================" [ -f ${AWSTATS_CONF_SAMPLE} ] && dos2unix ${AWSTATS_CONF_SAMPLE} >/dev/null 2>&1 ECHO_INFO "Generate apache config file for awstats: ${AWSTATS_...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin <michaelbibby (at) gmail.com> # Please refer another file: functions/backend.sh # ------------------------------------------------------- # -------------------- MySQL ---------------------------- # ------------------------------------------------------- mysql_initialize()...
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> # -------------------------------------------- # Amavisd-new. # -------------------------------------------- amavisd_dkim() { pem_file="${AMAVISD_DKIM_DIR}/${FIRST_DOMAIN}.pem" ECHO_INFO "Create directory to store DKIM pem files: ${A...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin <michaelbibby (at) gmail.com> # Configure pysieved. pysieved_config() { ECHO_INFO "==================== Pysieved ====================" backup_file ${PYSIEVED_INI} ECHO_INFO "Setting up managesieve server: pysieved." cat > ${PYSIEVED_INI} <<EOF ${CONF_M...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin <michaelbibby (at) gmail.com> # ------------------------------------------- # Misc. # ------------------------------------------- disable_selinux() { ECHO_INFO "Disable SELinux." [ -f /etc/selinux/config ] && perl -pi -e 's#^(SELINUX=)(.*)#${1}disabled#' /etc/selin...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin <michaelbibby (at) gmail.com> # ------------------------------------------------------- # Dovecot & dovecot-sieve. # ------------------------------------------------------- # For dovecot SSL support. dovecot_ssl_config() { ECHO_INFO "Enable TLS support." [ X"${EN...
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='' # Apache and PHP. if [ X"${USE_EXIST_AMP}" != X"YES" ]; then # Apache & PHP. if [ X"${DISTRO}" == X"RHEL" ]; then ALL_PKGS="$...
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> # -------------------------------------------- # ClamAV. # -------------------------------------------- clamav_config() { ECHO_INFO "==================== ClamAV ====================" export CLAMD_LOCAL_SOCKET CLAMD_LISTEN_ADDR EC...
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> # ------------------------------------------------------- # ---------------- Apache & PHP ------------------------- # ------------------------------------------------------- apache_php_config() { ECHO_INFO "==================== Apache & P...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin <michaelbibby (at) gmail.com> # --------------------------------------------------------- # SpamAssassin. # --------------------------------------------------------- sa_config() { ECHO_INFO "==================== SpamAssassin ====================" backup_file ${SA_...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin <michaelbibby (at) gmail.com> # ------------------------------------------------------- # ---------------------- Postfix ------------------------ # ------------------------------------------------------- postfix_config_basic() { ECHO_INFO "==================== Postfix...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin <michaelbibby (at) gmail.com> # ------------------------------------------------------- # ------------------- OpenLDAP -------------------------- # ------------------------------------------------------- openldap_config() { ECHO_INFO "==================== OpenLDAP =...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin <michaelbibby (at) gmail.com> # ------------------------------------------------------- # ---------------- User/Group: vmail -------------------- # ------------------------------------------------------- adduser_vmail() { ECHO_INFO "==================== User/Group: vma...
Shell
#!/usr/bin/env bash # Author: Zhang Huangbin <michaelbibby (at) gmail.com> # ------------------------------------------------------- # ------------- Install and config backend. ------------- # ------------------------------------------------------- backend_install() { if [ X"${BACKEND}" == X"OpenLDAP" ]; then ...
Shell
#!/bin/sh # Author: Zhang Huangbin <michaelbibby (at) gmail.com> # --------------------------------------------------------- # SqruirrelMail. # --------------------------------------------------------- sm_install() { cd ${MISC_DIR} # Extract source tarball. extract_pkg ${SM_TARBALL} ${HTTPD_SERVERROOT} ...
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@gmail.com) # Purpose: Create new SSL keys. # Project: iRedMail (http://www.iredmail.org/) export HOSTNAME="$(hostname -f)" export ROOTDIR="$(pwd)" # SSL key. export SSL_CERT_FILE="${ROOTDIR}/certs/iRedMail_CA.pem" export SSL_KEY_FILE="${ROOTDIR}/private/...
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
#!/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: 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: 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
#!/usr/local/bin/bash # Author: Zhang Huangbin (michaelbibby@gmail.com) # PROVIDE: iredapd # REQUIRE: DAEMON # KEYWORD: shutdown . /etc/rc.subr name='iredapd' rcvar=`set_rcvar` BINPATH='/opt/iredapd/src/iredapd.py' CONFIG='/opt/iredapd/etc/iredapd.ini' pidfile='/var/run/iredapd.pid' check_status() { # Usage: c...
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