Tag Archives: Virtusertable

Final Virtusertable Perl Sort

As the final stage of the sorting posts, I’ve converted the original virtusertable sort to the ‘Schwartzian Transform’ with multiple sorts. Notice i create the ‘sub arrays’ with 3 items: $_[0] = “user@domain <whitespace> target” $_[1] = “domain” $_[2] = … Continue reading

Posted in FreeBSD Administration, Perl | Tagged , , , , | Leave a comment

Sorting a list of email addresses with Perl (virtusertable)

I’ve always had a mental block when sorting with Perl, but I was asked to write a quick script to sort out the /etc/mail/virtusertable file for our sendmail setup. The format of the table is as follows: <email address> (whitespace) … Continue reading

Posted in FreeBSD Administration, Perl | Tagged , , , | Leave a comment