custom reject message

Julien LepillerWed Mar 11 17:07:46+0100 2020

20d057d

custom reject message

modules/config/mail.scm

5757
# instead of /etc/passwd.
5858
table passwd file:/etc/mail/passwd
5959
60+
table other-relays file:" relays-file "
61+
table blacklist file:" blacklist-file "
62+
63+
# A simple spam filter
64+
filter spam-filter phase mail-from match mail-from <blacklist> reject \"555 Your spam level is over NINE THOUSAND!\"
65+
6066
# port 25 is used only for receiving from external servers, and they may start a
6167
# TLS session if the want.
62-
listen on " interface " port 25 tls pki lepiller.eu
68+
listen on " interface " port 25 tls pki lepiller.eu filter spam-filter
6369
# For sending messages from outside of this server, you need to authenticate and
6470
# use TLS.
6571
listen on " interface " port 587 tls-require pki lepiller.eu mask-src auth <passwd>

7682
# If you edit the file, you have to run \"smtpctl update table aliases\"
7783
table aliases file:" aliases-file "
7884
79-
table other-relays file:" relays-file "
80-
table blacklist file:" blacklist-file "
81-
8285
# We define some actions
8386
action receive maildir virtual <aliases>
8487
action outbound relay

9194
# Then, we reject on some other conditions:
9295
9396
# If the mail tries to impersonate us
94-
#match ! from src <other-relays> from any mail-from \"@lepiller.eu\" for any reject
97+
match !from src <other-relays> mail-from \"@lepiller.eu\" for any reject
9598
# If it comes from someone on the blacklist
9699
match from any mail-from <blacklist> reject
97100