Changes

From SME Server
Jump to navigationJump to search
624 bytes added ,  16:56, 20 September 2015
Added a "useful command" to show email disposition by TLD
Line 231: Line 231:  
grep -v "$(config get LocalIP)" |\
 
grep -v "$(config get LocalIP)" |\
 
egrep "HELO|EHLO" |\
 
egrep "HELO|EHLO" |\
awk -F"[():]" '{ print $1 "\t" $7}'
+
awk -F"[():]" '{ print $1 "\t" $7}'</nowiki>
</nowiki>
+
 
 +
===List email disposition by TLD===
 +
This command will look at your qpsmtpd log files for entries related to the TLD you enter, then tell you how those emails were handled.  This can be useful to see how your server is processing emails with From or HELO fields using TLDs like ".faith", ".win", ".xyz", etc, which are being used by spammers to bypass some spamassassin tests.
 +
 
 +
This command requires [http://wiki.contribs.org/index.php?title=Email_Statistics#qploggrep qploggrep]
 +
 
 +
<nowiki>echo -n "TLD to review: "; read TLD; qploggrep $TLD\> |tai64nlocal |awk '{print $1 " "  $2 "\t" $4 "\t" $5 "\t" $6 "\t" $7}'</nowiki>
 +
 
 
----
 
----
 
[[Category:Howto]]
 
[[Category:Howto]]
 
[[Category:Administration:Monitoring]]
 
[[Category:Administration:Monitoring]]
 
[[Category:Mail]]
 
[[Category:Mail]]

Navigation menu