Hello there
I'm setting up a mailserver and need to import into it a pletora of accounts from an older Imail configuration. I have a few non-unique user IDs (though unique under their domain).
for example there is a
bob@domain1.com and a
bob@2nddomain.org
i was figuring i can make the id the mail gets routed to unique by routing it to the entire email address as the ID, but at the same time i would love to maintain the login by username (ie bob) only.
My delivery runs through postfix and is working swell, the user access is handle by courier. I figure a standard:
echo id | cut -d @ -f1
should do the trick, but i can get that to work.
Is there a way to get authmysqlrc to hold some sort of instruction to split the ID field at the @ symbol. There is a concat command, surely there is something to do something (relatively) reverse.
I have checked google, the homepage and such, so i am hoping for experience
Thanks in advance.
Edit: I just noticed that concat is a Tcl function ... any way of adding to it maybe to make a function that does what i want to do ??