Software Development

Tequila for Postfix Mail Servers

Tequila is a web-based configuration front-end for Postfix mail servers running on Linux. It provides easy access to day-to-day operations, like creating mail accounts and out-of-the-office messages.

Here are a few screen shots:

  Login screen   User account settings
  Domain management   Account management
  Alias & list management   Cyrus-SIEVE control
  Tequila administration   Mail system status

Tequila is written in the Perl programming language. It comes with its own, built-in web server, which handles all communication with the client browsers.

Supported Mail Server Combinations

Three types of mail server software combinations are supported:

  • Postfix & Vm-pop3d
  • Postfix & Cyrus-IMAP/SASL (comes with built-in POP3 server as well)
  • Postfix & Courier-IMAP & OpenLDAP


Tequila allows for easy performing the following tasks:

  • Create, edit and remove virtual mail domains.
  • Create/edit/remove mail accounts (POP3 and IMAP).
  • Create/edit/remove aliases to mail accounts and mail distribution lists.
  • Virtual domain administration can be delegated to several domain admins.
  • Local domain admins may be confined to work within their own domains only.
  • Users can configure their automatic mail forwarding and out-of-the-office notifications when they are on leave.
  • Out-of-the-office / forwarding services can turn themselves on and off if required.
  • Email account passwords can be modified by the users themselves.
  • Users can choose their preferred language from the list of available choices.
  • Separate languages can be in use at the same time by the Tequila admin, the domain admins and the various users.
  • Tequila's on-screen messages can be translated online - no programming skills required.
  • SASL accounts/passwords are kept in sync with the Tequila accounts (SASL version 2).
  • Special mail accounts may be created to run arbitrary embedded backend scripts on incoming emails. Tequila ships with a "detachmail" script, which can split off specified attachments by name and transfer the recoded files to a ftp server. This also includes sending automatic status notifications to the sender and to a circle of ftp server admins.

  • Perl (

    Should be obviously (and already present on most systems).

  • Postfix (

    Postfix is a Mail Transport Agent (like Sendmail, Exim, Qmail and others).

    It has some nice, clean features for virtual domain declaration and is very flexible in managing different virtual domain files.

Plus one of the following mailserver software combinations (either POP3 or IMAP) to deliver the emails to the mail account holders on your server:
  • Vm-pop3d (

    VM-Pop3d is a POP3 daemon that can be used as a replacement for "qpopper" or similar programs. Use this little daemon and throw away your Unix user accounts, which are nessesary for "normal" POP3 daemons.

    Instead, extract your old pop3 user accounts from the /etc/passwd file and store them under a virtual domain directory structure for use of vm-pop3d.

    Very easy to install/maintain if you simply need some (hundreds) POP3 accounts, e.g. in your company.

  • Cyrus-Imap & Cyrus-Sasl (

    This combination works in the following way: Postfix hands over incoming emails to Cyrus-IMAPD, which stores the email in a maildir-style directory. Cyrus then uses the SASL library to identify incoming requests to access emails stored in these directories.

    This is a feature-rich IMAP mail server, but one that is definitely more complex than a POP3 server variant.

  • Courier-Imap & OpenLDAP ( and

    With this combination it is possible to configure postfix to store incoming emails in a maildir-style directory tree, which is also used by the courier server to access these emails by the users. All relevant data for all parties is stored in a LDAP directory (accounts, aliases, passwords, etc.), which allows very fast access and can be also used by any other application, too.

    This is a very interesting variant if you want to implement an IMAP mail
    server, but is comes along with the hardship to understand how the storage concept LDAP works. Recommended only for experienced mail/system administrators.

  • Tequila, stable version 2.2.x (DOWNLOAD)

    For details regarding the Tequila evolution and the features of the Tequila 2.2 release, please see the file History and Changes.

    Or read the current and most comprehensive available documentation, here: Tequila Dokumentation. However, special features may be covered separately in the document directory '~/docs' below the latest Tequila archive.