No to the first. I’m not missing any by grepping ‘unknown’ - if they are unknown users I don’t even want them in my system. Yes, it’s very strict. You have a login or you don’t. Easy.
----- Robert Chalmers https://robert-chalmers.uk https://robert-chalmers.com @R_A_Chalmers > On 6 Jul 2020, at 6:00 pm, Jerry <postfix-u...@seibercom.net> wrote: > > On Mon, 06 Jul 2020 17:58:08 +0200, Benny Pedersen stated: >> Jerry skrev den 2020-07-06 17:31: >> >>> <code snippet> >>> bzgrep -e auth=0/1 "/var/log/maillog" | sed >>> 's/.*\[\([^]]*\)\].*/\1/g' | sort -V | uniq > "/tmp/Bad_IP.txt" >>> </code snippet> >> >> sort | uniq vs sort -u, one less pipe >> >> so "sort -uV" can replace one pipe > > Thanks, Benny. I wrote that several years ago and had not looked at it > since. I will make the change. > > -- > Jerry > > "I never slept with an ugly woman, but I sure woke up with a > few."