Mail Server: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 26: | Line 26: | ||
== Postfix == | == Postfix == | ||
Web site [http://www.postfix.org PostFix] | |||
=== Installation === | === Installation === | ||
<syntaxhighlight lang="bash"apt-get install postfix</syntaxhighlight> | |||
=== Configuration === | === Configuration === | ||
# main.cf | # main.cf | ||
Line 50: | Line 52: | ||
== Open DKIM == | == Open DKIM == | ||
Web site [http://www.opendkim.org/ Open DKIM] | Web site [http://www.opendkim.org/ Open DKIM] | ||
=== Installation === | |||
<syntaxhighlight lang="bash"apt-get install opendkim</syntaxhighlight> | |||
=== Setup === | |||
For each domain: | For each domain: | ||
* Create folder <pre>mkdir /etc/opendkim/keys/domain_name </pre> | * Create folder <pre>mkdir /etc/opendkim/keys/domain_name </pre> | ||
Line 56: | Line 61: | ||
* Change Owner <pre>chown opendkim: /etc/opendkim/KeyTable/domaine_name/mail.private</pre> | * Change Owner <pre>chown opendkim: /etc/opendkim/KeyTable/domaine_name/mail.private</pre> | ||
* Copy the key (mail.txt) into the dns record. | * Copy the key (mail.txt) into the dns record. | ||
== Unbound == | |||
Web site [http://unbound.net Unbound] | |||
Not tested yet |
Revision as of 13:02, 23 May 2016
Cyrus
Installation
Install Cyrus Package
apt-get install cyrus-admin cyrus-clients cyrus-common cyrus-doc cyrus-imapd cyrus-nntpd cyrus-pop3d cyrus-sasl2-doc libcyrus-imap-perl
Install Sasl auth
libauthen-sasl-perl libgsasl7 libsasl2-2 libsasl2-modules libsasl2-modules-db sasl2-bin
Validate / Adjust the configuration
/etc/default/saslauthd
START=yes
##Postfix Rooted
OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd"
/etc/imapd.conf
admins: cyrus
sasl_mech_list: PLAIN LOGIN
defaultdomain: objclt.com
sasl_pwcheck_method: saslauthd
tls_cert_file: /etc/ssl/certs/ssl-cert-snakeoil.pem
tls_key_file: /etc/ssl/private/ssl-cert-snakeoil.key
Postfix
Web site PostFix
Installation
=== Configuration ===
# main.cf
<pre>mailbox_transport = cyrus</pre>
# master.cf
<pre>
# The Cyrus deliver program has changed incompatibly, multiple times.
cyrus unix - n n - - pipe
flags=R user=cyrus argv=/usr/sbin/cyrdeliver -e -m "${extension}" ${user}
</pre>
<pre>
mailbox_transport = lmtp:unix:/var/run/lmtp
lmtp unix - - n - - lmtp
</pre>
<pre>adduser postfix mail</pre>
saslpasswd2 -c cyrus
== Open DKIM ==
Web site [http://www.opendkim.org/ Open DKIM]
=== Installation ===
<syntaxhighlight lang="bash"apt-get install opendkim
Setup
For each domain:
- Create folder
mkdir /etc/opendkim/keys/domain_name
- Update configuration file /etc/opendkim/KeyTable
- Generate Key
opendkim-genkey -s mail -d domain_name
- Change Owner
chown opendkim: /etc/opendkim/KeyTable/domaine_name/mail.private
- Copy the key (mail.txt) into the dns record.
Unbound
Web site Unbound
Not tested yet