Software to provision a mail server with users from a Windows or Samba 4 Active Directory
This page is also available in the following languages: [ Español 🇪🇸 🇨🇺] [ Deutsch 🇩🇪]
This is a handy tool to provision a mail server on linux linked to an Active Directory (AD from now on) server (Samba or Windows) with some constraints in mind, as this is a typical mail config to be used in Cuba as regulated by law and security enforcement requirements, but can be used on any domain. You can see a simple provision in this asciinema movie.
We have also some derived projects you can find interesting:
This repository is intended to be cloned on your fresh OS install under /root
(you can use a LXC instance, VM, etc) and setup on a main conf file as per the file comments, then run the steps on a makefile and follow the steps to configure your server.
After a few steps you will have a mail server up and running in about 15 minutes tops. (this time is based on a 2Mbps internet connection to a repository, if you have a local repository it will be less)
This tool is tested and supported on:
Note: If you are using a a Debian buster or bullseye in a LXC Container (Proxmox for example) you need to tweak the dovecot install or it will not work, see this fix for more info
It’s recommended that the instance of MailAD sits within your DMZ segment with a firewall between it and your users and a mail gateway like Proxmox Mail Gateway between it and the external network.
This will provision a mail server for an enterprise serving corporate users. You can see the major features in the Features.md file, among others you will find:
There is a TODO list, which serves as a kind of “roadmap” for new features, but as I (the only dev so far) have a life, a family and a daily job, you know…
All dev is made on weekend or late at night (seriously take a peek on the commit dates!) if you need a feature or fix ASAP, please take into account making a donation or found me and I will be happy to help you ASAP, my contact info is on the bottom of this page.
Do you remember the comment at top of the page about “…with some constraints in mind…”? Yeah, here they are:
thisisalongemailaddress@domain.com
will be cut to thisisalongemailaddr@domain.com
this is not our rule, but a handycap of the LDAP directory as specified by Windows Schema./home/vmail
, all mail will belong to a user named vmail
with uid:5000 & gid:5000. Tip: that folder can be a NFS mount or any other type of network storage (configurable)We have a INSTALL.md file just for that, and also a FAQ file with common problems.
Have a comment, question, contributions or fix?
Use the Issues tab in the repository URL or drop me a message via Twitter or Telegram
Thanks goes to these wonderful people (emoji key):
Please read the CONTRIBUTING.md file if you want to contribute to MailAD to know the details of how to do it. All kinds of contributions are welcomed, ideas, fixes, bugs, improvements and even a phone top-up to keep me online.
This project follows the all-contributors specification. Contributions of any kind welcome!