[xmail] Email all local accounts?

2011-11-18 Thread Fred
Hey guys, Quick question; is there a way to broadcast an email to all XMail accounts on a single server? I need to inform everyone, about 800 accounts, that I will do hardware maintenance this week-end. Thanks ___ xmail mailing list x

Re: [xmail] Email all local accounts?

2011-11-18 Thread Ivo Smits
Hi, I don't think this is directly supported. You can generate a list of e-mail addresses from the mailusers file, for example using this command on linux: cat mailusers.tab | sed -n 's/^"\([^"]*\)"\t"\([^"]*\)"\t.*$/\2@\1/p' You could write the output to a file and pass it to sendmail using

Re: [xmail] Email all local accounts?

2011-11-18 Thread Fred
Hi, Thanks for your reply, here is what I have come up with if someone else is interested. #!/usr/local/bin/php $line) { $data = explode("\t", $line); $accounts[] = substr($data[1], 1, -1) . "@" . substr($data[0], 1, -1); } return $accounts