maillog have unnecessary info

for example
NOQUEUE: reject: RCPT from unknown[92.126.55.192]: 550 5.1.1 <vladimir@sibautomatic.ru>: Recipient address rejected: User unknown;
 
Are you worried about your maillog getting too big (use newsyslog and limit to 100K, 1M, whatever) or about Postfix logging too much (there are some logging entries in main.cf(.default), see http://www.postfix.org/postconf.5.html -- , but you could try changing the syslog facility too (like excluding mail.crit from mail.info, but I have no idea how that would look).
 
Those information are not unnecessary. However, you can do several things. Either you grep them out, ignore, or you start maintaining a list of AS which spam you the most, or just the selected IPs / subnets. You can give 4xx code to them for example. Depends on you...
 
Back
Top