Moin, moin, ...
"Daniel Bauer"
Die Mails nehme ich mit Sendmail an. Ich möchte für verschiedene Domains verschiedene Regeln aufstellen.
Ich habe mir ein sendmail selber gebastelt und habe folgende Einstellungen in meiner Datei sendmail.mc aus der ich die sendmail.cf bastele. Natürlich ohne die führenden ">" ;-)
divert(0)dnl VERSIONID(`$Id: generic-linux.mc,v 8.1 1999/09/24 22:48:05 gshapiro Exp $') OSTYPE(linux)dnl DOMAIN(generic)dnl define(`confSMTP_LOGIN_MSG', `MeFie MailServer; $b') define(`confBIND_OPTS', `-DNSRCH -DEFNAMES')
FEATURE(`nocanonify')dnl FEATURE(`always_add_domain')dnl FEATURE(`virtusertable', `hash /etc/mail/virtusertable')dnl FEATURE(`mailertable', `hash /etc/mail/mailertable')dnl FEATURE(`genericstable', `hash /etc/mail/genericstable')dnl FEATURE(`domaintable', `hash /etc/mail/domaintable')dnl FEATURE(access_db)dnl
FEATURE(blacklist_recipients)dnl FEATURE(`dnsbl', `relays.ordb.org', `"451 Temporary lookup failure for " $&{client_addr} " in relays.ordb.org"')dnl FEATURE(`dnsbl', `spews.relays.osirusoft.com', `"451 Temporary lookup failure for " $&{client_addr} " in spews.relays.osirusoft.com"')dnl
TRUST_AUTH_MECH(`DIGEST-MD5 PLAIN LOGIN')dnl define(`confAUTH_MECHANISMS', `DIGEST-MD5 PLAIN LOGIN')dnl define(`confDEF_AUTH_INFO', `/etc/mail/auth/auth-info')dnl
DAEMON_OPTIONS(`Port=25, Name=MSA, M=E')dnl
MAILER(local)dnl MAILER(smtp)dnl
Der Server macht eine Abfrage bei relays.ordb.org und spews.relays.osirusoft.com auf offene Relays und Dial-UP-IPs von denen ich keine eMails annehme. Des weiteren habe ich folgende /etc/mail/access Natürlich ohne die führenden ">" ;-)
127 RELAY
# Basic faults by TLD kr 550 TLD KR is rejected because of too much SPAM. Contact mewes@spamcop.net for details. tv 550 TLD TV is rejected because of too much SPAM. Contact mewes@spamcop.net for details. nu 550 TLD NU is rejected because of too much SPAM. Contact mewes@spamcop.net for details. tw 550 TLD TW is rejected because of too much SPAM. Contact mewes@spamcop.net for details. cn 550 TLD CN is rejected because of too much SPAM. Contact mewes@spamcop.net for details. jp 550 TLD JP is rejected because of too much SPAM. Contact mewes@spamcop.net for details. ru 550 TLD RU is rejected because of too much SPAM. Contact mewes@spamcop.net for details. pt 550 TLD PT is rejected because of too much SPAM. Contact mewes@spamcop.net for details. se 550 TLD SE is rejected because of too much SPAM. Contact mewes@spamcop.net for details.
# Known Spammer domains internetseer.com 550 InternetSeer.Com is rejected because of too much SPAM! Contact mewes@spamcop.net for details. #trafficmagnet.com 550 TrafficMagnet.Com is rejected because of too much SPAM! Contact mewes@spamcop.net for details. #condomi.com 550 Condomi.Com is rejected because of too much SPAM! Contact mewes@spamcop.net for details. #tripod.es 550 Tripod.Es is rejected because of too much SPAM! Contact mewes@spamcop.net for details. #tripod.de 550 Tripod.DE is rejected because of too much SPAM! Contact mewes@spamcop.net for details. #cable.ntl.com 550 cable.ntl.com is rejected because of SPAM. Contact mewes@spamcop.net for details. #sympatico.ca 550 sympatico.ca is rejected because of too much SPAM! Contact mewes@spamcop.net for details.
# Single Spammer IP's
66.217.114.22 550 This IP is rejected because of SPAM. Contact mewes@spamcop.net for details. tripod.fr 550 Tripod.Fr is rejected because of too much SPAM! Contact mewes@spamcop.net for details.
# Single eMail-Adresses
info@homeconnect.de 550 This eMail-Adress has been disabled because of too much Virus-Warnings. Please clean up your system and come back to mewes@spamcop.net if you are done with this. 4schanzen@sport1.at 550 This eMail-Adress has been disabled because of too much Virus-Warnings. Please clean up your system and come back to mewes@spamcop.net if you are done with this.
Einige TLDs blocke ich ab, weil ich von dort keine eMails zu erwarten habe. Der Rest sollte selbst erklärend sein. hth kind regards Martin Mewes -- Novacote Flexpack - Division of COIM Deutschland GmbH c/o IT/IS-Department - Hamburg - Germany