Relay email (nullmailer): Difference between revisions

From Alpine Linux
(Created page with " == Overview == Nullmailer is lightweight and simple MTA (mail transport agent) which allows to relay local mails to another server. This is useful if you are in example running private server at home and just want to relay notifications from cron etc. to your external mailbox via your ISPs mail server. Nullmailer allow also to rewrite envelope sender which is needed to pass spam checks many ISPs are nowadays doing. == Installation == Nullmailer can be found only from...")
 
No edit summary
Line 11: Line 11:


== Configuration ==
== Configuration ==
Nullmailer is configured using individual files under /etc/nullmailer/, one file per setting.
When mail is sent to any local user i.e. "root", "logcheck", "me@localhost" etc. then mail can be sent to some external address or addresses (comma separated list) instead:
{{Cat|/etc/nullmailer/adminaddr|me@example.com}}
{{Cat|/etc/nullmailer/allmailfrom|# xxx.
syslog        on
}}
{{Cat|/etc/nullmailer/defaultdomain|# xxx.
syslog        on
}}
{{Cat|/etc/nullmailer/me|# xxx.
syslog        on
}}
{{Cat|/etc/nullmailer/remotes|# xxx.
syslog        on
}}


== Testing ==
== Testing ==

Revision as of 13:15, 1 February 2025

Overview

Nullmailer is lightweight and simple MTA (mail transport agent) which allows to relay local mails to another server. This is useful if you are in example running private server at home and just want to relay notifications from cron etc. to your external mailbox via your ISPs mail server. Nullmailer allow also to rewrite envelope sender which is needed to pass spam checks many ISPs are nowadays doing.

Installation

Nullmailer can be found only from the testing branch. How to Enable the Testing Repository

# apk add nullmailer@testing

Configuration

Nullmailer is configured using individual files under /etc/nullmailer/, one file per setting.

When mail is sent to any local user i.e. "root", "logcheck", "me@localhost" etc. then mail can be sent to some external address or addresses (comma separated list) instead:

Contents of /etc/nullmailer/adminaddr

me@example.com


Contents of /etc/nullmailer/allmailfrom

# xxx. syslog on


Contents of /etc/nullmailer/defaultdomain

# xxx. syslog on


Contents of /etc/nullmailer/me

# xxx. syslog on


Contents of /etc/nullmailer/remotes

# xxx. syslog on

Testing