Published by manu on July 07 2009

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 :

Published by: stjohn

date: July 27 2009

comment:

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

many thanks,
Stjohn

Published by: CharlieB

date: August 09 2009

comment:

Nice script
thanks.

CharlieB

Published by: spfef

date: January 15 2010

comment:

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

Published by: manu

date: January 15 2010

comment:

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.

Published by: mtkoan

date: April 27 2010

comment:

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

Published by: anonyMouse

date: July 15 2010

comment:

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

Published by: carlos j

date: August 05 2010

website: http://manurevah.com/blah/en/pages/Bash-Email-Admin-Script&prev=_t&rurl=translate.google.com.co&twu=1&usg=ALkJrhhGhSM9rCA_fsxPB

comment:

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

Mil felicitaciones

Published by: Jon

date: August 23 2010

comment:

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

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

date: August 31 2010

website: http://online-office.dn.ua/

comment:

very nice. Great man!

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