Difference between revisions of "Emails"

From wiki
(fix relay port)
(Extract content to separate pages)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
Sending emails is important for a server. It allows the server to notify remote users (you) in can you need to do some action.
+
Sending emails is important for a server. It allows it to notify you of various events (update pending, task failure, breach attempt…).
 +
 
  
 
This guide will show you two different configuration options:
 
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
+
* [[Emails/Send | Send only]]: Simple configuration. The server uses an external SMTP server to send emails. Use this if you want to just receive notification emails from a server.
* Send and Receive: More complex configuration. It allows you to handle your complete email infrastructure.
+
* [[Emails/Complete | Complete]]: A complete email infrastructure with your own SMTP and IMAP server.Including a webmail, a spam filter and an antivirus.
 
 
== Send only ==
 
 
 
=== Install ===
 
<syntaxhighlight lang="console">
 
# apt install exim4-daemon-light bsd-mailx
 
</syntaxhighlight>
 
 
 
=== Configure ===
 
Edit file <code>/etc/exim4/update-exim4.conf.conf</code><syntaxhighlight lang="ini">
 
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'
 
</syntaxhighlight>Activate the new configuration using<syntaxhighlight lang="console">
 
# service exim4 reload
 
</syntaxhighlight>
 
 
 
=== Test ===
 
<syntaxhighlight lang="console">
 
$ echo "test" | mailx -s "test" root
 
</syntaxhighlight>You should receive the email in your mailbox
 
  
== Send and Receive ==
 
{{TODO|msg = }}
 
* [[Dovecot]]
 
* [[Exim]]
 
* [[Spamassassin]]
 
* [[ClamAV]]
 
  
 
[[Category:Email Server]]
 
[[Category:Email Server]]
 
[[Category:Linux Server]]
 
[[Category:Linux Server]]

Latest revision as of 05:57, 5 April 2017

Sending emails is important for a server. It allows it to notify you of various events (update pending, task failure, breach attempt…).


This guide will show you two different configuration options:

  • Send only: Simple configuration. The server uses an external SMTP server to send emails. Use this if you want to just receive notification emails from a server.
  • Complete: A complete email infrastructure with your own SMTP and IMAP server.Including a webmail, a spam filter and an antivirus.