mail_addr field [split from (HowTo) Replace courier with dovecot]
Hi!
I moved my complete email-handling to mysql - I changed to dovecot before and moved to postfix-mysql-handling additional so that the hash-files are not needed any longer.
In the database there is a mail_addr field, but its not filled in by ispcp. When it would provide the mail adresse all the nasty joins between mail and domain tables would be past us ;-)
the mail_id has to be patch into the passwd-plugin - but there are more things to change.
With the mail_address field thing would be *far* easier.
I'd suggest: make use of mail_address and then we can provide a webmail including password change (then the idea of including squirrel with ispCP makes (little) more sense...)
/J
PS: Sure I can commit this into the trunk... when it's ready..
My first tests were ok - 3 adresses (normal dom, alias & subdomain).
at the moment we only use the field mail_addr for normal mail accounts (no forwardings and catchall) - but for the sql phrases maybe it should be kept in mind that maybe sometime also the forwards have an entry in mail_addr. So there should also be another check if we only want the real mail accounts - let's choose the best...
mail_pass != _no_
mail_forward = _no_ (beware -> catchall)
mail_type = %\_mail
Please check the new client/add_mail_acc.php - for all installations since december at least...
If it's ok, we need an update script :-)
some sort of php piece to go through the table and set all mail_addr for the mail accounts till today...
/Joxi
2008-03-16 ispCP RC4 released!!!
02-19-2008 10:53 AM
Zothos
Member
Posts: 621
Group: Dev Team
Joined: Feb 2007
Status:
Offline Reputation: 7
My patch im currently wirking on is mostly the same as yours. Could you make a patch out of it if you have tested it?
So i can concentrate on my update functions.
Im currently creating a gui for this. Every DB update could take place there.
More informations in the dev forum when im ready Should be ready by the end of the week.
Real programmers don't comment their code - it was hard to write, it should be hard to understand
OS : Gentoo 32bit Stage1
ispCP Version : RC4
Mods : Dovecot | Pure-ftpd