Hi,
i'm currently writing a configuration tool for postfix virtual tables. Right 
now each new mailalias/account is appended to the postfix "virtual"-file, 
which works fine. There are checks if there is already a domain-placeholder 
like "#mydomain.com" in that file, if not one is appended plus a 
"mydomain.com anything" entry. Afterwards the mailalias is appended.

example file:
#mydomain.com
mydomain.com                    anything
[EMAIL PROTECTED]                tlx
....

Since everything is appended to the file, it easily turns human-unreadable. 
E-mail addresses for a single domain are spread all over the file. It lacks a 
sorting like:

#newdomain.com
newdomain.com                   anything
<addresses ...>

#somewhere.com
somewhere.com                   anything
<addresses ...>

Can this be accomplished via a sort-routine or should i change the way values 
are written to that file?
Any help is appreciated

Thanks Thomas Leuxner

Reply via email to