Debian/Ubuntu Tutorial for VMA Emailer

Debian/Ubuntu Tutorial for VMA Emailer

Learn about how to configure Ubuntu nullmailer to relay all local emails through the VMA Emailer cloud.

One of our customers provided us with a tutorial to use VMA Emailer with Debian/Ubuntu.

Please use this tutorial as is, as it is not authored nor tested by VMA Emailer. If you have integrated VMA Emailer into a product, system, or language we would love to have a look and if we publish the code/tutorials we will provide an VMA Emailer credit in your account up to 50,000 emails.

Debian/Ubuntu nullmailer with ElasticEmail

This tutorial is aimed to use nullmailer to relay all local email through ElasticEmail cloud. This is useful if you don't want to rewrite your applications to use the API but want to use the awesome cloud delivery network of ElasticEmail.

Note: Nullmailer is a superb sendmail replacement with ElasticEmail. If an application wants to use SMTP directly, however, it needs to be configured for ElasticEmail directly. Nullmailer only replaces sendmail and does not provide a local SMTP daemon.

To install nullmailer, use the following command. This will suggest to remove your previous installed mailer (exim4, postfix, etc.) but not purge it (so config files remain – if you want).

Sudo apt-get install nullmailer

While installing, debconf should pop-up. If debconf does not pop-up, you can use the configfiles in /etc/nullmailer later. The corresponding config files are listed with each dialogue.

The first dialogue asks for your mail-name of the system (config file: /etc/mailname).
The default should work here, otherwise, enter your hostname and choose "Ok".
The next dialogue asks for the smarthost to use for delivery (config file: /etc/nullmailer/remotes), which is ElasticEmail obviously, enter the following:

smtp.elasticemail.com SMTP --port=2525 --user=YOURUSERNAME --pass=YOURAPIKEY

In the last dialogue, you can configure the delivery of local messages (config file: /etc/nullmailer/adminaddr), like "somebody@localhost" which ElasticEmail would not be able to deliver. Enter a suitable email address for this case here.

If nullmailer was not automatically started, use the following command:

sudo /etc/init.d/nullmailer start

If you change the configfiles, use the following command to restart nullmailer:

sudo /etc/init.d/nullmailer restart

To test the delivery, use the commandline "mail"-tool (make sure the package "mailutils" is installed):

mail -s "test subject" you@youremailaddress.com

and follow the instructions (enter the message, finish with Ctrl+D). Check the ElasticEmail interface and your inbox if everything went ok.

© Copyright Thomas Lutz
www.clickforknowledge.com

    • Related Articles

    • How to configure PostFix with VMA Emailer

      To use VMA Emailer as relay host you must update the PostFix configuration. Â PostFix Some implementations of PostFix only allow passwords to contain letters and numbers, meaning you may need to ensure your VMA Emailer password is only alphanumeric. ...
    • How to integrate AcyMailing with VMA Emailer

      Discover the easiest way to send your email from your web application with VMA Emailer. In this tutorial, we will show you how to configure your AcyMailing to send emails through the VMA Emailer server. Go to AcyMailing -> Configuration 1. Go to your ...
    • How to integrate MailPoet with VMA Emailer

      In this tutorial, we will show you how to integrate MailPoet with VMA Emailer. When sending from VMA Emailer, make sure you pick "Third party" as your sending method in your MailPoet Settings, like this: server: smtp.elasticemail.com port: 2525 ...
    • How to resell the VMA Emailer service

      This guide will show you how to resell the VMA Emailer service to your own customer base. Reselling Overview Start with the Reselling Overview. Make sure your usage of the service will meet our terms. If you feel confident that your customers are a ...
    • How to integrate EasySendy Pro with VMA Emailer

      In this tutorial, we will show you how to configure your EasySendy Pro to send emails to the VMA Emailer server. Add an VMAEmailer account to EasySendy Pro Delivery Server From the EasySendy Pro Dashboard, go to Delivery Servers > Server Settings > ...