code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/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 |
#!/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()
{
# Roundcubemail.
[ X"${USE_RCM}" == X"YES" ] && \
check_status_before_run rc... | Shell |
#!/usr/bin/env bash
# Author: Zhang Huangbin <michaelbibby (at) gmail.com>
# -----------------------
# Roundcube.
# -----------------------
rcm_install()
{
ECHO_INFO "==================== Roundcube Webmail ===================="
if [ X"${DISTRO}" != X"FREEBSD" ]; then
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: 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>
procmail_config()
{
ECHO_INFO "==================== Procmail ===================="
ECHO_INFO "Copy ${SAMPLE_DIR}/procmailrc as ${PROCMAILRC}."
backup_file ${PROCMAILRC}
cp -f ${SAMPLE_DIR}/procmailrc ${PROCMAILRC}
ECHO_IN... | 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 ===================="
if [ X"${DISTRO}" != X"FREEBSD" ]; then
cd ${MISC_DIR}... | Shell |
#!/usr/bin/env bash
# Author: Zhang Huangbin (michaelbibby <at> gmail.com)
# Purpose: Install & config necessary packages for iRedAPD.
#---------------------------------------------------------------------
# This file is part of iRedMail, which is an open source mail server
# solution for Red Hat(R) Enterprise Lin... | 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 ===================="
if [ X"${DISTRO}" != X"FREEB... | 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>
# ---------------------------------------------------------
# SpamAssassin.
# ---------------------------------------------------------
sa_config()
{
ECHO_INFO "==================== SpamAssassin ===================="
backup_file ${SA_... | 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>
# -------------------------------------------------------
# ---------------- 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)
# ------------------------------
# Define some global variables.
# ------------------------------
export ROOTDIR="$(pwd)"
export CONF_DIR="${ROOTDIR}/conf"
export FUNCTIONS_DIR="${ROOTDIR}/functions"
export TOOLS_DIR="${ROOTDIR}/tools"
export PKG_DIR="$... | Shell |
#!/bin/sh
# Author: Zhang Huangbin <michaelbibby (at) gmail.com>
# --------------------------------------------------
# --------------------- LDAP -----------------------
# --------------------------------------------------
# LDAP suffix.
${DIALOG} --backtitle "${DIALOG_BACKTITLE}" \
--title "LDAP suffix" \
... | Shell |
#!/bin/sh
# Author: Zhang Huangbin <michaelbibby (at) gmail.com>
# --------------------------------------------------
# ------------- SPF & DKIM -------------------------
# --------------------------------------------------
${DIALOG} --backtitle "${DIALOG_BACKTITLE}" \
--title "SPF & DKIM" \
--checklist... | Shell |
#!/bin/sh
# Author: Zhang Huangbin <michaelbibby (at) gmail.com>
# 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_... | Shell |
#!/bin/sh
# Author: Zhang Huangbin <michaelbibby (at) gmail.com>
# ------------------------------------
# Mailman related configuration.
# ------------------------------------
${DIALOG} --backtitle "${DIALOG_BACKTITLE}" \
--title "First Mailing List in Mailman" \
--inputbox "\
Please specify the name of you... | Shell |
#!/bin/sh
# Author: Zhang Huangbin (michaelbibby <at> gmail.com)
# Note: config file will be sourced in 'conf/functions', check_env().
. ./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'
# W... | Shell |
#!/bin/sh
# Author: Zhang Huangbin <michaelbibby (at) gmail.com>
# --------------------------------------------------
# ------------------- PostfixAdmin -----------------
# --------------------------------------------------
# Username of PostfixAdmin site admin.
while :; do
${DIALOG} --backtitle "${DIALOG_BACK... | Shell |
#!/bin/sh
# Author: Zhang Huangbin <michaelbibby (at) gmail.com>
# --------------------------------------------------
# --------------------- MySQL ----------------------
# --------------------------------------------------
. ${CONF_DIR}/mysql
# MySQL root password.
while : ; do
${DIALOG} --backtitle "${DIALO... | Shell |
#!/bin/sh
# Author: Zhang Huangbin <michaelbibby (at) gmail.com>
# --------------------------------------------------
# -------------------- Awstats ---------------------
# --------------------------------------------------
. ${CONF_DIR}/awstats
# Set username for awstats access.
while : ; do
${DIALOG} --backti... | Shell |
#!/bin/sh
# Author: Zhang Huangbin (michaelbibby <at> gmail.com)
#
# Variables for extmail.
#
# ExtMail project:
# - http://www.extmail.org/forum/
# Download link:
# - http://mirror3.extmail.net/dist/
#
export EXTMAIL_VERSION='1.0.5'
export EXTMAIL_TARBALL="extmail-${EXTMAIL_VERSION}.tar.gz"
export SYS_USER_LANG... | Shell |
#!/bin/sh
# Author: Zhang Huangbin (michaelbibby <at> gmail.com)
# ---------------------------------------
# RoundcubeMail. http://roundcube.net
# ---------------------------------------
export RCM_VERSION='0.1.1'
export RCM_TARBALL="roundcubemail-${RCM_VERSION}.tar.gz"
export RCM_HTTPD_ROOT="${HTTPD_SERVERROOT}/rou... | Shell |
#!/bin/sh
# 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 |
#!/bin/sh
# Author: Zhang Huangbin (michaelbibby <at> gmail.com)
# For phpLDAPadmin.
export PLA_VERSION='1.1.0.5'
export PLA_TARBALL="phpldapadmin-${PLA_VERSION}.tar.gz"
export PLA_HTTPD_ROOT="${HTTPD_SERVERROOT}/phpldapadmin-${PLA_VERSION}"
| Shell |
#!/bin/sh
# 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
# enter "127... | Shell |
#!/bin/sh
# 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'
# Directory to store sieve filter rule files.
export PYSIEVED_RULE_DIR='.sieve'
# We will run py... | Shell |
#!/bin/sh
# Author: Zhang Huangbin (michaelbibby <at> gmail.com)
# Variables for Postfix and related.
# Set 'message_size_limit', in 'byte'. Default is 10M.
export MESSAGE_SIZE_LIMIT='15728640'
# virtual_maildir_limit_message.
export MAILDIR_LIMIT_MESSAGE="Sorry, the user's maildir has overdrawn the disk quota, ple... | Shell |
#!/bin/sh
# Author: Zhang Huangbin (michaelbibby <at> gmail.com)
export PHPMYADMIN_VERSION='2.11.9.4-all-languages'
export PHPMYADMIN_TARBALL="phpMyAdmin-${PHPMYADMIN_VERSION}.tar.bz2"
export PHPMYADMIN_HTTPD_ROOT="${HTTPD_SERVERROOT}/phpMyAdmin-${PHPMYADMIN_VERSION}"
export PHPMYADMIN_CONFIG_FILE="${PHPMYADMIN_HTTPD... | Shell |
#!/bin/sh
# Author: Zhang Huangbin (michaelbibby <at> gmail.com)
# Variables for OpenLDAP and related.
export OPENLDAP_ROOTDIR="/etc/openldap"
export OPENLDAP_SCHEMA_DIR="${OPENLDAP_ROOTDIR}/schema"
export OPENLDAP_CACERT_DIR="${OPENLDAP_ROOTDIR}/cacerts"
export OPENLDAP_SLAPD_CONF="${OPENLDAP_ROOTDIR}/slapd.conf"
e... | Shell |
#!/bin/sh
# 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, so that ... | Shell |
#!/bin/sh
# Author: Zhang Huangbin (michaelbibby <at> gmail.com)
# Variables for horde-webmail and related.
# ---- Horde WebMail ----
export HORDE_VERSION='1.2'
export HORDE_TARBALL="horde-webmail-${HORDE_VERSION}.tar.gz"
export HORDE_HTTPD_ROOT='/var/www/html/horde'
# Database setting.
export HORDE_DB_NAME="horde... | Shell |
#!/bin/sh
# Author: Zhang Huangbin (michaelbibby <at> gmail.com)
export PROG_NAME='iRedMail'
export PROG_NAME_LOWERCASE='iredmail'
export PROG_VERSION='0.3.2'
# -----------------
# ---- Generic ----
# -----------------
# Maildir format: mbox, Maildir.
export HOME_MAILBOX='Maildir'
# Use exist Apache, MySQL, PHP: Y... | Shell |
#!/bin/sh
# Author: Zhang Huangbin (michaelbibby <at> gmail.com)
export SASLAUTHD_CONF="${ETC_SYSCONFIG_DIR}/saslauthd"
export ETC_SASLAUTHD_CONF='/etc/saslauthd.conf'
export SASLAUTHD_MUX='/var/run/saslauthd/mux'
export SASLAUTHD_SOCKETDIR='/var/spool/postfix/var/run/saslauthd/'
export AUTHDAEMOND_PATH='/var/spool/a... | 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 SpamAssassin.
export SA_INIT_PRE='/etc/mail/spamassassin/init.pre'
export SA_LOCAL_CF='/etc/mail/spamassassin/local.cf'
| Shell |
#!/bin/sh
# Author: Zhang Huangbin (michaelbibby <at> gmail.com)
export CLAMD_CONF='/etc/clamd.conf'
export FRESHCLAM_CONF='/etc/freshclam.conf'
export FRESHCLAM_PID_FILE='/var/run/clamav/freshclam.pid'
export FRESHCLAM_INIT_FILE_SAMPLE="${SAMPLE_DIR}/freshclam.init"
| Shell |
#!/bin/sh
# Author: Zhang Huangbin (michaelbibby <at> gmail.com)
# ----------------------------------------
# For SquirrelMail.
# ----------------------------------------
# Version number for core program: SquirrelMail.
export SM_VERSION='1.4.17'
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)
export AMAVISD_SERVER='127.0.0.1'
export AMAVISD_CONF='/etc/amavisd.conf'
export AMAVISD_LOGFILE='/var/log/amavisd.log'
export AMAVISD_LOGROTATE_FILE="${LOG_ROTATE_DIR}/amavisd"
export AMAVISD_DKIM_DIR='/var/lib/dkim'
export AMAVISD_DKIM_SELECTOR='dkim'... | Shell |
#!/bin/sh
# 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"
export AWSTATS_HTTPD_ROOT="${HTTPD_SERVERROOT}/awstats"
# Used for apach... | Shell |
#!/bin/sh
# Author: Zhang Huangbin (michaelbibby <at> gmail.com)
# ------------------------------------------------
# Policyd.
# ------------------------------------------------
export POLICYD_CONF='/etc/policyd.conf'
export POLICYD_INIT_SCRIPT='/etc/init.d/policyd'
export POLICYD_BINDHOST='127.0.0.1' # Default valu... | Shell |
#!/bin/sh
# 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="${LOG_ROTATE_DIR}/procmail"
| Shell |
#!/bin/sh
# Author: Zhang Huangbin (michaelbibby <at> gmail.com)
# Variables for Apache & PHP and related.
# ---- Apache ----
# Refer to files:
# - functions/apache_php.sh
# - functions/misc.sh
export HTTPD_PORT='80'
export HTTPD_SERVERROOT='/var/www'
export HTTPD_DOCUMENTROOT="${HTTPD_SERVERROOT}/html/"
expor... | 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.
ROOTDIR="$(pwd)"
CONF_DIR="${ROOTDIR}/../conf"
. ${CONF_DIR}/global
. ${CONF_DIR}/functions
FETCH_CMD="wg... | Shell |
#!/bin/sh
# Author: Zhang Huangbin <michaelbibby (at) gmail.com>
# -------------------------------------------
# Functions to install and configure ExtMail.
# -------------------------------------------
extmail_install()
{
cd ${MISC_DIR}
ECHO_INFO "Create necessary directory and extract ExtMail: ${EXTMAIL_T... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.