eMail Server: Version 3
$mynetworks (see /etc/postfix/main.cf).
This is always the case if you use the web frontend for sending messages.http://www.abuse.net/ (though we can not make any statement
regarding the reliability of the service).
abuse@domain.com (insert the header of the SPAM message),
domain.com being the domain of the first (correct) mail server.
The administrator of this domain should take care of the problem./etc/postfix/header_checks.man 5 pcre_table). Example:/^(To|From):*friend@(public.com|localhost.net)/ REJECT /^From:.*infowatch\.net/ REJECT /^To: ListMembers@theneffect/ REJECT
/etc/postfix/main.cf and insert the following line:header_checks = pcre:/etc/postfix/header_checks
rcpostfix reload
/etc/postfix/body_checks.man 5 pcre_table). Example:/^Hi! How are you/ REJECT /(usa\.net|hotmail\.com|yahoo\.com)\?subject=remove/ REJECT /(filename|name)=".*\.(asd|chm|exe|doc|dll|hlp|hta|js|ocx|pif)"/ REJECT
/etc/postfix/main.cf and insert the following line:body_checks = pcre:/etc/postfix/body_checks
rcpostfix reload
/etc/postfix/access and add rules as follows:
#Blocking a domain, no host of this domain (including subdomains) is permitted to submit mail spammers.com REJECT #Blocking an individual IP address with error notification to the sender 213.95.15.200 550 Keep your SPAM #Blocking an entire subnet (213.95.x.x) 213.95 REJECTHelp is provided in the comments in the file or on the manpage
man 5 accesspostmap /etc/postfix/access
rcpostfix reload
/etc/postfix/main.cf and insert the following lines.
Modify the rbl_domains to the server(s) you want to use.
Before you do so, check which servers are available.
Some servers are subject to registration and payment of a fee.
The servers used in this example may not work!smtpd_helo_restrictions = reject_maps_rbl maps_rbl_domains = blackholes.mail-abuse.org, relays.osirusoft.comReload the configuration:
rcpostfix reload
Activating SMTP Authentication To Other Mail Servers (Postfix)SDB-rsimai_imap_content_filter)