Exim v4.7x implementation and DKIM
I manage a super platform to all aspects related to the mail. I am going to sprinkle our SMTP daemon:
* encryption with the use of SSL;
* redundancy / scalability / flexibility with the use of LDAP to store account information;
We need the detail installation and configuration of various software components so they can be integrated without too much difficulty in the DomainKeys Identified Mail (DKIM) . Please help.
Re: Exim v4.7x implementation and DKIM
You need to use FreeBSD. This choice is actually completely and totally arbitrary. We will also install the software from the ports that we'll use to mount the platform.Software used
It will install:
* Part Exim SMTP;
* Part OpenLDAP LDAP;
* Dovecot for the party POP / IMAP
* Apache for CGI DSPAM (in conjunction with mod_auth_imap2) ;
* Ecartis for mailing lists;
* ClamAV for anti-virus;
* Dspam for anti-spam;
* SpamAssassin for spam too;
* MySQL to store the preferences of dspam.
Re: Exim v4.7x implementation and DKIM
Exim was chosen because it is flexible, fast enough for our needs (I am not talking about installing a platform mail ISP), not too complicated to configure and has a very comprehensive documentation; Dovecot for the party POP / IMAP, because it is simple, fast, powerful, easy to configure; OpenLDAP, as is the standard LDAP directories; Apache, because I fl emme installing DSPAM CGI with another HTTP daemon (the daemon that just may do CGI); Ecartis because it is the only one with whom I bothered to read the documentation (and also because it is written in C, so fast and configurable); ClamAV, as the only free anti-spam solution to my knowledge; Dspam, because it is written in C, so ultra-fast, and because it is very powerful; SpamAssassin to wrestle some spam that dspam can not detect.
Re: Exim v4.7x implementation and DKIM
Before going into the portstree and install the software, You will add this in the / Etc / make.conf :
PHP Code:
USA_RESIDENT = No
NO_X = yes
WITHOUT_X11 = yes
WITHOUT_JAVA = yes
WITH_OPENSSL_BASE = yes
# Exim
. If $ (. CURDIR }=="/ usr / ports / mail / exim "
WITH_OPENLDAP = yes
WITH_SA_EXIM # = yes
. Endif
# Dovecot
. If $ (. CURDIR }=="/ usr / ports / mail / dovecot "
WITH_LDAP = yes
. Endif
# Apache 2.2
. If $ (. CURDIR }=="/ usr/ports/www/apache22 "
WITH_MPM = worker
WITH_LDAP = yes
WITH_LDAP_MODULES = yes
WITH_MISC_MODULES = yes
WITH_AUTH_MODULES = yes
WITH_SSL_MODULES = yes
WITH_SUEXEC_MODULES = yes
SUEXEC_DOCROOT = / usr / local / www
SUEXEC_UIDMIN = 100
SUEXEC_GIDMIN = 100
. Endif
# Dspam
. If $ (. CURDIR: M * / mail / dspam *)
DSPAM_GROUP = vmail
. Endif
Re: Exim v4.7x implementation and DKIM
The main file is the file of Exim / Usr / local / etc / exim / configure. We will copy the entire file, starting with the beginning and ending with the end (what is more logical?). It will be interspersed with various comments so you understand what each piece setup. But first, I'll tell you about the file
configuration of Exim, which is divided into several sections:
# The main configuration, which deals with general settings, such as the list of areas to be considered local, the list of areas to relay, and various other things;
# Configuring ACLs, with several LCD called at various times of the SMTP dialogue (you'll see in the example is more clear);
Re: Exim v4.7x implementation and DKIM
Routers will deal respectively send the incoming mail for a local user (or to a mailing list) in SpamAssassin, DSPAM and for marking. The mail will be as a trip Exim -> SpamAssassin -> Exim -> DSPAM -> Exim. Each time, the mail will go from a router to another, because each reinjection in Exim, the mail is playing tag with the protocol $ Received_protocol and it also performs a check on the presence of headers X-My-SA and X-Spam-Flag (Among other tests).
Re: Exim v4.7x implementation and DKIM
It may be noted Exim responsible for creating the missing directories on the deposit of mail on the filesystem. Here are two sections of the configuration file which we will not change the default values. We copied here as an example.
begin retry
* * F, 2h, 15m, G, 16h, 1h, 1.5; F, 4d, 6h
begin rewrite
The default configuration file of Exim on FreeBSD contains a number of comments on these two sections. We'll leave it up to go look for yourself.