MailServer Configuration

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

MailServer Configuration (autodiscover, SPF, DKIM)

#Before you install your NethServer


 Please consider a server must have FQDN 38
# when you run hostname -f it must return something like SERVER.DOMAIN.TLD
 And your DNS zone must look something like this
A @ 1.2.3.4
A server1.domain.tld. 1.2.3.4
CNAME mail. server1.domain.tld.
#After you installed your Nethserver
autodiscover
 simply add a CNAME with autodiscover and point it to your mailserver
###exemple
CNAME autodiscover. mail.domain.tld.
SPF
 add a TXT entry
exemple
TXT @ "v=spf1 a:domain.tld mx ?all"
DKIM
# amavisd genrsa /etc/pki/tls/private/YOUR_DOMAIN-dkim.key.pem
# chgrp amavis /etc/pki/tls/private/nethesis-dkim.key.pem
# chmod g+r /etc/pki/tls/private/nethesis-dkim.key.pem
# mkdir -p /etc/e-smith/templates-custom/etc/amavisd.conf

add those lines into /etc/e-smith/templates-custom/etc/amavisd.conf/95dkim

# filippo enable dkim


$enable_dkim_verification = 1;
$enable_dkim_signing = 1;
dkim_key(‘nethesis.it 3’, ‘dkim’, ‘/etc/pki/tls/private/nethesis-dkim.key.pem’);
@dkim_signature_options_bysender_maps = (
{ ‘.’ => { ttl => 21243600, c => ‘relaxed/relaxed’ } } );

Edit your DNS


# amavisd -u amavis -g amavis showkeys

 make a TXT with this info


###exemple
TXT dkim._domainkey "v=DKIM1; k=rsa; " “p=…OpenDKIMKey…”

##Restart service
# signal-event nethserver-mail-server-update

##Test your mail configuration

 http://mxtoolbox.com 112
 http://www.mail-tester.com 167
you should have a result like this : http://www.mail-tester.com/web-N15aFH 111

You might also like