From d42e4057c4b12874882ba2e37f0d0fa12a5e9159 Mon Sep 17 00:00:00 2001 From: Matteo Cypriani Date: Mon, 25 Jan 2010 14:43:13 +0100 Subject: [PATCH] [email_account] Add GPL header and README --- email_account/README | 18 ++++++++++++++++++ email_account/email_account | 19 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 email_account/README diff --git a/email_account/README b/email_account/README new file mode 100644 index 0000000..a6704a8 --- /dev/null +++ b/email_account/README @@ -0,0 +1,18 @@ +email_account is a helper to create e-mail accounts in a configuration +using Postfix mail transport agent with vhosts and Cyrus IMAP server, in +a Debian environment. + +It allows to simply create an e-mail account and an alias for it in one +command: + email_account me@mydomain.org my.evil.double@mydomain.org + +If you don't want an alias, you can just create the account: + email_account me@mydomain.org + +You can also create an alias for an existing account: + email_account me@mydomain.org my.clone@mydomain.org + +To use this script, you have to be root, or to be able to execute +commands with root privileges through sudo. +You should install it in a directory within the PATH of the root user, +such as /usr/local/sbin. diff --git a/email_account/email_account b/email_account/email_account index 42e6254..99f9681 100755 --- a/email_account/email_account +++ b/email_account/email_account @@ -1,4 +1,23 @@ #!/bin/sh +# +# email_account, Copyright © 2010 Thomas Preud'homme +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +# email_account is a helper to create e-mail accounts in a configuration +# using Postfix mail transport agent with vhosts and Cyrus IMAP server, +# in a Debian environment. set -u