addmail


C#/Mono tool to add users to a vmaps style Postfix/Dovecot environment

addmail.cs

addmail.cs is a Small tool written in C# and compiles on Mono to add users to Postfix and Dovecot when following the configuration guide found at http://help.ubuntu.com/community/PostfixVirtualMailBoxClamSmtpHowto

Requirements

  • mkpasswd
  • Mono + Compiler (I used Mono C# compiler/runtime version 2.4.2.3)

mkpasswd comes with the 'whois' package, you may have to install this first:

sudo apt-get install whois

Install mono and its compiler

sudo apt-get install mono-runtime mono-gmcs

Compilation

1. Download the addmail.cs file from http://code.google.com/p/addmail/downloads/list

2. Compile the code

gmcs addmail.cs 3. Optionally, copy to /usr/bin (or /usr/sbin) - you can safely omit the .exe cp addmail.exe /usr/bin

Usage

# addmail *user@host* _password_

For example: addmail newuser@example.com newpass123

It will confirm everything looks right before actually adding the user.

Additions and bug fixes

If you extend on, or fix bugs on this source, I would love to see it. :)


Project Information

Labels:
addmail postfix dovecot linux ubuntu jcomm