Re: THANKS - Re: [CentOS] [OT] List of all email users

2008-11-04 Thread Jussi Hirvi
Les Mikesell ([EMAIL PROTECTED]) kirjoitteli (3.11.2008 16:05): _And_ keep in mind that you are going to get replies and probably spam to this address. So you'll probably want to turn on the moderation feature of the list. Instead I keep that alias commented out except when I want to send

THANKS - Re: [CentOS] [OT] List of all email users

2008-11-03 Thread Jussi Hirvi
Thanks Mouss and others. I have now more than enough to get on with. mouss ([EMAIL PROTECTED]) kirjoitteli (2.11.2008 19:39): why comma? isn't LF better (one user per line)? LF or comma, it doesn't matter much. I said comma, because I am going to utilize the list to build one huge alias

Re: THANKS - Re: [CentOS] [OT] List of all email users

2008-11-03 Thread mouss
Jussi Hirvi wrote: Thanks Mouss and others. I have now more than enough to get on with. mouss ([EMAIL PROTECTED]) kirjoitteli (2.11.2008 19:39): why comma? isn't LF better (one user per line)? LF or comma, it doesn't matter much. I said comma, because I am going to utilize the list to build

Re: THANKS - Re: [CentOS] [OT] List of all email users

2008-11-03 Thread Les Mikesell
mouss wrote: Jussi Hirvi wrote: Thanks Mouss and others. I have now more than enough to get on with. mouss ([EMAIL PROTECTED]) kirjoitteli (2.11.2008 19:39): why comma? isn't LF better (one user per line)? LF or comma, it doesn't matter much. I said comma, because I am going to utilize the

Re: [CentOS] [OT] List of all email users

2008-11-02 Thread mouss
Jussi Hirvi wrote: This is not CentOS-specific, hence OT. I need a list of all email users on my system (there are hundreds of them). The list could be extracted from /etc/aliases and the virtusertable. Does anyone know of a script that would do this automatically? It would have to - exclude

Re: [CentOS] [OT] List of all email users

2008-10-31 Thread Jussi Hirvi
John R Pierce ([EMAIL PROTECTED]) kirjoitteli (30.10.2008 17:39): and what about the user accounts in /etc/passwd ? Hm, yes, never thought of that! That would be a very good (certainly easy) approach, though with its own limitations (it misses those users whose mail is forwarded in /etc/aliases

Re: [CentOS] [OT] List of all email users

2008-10-31 Thread Bill Campbell
On Fri, Oct 31, 2008, Jussi Hirvi wrote: John R Pierce ([EMAIL PROTECTED]) kirjoitteli (30.10.2008 17:39): and what about the user accounts in /etc/passwd ? Hm, yes, never thought of that! That would be a very good (certainly easy) approach, though with its own limitations (it misses those users

[CentOS] [OT] List of all email users

2008-10-30 Thread Jussi Hirvi
This is not CentOS-specific, hence OT. I need a list of all email users on my system (there are hundreds of them). The list could be extracted from /etc/aliases and the virtusertable. Does anyone know of a script that would do this automatically? It would have to - exclude commented-out lines

Re: [CentOS] [OT] List of all email users

2008-10-30 Thread Ralph Angenendt
Jussi Hirvi wrote: This is not CentOS-specific, hence OT. I need a list of all email users on my system (there are hundreds of them). The list could be extracted from /etc/aliases and the virtusertable. Does anyone know of a script that would do this automatically? It would have to -

Re: [CentOS] [OT] List of all email users

2008-10-30 Thread John R Pierce
Jussi Hirvi wrote: For real-world use, I guess the source files (in my case aliases, virtusertable) should be prepared first - the list will include unwanted users like bin or mysql, mailing list name defined in virtusertable, and possibly other strange things too. and what about the user

Re: [CentOS] [OT] List of all email users

2008-10-30 Thread Ralph Angenendt
Jussi Hirvi wrote: Ralph Angenendt ([EMAIL PROTECTED]) kirjoitteli (30.10.2008 17:12): for i in /etc/aliases /etc/postfix/virtual; do cat $i | grep -Ev (^#|^\s+$|^$) | sed -e s/:// | awk '{print $1}' | \ sort -u | tr \\n , done Thanks, that looks neat, and works. For real-world use, I