Mail Server: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 26: | Line 26: | ||
== Postfix == | == Postfix == | ||
=== Installation === | === Installation === | ||
=== Configuration === | === Configuration === | ||
# main.cf | # main.cf | ||
Line 49: | Line 47: | ||
saslpasswd2 -c cyrus | saslpasswd2 -c cyrus | ||
==== Open DKIM ==== | |||
Web site [http://http://www.opendkim.org |Open DKIM] | |||
For each domain: | |||
* Create folder <pre>mkdir /etc/opendkim/keys/domain_name </pre> | |||
* Update configuration file /etc/opendkim/KeyTable | |||
* Generate Key <pre>opendkim-genkey -s mail -d domain_name</pre> | |||
* Change Owner <pre>chown opendkim: /etc/opendkim/KeyTable/domaine_name/mail.private</pre> | |||
* Copy the key (mail.txt) into the dns record. |
Revision as of 12:37, 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
Installation
Configuration
- main.cf
mailbox_transport = cyrus
- master.cf
# 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}
mailbox_transport = lmtp:unix:/var/run/lmtp lmtp unix - - n - - lmtp
adduser postfix mail
saslpasswd2 -c cyrus
Open DKIM
Web site |Open DKIM 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.