Creating a Virtual Email Host

From Gruff Goat Wiki
Jump to: navigation, search

The email server is provisioned using Mail::Toaster. For virtual domain and user creation, most interaction occurs via vpopmail.

The configuration of the server is covered at Mail::Toaster Creation.

Adding a Virtual Domain

From the command line only! This adds the virtual domain and user postmaster with the given password to the email server.

 vadddomain domain.com "postmaster_password"

Adding a Virtual User

This adds a new user to the given domain with the given password.

Command Line

This adds a new user to the given domain with the given password.

 vadduser user@domain.com "user_password"

Qmailadmin

  1. Login from GoGoat
  2. Click New Email Account
  3. Enter the username password and other appropriate information.

Adding a Forward or Alias

  1. Login from GoGoat
  2. Click New Forward
  3. Enter the alias name and the destination for email sent to the alias

Tiamat CGI

Ezmlm - Mailing List Manager

  • Login from GoGoat
  • Click New Mailing List
    • or Mailing Lists (to manage already created lists)
  • Enter the required information in the form
  • Some shell commands for ezmlm
 ezmlm-sub /usr/local/vpopmail/domains/dom_name/list_name user@address   # Subscribe
 ezmlm-unsub /usr/local/vpopmail/domains/dom_name/list_name user@address # Unsubscribe
 ezmlm-list /usr/local/vpopmail/domains/dom_name/list_name               # List subscribers
  • Create shell script that read address from file and processes them through the subscribe command.

Subscription Forms on Website

Web subscription forms send requests to listname-subscribe-user=usersdomain.com@domain.com or listname-unsubscribe-user=usersdomain.com@domain.com

PHP code snippet

 $repemail= str_replace("@", "=", $email);
 $mailto=$maillist ."-". $action ."-". $repemail ."@domain.org";
 mail($mailto, $subject, "");

References