Published by manu

Bash Email Admin Script

A script designed to administer an Email server using Workaround.org tutorial.

I wrote this little script as a replacement for a python script who's purpose is/was to administer an email server (add/remove/modify domains/accounts/aliases).. it's GNU Kosher : ]

oh, careful, there is now a new version of the Workaround ISP mail tutorial, the Lenny edition (in case this page gets old), so get the lenny script if you used the latest tutorial, and the plain one for use on the etch edition

comments :

stjohn

Works like a charm, just what I was looking for!

many thanks,
Stjohn

CharlieB

Nice script
thanks.

CharlieB

spfef

I userd the beas_lenny.sh, but it does not support mailadresses with an dot or a dash in it, like firstname.lastname@example.com or firstname-secondname.lastname@example.com

manu

you are correct.

I changed the regex on line 104 to:
if [ "${2}" = "user" ]; then REGEX="^([0-9a-z\.-]{${MINMAIL},${MAXMAIL}})$"; fi

This now allows dots and dashes.

mtkoan

Great! A pearl! Works perfectly on slackware-13.

anonyMouse

nice - works also on NetBSD (invoke with "bash ").
Thanks!

carlos j

Excelente, apgradezco que lo compartas, esa es la solucion a las cosas, sencillas y funcionales.

Mil felicitaciones

Jon

This worked once, and now it just silently fails to create the required directories. Any ideas?

создание сайтов донецк

very nice. Great man!

manu

Jon, didn't notice your comment, sorry. I am not sure what you mean as this script shouldn't create directories (been a while since I worked on this).

r3c4ll

It's ready for the last (squeeze) tutorial?

manu

Hi r3c4ll,

I haven't tested with the Squeeze tutorial, however as the DB scheme hasn't changed (from what I've seen) this should work just the same.

This means you should try the "lenny" version (beas_lenny.sh). Please try this on a non production platform first.

If you can confirm this works that would be nice.. : ]

Your comments WILL NOT be submitted to any third party (not even for anti spam verification).