LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-10-2005, 06:32 PM   #1
chakkerz
Member
 
Registered: Dec 2002
Location: Brisbane, Australia
Distribution: a few...
Posts: 654

Rep: Reputation: 32
Courier-Imap + MySQL authmysqlrc passthrough editing of fields


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 ??

Last edited by chakkerz; 03-10-2005 at 06:43 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix + mysql + courier-imap + virual domains problem. jml75 Debian 2 08-12-2005 04:52 PM
Postfix + MySQL + Courier-Imap - can not find the maildir chakkerz Linux - Software 1 01-24-2005 09:32 PM
courier imap mysql problem Slim_Pikins Linux - Networking 1 10-25-2004 12:00 PM
postfix + courier-imap + mysql tej Linux - Networking 3 09-01-2004 02:43 AM
Postfix-MySQL-Courier IMAP - Permission denied abapdr Linux - Software 0 06-24-2004 03:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration