Difference between revisions of "Emails"
From wiki
(Created page with "Sending emails is important for a server. It allows the server to notify remote users (you) in can you need to do some action. This guide will show you two different configur...") |
|||
Line 42: | Line 42: | ||
* [[Spamassassin]] | * [[Spamassassin]] | ||
* [[ClamAV]] | * [[ClamAV]] | ||
+ | |||
+ | [[Category:Install]] |
Revision as of 23:06, 6 March 2016
Sending emails is important for a server. It allows the server to notify remote users (you) in can you need to do some action.
This guide will show you two different configuration options:
- Send only: Simple configuration. The server uses an external SMTP server to send emails. It can't receive emails
- Send and Receive: More complex configuration. It allows you to handle your complete email infrastructure.
Send only
Install
# apt install exim4-daemon-light bsd-mailx
Configure
Edit file /etc/exim4/update-exim4.conf.conf
dc_eximconfig_configtype='satellite'
dc_other_hostnames=''
dc_local_interfaces='127.0.0.1; ::1'
dc_readhost='example.org'
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost='smtp.example.rocks:587'
CFILEMODE='644'
dc_use_split_config='true'
dc_hide_mailname='true'
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'
Activate the new configuration using
# service exim4 reload
Test
$ echo "test" | mailx -s "test" root
You should receive the email in your mailbox
Send and Receive
TODO