clean disabled users
I need to find a way to clean ezmlm-lists by comparing existing users accounts in /etc/passwd. I have a mail server running qmail and a couple of hundreds of users. When some guy leaves the company we disable his account by adding a '#' in /etc/passwd in front of his username, and the using ezmlm-unsub to unsubscribe him from a email list. There were some cases when we just disabled his unix account but forgot to unsub him so his email address will still appear in ezmlm-list. So I need something to copmare ezmlm-list output with /etc/passwd and give me only the accounts that are disables so I could then use ezmlm-unsub to unsubscribe them from lists.
A bash script I think will do the job. I waiting for some suggestions.