informatique:reseau:exim4
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédenteProchaine révisionLes deux révisions suivantes | ||
informatique:reseau:exim4 [04/06/2020 17:29] – cyrille | informatique:reseau:exim4 [11/08/2021 16:26] – [DKIM] typo cyrille | ||
---|---|---|---|
Ligne 7: | Ligne 7: | ||
* [[/ | * [[/ | ||
+ | Documentation: | ||
* [[http:// | * [[http:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
===== Tips & Tricks ===== | ===== Tips & Tricks ===== | ||
- | ===== fallback (wildcard) alias | + | ==== fallback (wildcard) alias ==== |
In ''/ | In ''/ | ||
Ligne 59: | Ligne 60: | ||
< | < | ||
- | / | + | exim4 -M |
- | / | + | exim4 -qf => Force another queue run |
- | / | + | exim4 -qff => Force another queue run and attempt to flush the frozen message |
- | / | + | exim4 |
- | / | + | exim4 |
- | / | + | exim4 |
- | / | + | exim4 -Mrm messageID |
- | / | + | exim4 |
- | / | + | exim4 -bpr | grep “<” | wc -l =>Number of emails in the que |
- | / | + | exim4 -bpr | grep frozen | wc -l => How many Frozen mails on the queue |
# Deleteing Frozen Messages | # Deleteing Frozen Messages | ||
- | $ sudo / | + | $ sudo exim4 -bpr | grep frozen | awk {' |
</ | </ | ||
Ligne 79: | Ligne 80: | ||
no immediate delivery: more than 10 messages received in one connection | no immediate delivery: more than 10 messages received in one connection | ||
- | '' | + | '' |
change (or add) line: smtp_accept_queue_per_connection=30 | change (or add) line: smtp_accept_queue_per_connection=30 | ||
update config: '' | update config: '' | ||
+ | |||
+ | That's all. | ||
+ | |||
+ | View new config: '' | ||
+ | |||
+ | ====== Configuration ====== | ||
+ | |||
+ | Smarthost + TLS : | ||
+ | * https:// | ||
+ | * [[https:// | ||
+ | |||
+ | |||
+ | ===== DKIM ===== | ||
+ | |||
+ | Cet exemple pour '' | ||
+ | |||
+ | Générer les clés: | ||
+ | <code bash> | ||
+ | $ openssl genrsa -out dkim.key 2048 | ||
+ | $ openssl rsa -in dkim.key -out dkim.pub -pubout -outform PEM | ||
+ | </ | ||
+ | |||
+ | Publier la clé publique sur le DNS | ||
+ | |||
+ | < | ||
+ | default._domainkey.domain.tld. 60 DKIM " | ||
+ | </ | ||
+ | |||
+ | Configurer exim4 dans ''/ | ||
+ | <code bash> | ||
+ | MAIN_TLS_ENABLE=1 | ||
+ | REMOTE_SMTP_SMARTHOST_HOSTS_REQUIRE_TLS=* | ||
+ | |||
+ | DKIM_DRIVER=smtp | ||
+ | DKIM_DOMAIN=domain.tld | ||
+ | # | ||
+ | DKIM_SELECTOR=default | ||
+ | DKIM_CANON=relaxed | ||
+ | DKIM_PRIVATE_KEY=/ | ||
+ | </ | ||
+ | |||
+ | Générer la config et informer le service: | ||
+ | <code bash> | ||
+ | $ sudo update-exim4.conf | ||
+ | $ sudo systemctl reload exim4.service | ||
+ | </ | ||
informatique/reseau/exim4.txt · Dernière modification : 11/08/2021 19:35 de cyrille