URL: https://linuxfr.org/forums/linux-debutant/posts/opensmtpd
Title: opensmtpd
Authors: electro575
Date: 2020年01月29日T23:25:12+01:00
License: CC By-SA
Tags:
Score: 0
Bonjour à tous,
J'ai suivi la configuration opensmtpd de ce site.
https://rodolphe.breard.tf/post/tuto-email-opensmtpd-dovecot/
Il y a des erreurs de syntaxe en gras mais je ne vois pas pourquoi !
J'ai mis les lignes entre * phrase de code *
```sh
# signed by dkimproxy
listen on lo port 10028 tag DkimOut
# filtered by amavisd
listen on lo port 10025 tag Clean
#
# Tables
# If you edit a file, you have to run "smtpctl update table
"
#
table aliases "/etc/smtpd/aliases"
table shitlist "/etc/smtpd/shitlist"
#
# Actions
#
**action local_deliver lmtp "/run/dovecot/lmtp" alias **
action to_amavisd relay host smtp://127.0.0.1:10024
action to_dkimproxy relay host smtp://127.0.0.1:10027
action relay_out relay helo example.org
#
# Matches
#
# Reject emails from banned domains
#match from any mail-from for any reject
# Deliver local emails
**match action local_deliver**
match for domain "example.org" action local_deliver
match from any auth for domain "example.org" action local_deliver
# Deliver filtered emails
**match from any tag Clean for domain "example.org" action local_deliver**
# Send unfiltered emails to amavisd
**match from any for domain "example.org" action to_amavisd**
# Relay outgoing emails when signed
**match from any tag DkimOut for any action relay_out**
# Send outgoing unsigned emails to dkimproxy
**match for any action to_dkimproxy**
match from any auth for any action to_dkimproxy
```
Le message d'erreur d'opensmtpd est le suivant,
```
root@mail:~# smtpd -vvvd -f /etc/smtpd.conf
/etc/smtpd.conf:XX: syntax error
/etc/smtpd.conf:XX: syntax error
/etc/smtpd.conf:XX: syntax error
/etc/smtpd.conf:XX: syntax error
/etc/smtpd.conf:XX: syntax error
/etc/smtpd.conf:XX: syntax error
warn: no rules, nothing to do
```