Nullmailer, a developer’s best friend

Nullmailer is a very basic sendmail replacement that can forward local mail to remote SMTPs with authentication. Useful for testing anything that requires a sendmail call in a development environment without having to set up a local mail server (for example, verification emails sent by PHP’s mail() function).

It is available on Debian/Ubuntu systems with sudo apt-get install nullmailer. The source and RPM is available on the homepage.

The apt/dpkg configuration will let you enter a smarthost to forward mail to which should look something like the line below (if you installed from source you can add the same details to /etc/nullmailer/remotes):


mail.server.com smtp --port=25 --user=me@host --pass=changeme

The –user and –pass flags are optional and are only required for authenticated SMTP connections.

It’s one of those great pieces of software that you stumble upon by accident and fall in love with. I’ve also used it in production where webservers have been behind firewalls and it has never let me down.

This entry was posted in Uncategorized. Bookmark the permalink.

2 Responses to Nullmailer, a developer’s best friend

  1. Eric Wang says:

    Yes, it is absolutely a killer program. I’m using it both at work and at home, works great!
    Thanks for sharing.

  2. Instaldores tdt madrid says:

    It’s really simple and effective MTA.

    The best for server.

    Thx!!!!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>