connection

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const SenderscoreCounter = "senderscore"

SenderscoreCounter is name for senderscore counter

Variables

View Source
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

View Source
var SpamEatingMonkeyReverseIPBlackLists = []string{
	"bl.spameatingmonkey.net",
	"backscatter.spameatingmonkey.net",
}

SpamEatingMonkeyReverseIPBlackLists lists to check IP against databases

View Source
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

View Source
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

func Whitelist

func Whitelist(ipAddressesToAccept []string) func(transaction *msmtpd.Transaction) error

Whitelist prevents connecting from remote addresses in not present in list

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL