Documentation ¶
Index ¶
- Constants
- Variables
- func Blacklist(ipAddressesToBlock []string) func(transaction *msmtpd.Transaction) error
- func CheckByReverseIPBlacklists(tolerance uint32, lists []string) msmtpd.ConnectionChecker
- func DenyPTRs(listOfPtrSuffixes []string) msmtpd.ConnectionChecker
- func RequireSenderScore(minimalSenderScore uint) msmtpd.ConnectionChecker
- func Whitelist(ipAddressesToAccept []string) func(transaction *msmtpd.Transaction) error
Constants ¶
const SenderscoreCounter = "senderscore"
SenderscoreCounter is name for senderscore counter
Variables ¶
var SorbsReverseIPBlacklists = []string{
"dnsbl.sorbs.net",
"problems.dnsbl.sorbs.net",
"proxies.dnsbl.sorbs.net",
"relays.dnsbl.sorbs.net",
"safe.dnsbl.sorbs.net",
"nomail.rhsbl.sorbs.net",
"badconf.rhsbl.sorbs.net",
"dul.dnsbl.sorbs.net",
"zombie.dnsbl.sorbs.net",
"block.dnsbl.sorbs.net",
"escalations.dnsbl.sorbs.net",
"http.dnsbl.sorbs.net",
"misc.dnsbl.sorbs.net",
"smtp.dnsbl.sorbs.net",
"socks.dnsbl.sorbs.net",
"spam.dnsbl.sorbs.net",
"recent.spam.dnsbl.sorbs.net",
"new.spam.dnsbl.sorbs.net",
"old.spam.dnsbl.sorbs.net",
"web.dnsbl.sorbs.net",
}
SorbsReverseIPBlacklists lists to check IP against databases
var SpamEatingMonkeyReverseIPBlackLists = []string{
"bl.spameatingmonkey.net",
"backscatter.spameatingmonkey.net",
}
SpamEatingMonkeyReverseIPBlackLists lists to check IP against databases
var SpamhauseReverseIPBlackLists = []string{
"pbl.spamhaus.org",
"sbl.spamhaus.org",
"sbl-xbl.spamhaus.org",
"xbl.spamhaus.org",
"zen.spamhaus.org",
}
SpamhauseReverseIPBlackLists lists to check IP against databases
var SpamratsIPBlacklists = []string{
"all.spamrats.com",
"auth.spamrats.com",
"dyna.spamrats.com",
"noptr.spamrats.com",
"spam.spamrats.com",
}
SpamratsIPBlacklists lists to check IP against databases
Functions ¶
func Blacklist ¶
func Blacklist(ipAddressesToBlock []string) func(transaction *msmtpd.Transaction) error
Blacklist prevents connecting from remote addresses in list
func CheckByReverseIPBlacklists ¶
func CheckByReverseIPBlacklists(tolerance uint32, lists []string) msmtpd.ConnectionChecker
CheckByReverseIPBlacklists checks Transaction IP address against Reverse IP Blacklists provided. If IP address presents in lists more times than tolerance, connection is blocked
func DenyPTRs ¶
func DenyPTRs(listOfPtrSuffixes []string) msmtpd.ConnectionChecker
DenyPTRs allows to deny senders if their PTR records has suffix from list, for example, we can restrict all Amazon Simple Email Service by providing suffix "amazonses.com.",
func RequireSenderScore ¶
func RequireSenderScore(minimalSenderScore uint) msmtpd.ConnectionChecker
RequireSenderScore is connection checker which breaks connection if remote IP senderscore is too low. 0 - no info 0 - 70 You need to repair your email reputation. Your IP has been flagged for engaging in risky sending behaviors and your email performance could be suffering because of it. 70 - 80 You have a fine IP reputation score, but there’s room for improvement. Continue to follow industry best practices and optimize your email program. 80+ A history of healthy sending habits has resulted in a great email reputation. Good senders can get recognized and rewarded for their sending
Types ¶
This section is empty.