cyrus et sendmail
cyrus-imapd-utils-2.4.17-7.el7.x86_64
cyrus-sasl-md5-2.1.26-17.el7.x86_64
cyrus-sasl-2.1.26-17.el7.x86_64
cyrus-sasl-lib-2.1.26-17.el7.x86_64
cyrus-imapd-2.4.17-7.el7.x86_64
cyrus-sasl-plain-2.1.26-17.el7.x86_64
sendmail-8.14.7-4.el7.x86_64
sendmail-cf-8.14.7-4.el7.noarch
1. dns
(spf etc)
2. /etc/imapd.conf
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: cyrus
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail
hashimapspool: true
sasl_pwcheck_method: auxprop
sasl_mech_list: CRAM-MD5 PLAIN LOGIN
allowplaintext: no
allowanonymouslogin: no
defaultdomain: zaclys.net
servername: mail.zaclys.net
tls_cert_file: /etc/pki/cyrus-imapd/zaclys_net.pem
tls_key_file: /etc/pki/cyrus-imapd/zaclys_net.pem
tls_ca_file: /etc/pki/tls/certs/zaclys_net.crt
3. /etc/mail/sendmail.mc
divert(-1)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`setup for linux')dnl
OSTYPE(`linux')dnl
define(`confDEF_USER_ID', ``8:12'')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST', `True')dnl
define(`confDONT_PROBE_INTERFACES', `True')dnl
define(`PROCMAIL_MAILER_PATH', `/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
define(`STATUS_FILE', `/var/log/mail/statistics')dnl
define(`UUCP_MAILER_MAX', `2000000')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confMAX_MESSAGE_SIZE',100000000)dnl
define(`confSMTP_LOGIN_MSG',"Zaclys helo")dnl
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
define(`confAUTH_OPTIONS', `A p')dnl
define(`confME_TOO', `false')dnl
TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confCACERT_PATH', `/etc/pki/tls/certs')dnl
define(`confCACERT', `/etc/pki/tls/certs/zaclys_net.crt')dnl
define(`confSERVER_CERT', `/etc/pki/tls/certs/zaclys_net.pem')dnl
define(`confSERVER_KEY', `/etc/pki/tls/certs/zaclys_net.pem')dnl
define(`confTO_IDENT', `0')dnl
define(`confDELAY_LA',`4')dnl
FEATURE(`no_default_msa', `dnl')dnl
FEATURE(`smrsh', `/usr/sbin/smrsh')dnl
FEATURE(`mailertable', `hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable', `hash -o /etc/mail/virtusertable.db')dnl
FEATURE(`genericstable')dnl
GENERICS_DOMAIN_FILE(`/etc/mail/local-host-names')
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
FEATURE(local_procmail, `', `procmail -t -Y -a $h -d $u')dnl
FEATURE(`access_db', `hash -T<TMPF> -o /etc/mail/access.db')dnl
FEATURE(`blacklist_recipients')dnl
define(`confLOCAL_MAILER', `cyrusv2')dnl
define(`CYRUSV2_MAILER_ARGS', `FILE /var/lib/imap/socket/lmtp')dnl
DAEMON_OPTIONS(`Port=smtp,Addr=188.165.53.39, Name=MTA')dnl
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
CLIENT_OPTIONS(`Addr=188.165.53.39')dnl
DAEMON_OPTIONS(`Port=submission,Addr=188.165.53.39, Name=MSA, M=Ea')dnl
DAEMON_OPTIONS(`Port=smtps,Addr=188.165.53.39, Name=TLSMTA, M=s')dnl
FEATURE(`dnsbl', `bl.spamcop.net', `"550 Spam blocked see: http://spamcop.net"')dnl
FEATURE(`dnsbl',`cbl.abuseat.org', `"550 Spam blocked see: http://abuseat.org"')dnl
FEATURE(`relay_hosts_only')dnl
LOCAL_DOMAIN(`localhost.localdomain')dnl
FEATURE(`masquerade_envelope')dnl
MASQUERADE_AS(`zaclys.net')dnl
MASQUERADE_DOMAIN(`zaclys.net')dnl
FEATURE(`masquerade_entire_domain')
MAILER(smtp)dnl
MAILER(procmail)dnl
MAILER(cyrusv2)dnl
4. SPF et DKIM
https://www.rosehosting.com/blog/how-to-install-and-integrate-opendkim-with-postfix-on-a-centos-6-vps/
sendmail m4 :INPUT_MAIL_FILTER(`opendkim', `S=inet:8891@localhost')
3 132 clics - Créé le 27/08/2014 14:52 par MereZaclys - Modifié le 14/10/2014 14:24