Een voorbeeld van mijn oude sendmail configuratie. Deze bevat stukken die alleen werken op sendmail 8.12!
Gaarne aanpassen voor gebruik! De volgende zaken waren specifiek voor mijn configuratie of zijn aardige voorbeelden om even te benoemen:
- VERSIONID(`Setup for Fedora Core 1 (sendmail 8.12) on 2003-12-26')dnl
Versie nummer in JJJJ-MM-DD notatie.
- MASQUERADE_AS(vanderkooij.org)
Ik verstop mijn machines allemaal achter het domain 'vanderkooij.org' zodat uitgaande email van een correct adres is voorzien.
- define(`SMART_HOST',`smtp.xs4all.nl')dnl
Ik lever alle email af aan de relay machine van XS4ALL. Een fiks aantal machines blokkeert email uit de zogenaamde 'Dial-UP' netwerken waar mijn ADSL aansluiting dus ook onder valt.
- FEATURE(`delay_checks',`friend')dnl
Wacht met de blacklist checks tot ik weet naar wie het bericht gaat. Zo kan ik de postmaster en abuse box uitsluiten van de normale blacklists.
- FEATURE(dnsbl, `ipwhois.rfc-ignorant.org',`"550 5.7.1 Mail from " $&{client_addr} " refused. Rejected for bad WHOIS info on the IP address of your email server - see http://www.rfc-ignorant.org/tools/lookup.php?domain="$&{client_addr}" - I will not accept email from servers I can not contact in case of trouble."')
Voorbeeld van een externe blacklist waar ik de foutmelding compleet voorzie van een up-to-date URL die wijst naar de blacklist entry.
- LOCAL_RULESETS
# Kludgy way to block messages to hvdkooij@xs1.xs4all.nl (and similar)
# Instructional note:
# The format for the rule is
# RExactly the thing you want to quote
# No quote marks, no tabs, absolutely nothing in
# parentheses (like this, they're considered comments
# and will be removed before they get to the rules).
# After the exact thing, then a tab, and the $#error.
# Note, the $* matches anything, so it's useful for
# wildcarding. This also scans all messages with
# Subject: headers and invokes a rule, so there is
# a performance hit.
HReceived: $>check_XS4ALL
D{MPatXS1}hvdkooij@xs1.xs4all.nl
D{MPatXS2}hvdkooij@xs2.xs4all.nl
D{MPatXS3}hvdkooij@xs3.xs4all.nl
D{MPatXS4}hvdkooij@xs4.xs4all.nl
D{MPatPOP}hvdkooij@pop.xs4all.nl
D{MMsg}This email address is only abused by JUNK email senders.
Scheck_XS4ALL
R$* ${MPatXS1} $*$#discard $: discard
R$* ${MPatXS2} $*$#discard $: discard
R$* ${MPatXS3} $*$#discard $: discard
R$* ${MPatXS4} $*$#discard $: discard
R$* ${MPatPOP} $*$#discard $: discard Een specifiek stukje om alle berichten weg te gooien die ik door krijg maar die per definitie SPAM zijn.
- sendmail.mc
- Source file
- sendmail.cf
- Sendmail configuration file
- mkaccess
- Shell script
- Makefile
- Make file
This page has not been translated to English. As it is a historic page I do not expect to do so either.
