Thomas Preud'homme
3110ed1288
[email_account] Adapt to new mail config on adagio
...
Remove useless code from email_account considering the change of
configuration for the mail system on adagio:
* No need to twiddle cyrus and restart it to connect to cyradm, just
stop using --auth
* No default domain anymore (thus no special casing for it)
* No file listing current valid emails
10 years ago
Thomas Preud'homme
ea0213d482
Look for cyrus password in /root/passwords
...
Change the place to look for cyrus password:
/root/passwords/cyrus_main_admin_password instead of
/root/cyrus_main_admin_password
12 years ago
Thomas Preud'homme
f784c613f0
[email_account] Update TODO
...
Handle dot in username
13 years ago
Thomas Preud'homme
8595945b16
[email_account] Add a TODO list and populate
...
Add a TODO list and populate it with next milestones (allow account
deletion, minimize cyrus and postfix restart, etc.)
13 years ago
Thomas Preud'homme
5fe150c2a8
[email_account] Use getopt to parse options
...
- Parse options using getopts
- Delete --help option
13 years ago
Thomas Preud'homme
068d816a82
[email_account] Rewrite the number of args test
...
- Simplify the test of the number of args given (a test was uncessary)
13 years ago
Thomas Preud'homme
fe258817f6
[email_account] Restrict scope of var ret in main
...
Make var ret in function main local to the function and option flags as
well
13 years ago
Thomas Preud'homme
7534e030be
[email_account] Handle no args properly
...
Don't fail with -u when no args are given
13 years ago
Thomas Preud'homme
70b6750518
[email_account] Script now work in unix hierarchy
...
- To be able to create mailbox with accountname containing dots, the
script need to support unixhierarchy
13 years ago
Thomas Preud'homme
8df27270a5
[email_account] grep -E when using extended regex
...
When using [::] chars class, use grep -E instead of grep as it is part
of extended regex
13 years ago
Thomas Preud'homme
b8191d87b4
[email_account] Allow tabs as separator
...
Allow tabs as no-op chars in all files manipulated by email_account
(cyrus.conf, imapd.conf, etc…)
13 years ago
Matteo Cypriani
26507780f9
[email_account] Add --quiet to the 1st invoke-rc.d
13 years ago
Matteo Cypriani
d42e4057c4
[email_account] Add GPL header and README
13 years ago
Thomas Preud'homme
f1c6ab699b
[email_account] Ask about restart after sudoing
...
Ask if the user is ready to restart only after performing the eventual
sudo
13 years ago
Matteo Cypriani
779c586029
[email_account] Redirect error messages to stderr
13 years ago
Matteo Cypriani
16960f727c
[email_account] Fix typos in comments and echo
...
Some typos and English mistakes in comments and in printed messages.
Prefix error messages with "Error!".
13 years ago
Matteo Cypriani
d11ba705fe
[email_account] Min. nb_tabs in echo_with_tabs()
...
In echo_with_tabs(), set the number of printed tabs to 1 if it is
evaluated to less than 1 (typically if the third parameter is too small
comparatively to the text length).
13 years ago
Thomas Preud'homme
0361541657
[email_account] call postmap after maps change
...
Call postmap on /etc/postfix/virtual and /etc/postfix/vmailbox after
changes has occured
13 years ago
Thomas Preud'homme
67347f7806
[email_account] postfix reload after config change
...
Use invoke-rc.d postfix reload instead of invoke-rc.d postfix restart
13 years ago
Thomas Preud'homme
1f0be8664b
Add a script for managing email accounts
...
This initial version can:
- create a mailbox (cyradm)
- create a mail alias (virtual_{alias|local}_map)
- create a valid recipient for postfix ({virtual|local}_recipient_map)
- create a password for the account (saslpasswd2)
- print settings to set in the MUA to use this account
- test arguments
13 years ago