User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
email:simplesetup [2025/02/16 19:51] – [Simple Email Setup] willyemail:simplesetup [2025/03/02 16:14] (current) – removed willy
Line 1: Line 1:
-====== Simple Email Setup ====== 
- 
-The home server should always be able to send out emails for stuff like notifications. This is true even if you host your email server, because as i say [[selfhost:email|here]], you cannot self-host a real email server on your home server. 
- 
-The Gentoo default **mail-mta/nullmailer** package is more than enough. It should be already installed, otherwise emerge it: 
- 
-<code bash> 
-emerge mail-mta/nullmailer 
-</code> 
- 
-===== Configuration ===== 
- 
-I assume you already have a mail domain somewhere linked to your **@mydomain.com**, and you have your own address as **myself@mydomain.com** and you created a specific mailbox called **home@mydomain.com** to manage any email sent from services. 
- 
-All the following files need to be under **/etc/nullmailer**: 
-<file - adminaddr> 
-myself@mydomain.com 
-</file> 
- 
-<file - defaultdomain> 
-mydomain.com 
-</file> 
- 
-<file - defaulthost> 
-mail 
-</file> 
- 
-<file - me> 
-mail 
-</file> 
- 
-<file - remotes> 
-mail.mydomain.com smtp port=587 user=home@mydomain.com pass=**** starttls 
-</file> 
- 
-===== Usage ===== 
- 
-Try it from the command line: 
-<code bash> 
-(echo "Subject: test email"; echo "Hi! my nullmailer works...") | sendmail -F "Me Myself" -f myself@mydomain.com destination@otherdomain.de 
-</code> 
- 
- 
- 
  

This website uses technical cookies only. No information is shared with anybody or used in any way but provide the website in your browser.

More information