Creating/Deleting email addresses

Discussion in 'Developers' Forum' started by djtremors, Aug 30, 2006.

  1. djtremors

    djtremors ISPConfig Developer

    Hi all,

    sorry if this is a simple answer or mentioned before and I couldn't find it but I want to know which file handles the creation/editing and deletion of email accounts (ie. creates the virtusertable, etc)?

    I want to add my own twist and auto put Squirrelmail preferences with the users full name and proper email address so they reply correctly and not with web1_user etc..

    My german sucks, sorry. ;)
  2. djtremors

    djtremors ISPConfig Developer

    I really hate it when I can't find things and then message the forum only to find it soon later.

    I assume it's ispconfig_isp_user.lib.php

    I'll see how i go.
  3. falko

    falko Super Moderator

    If you use Postfix, take a look at /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, if you use Sendmail have a look at ispconfig_sendmail.lib.php.
  4. djtremors

    djtremors ISPConfig Developer

    yeah thanks for that, i'll keep note of it.

    I think I'll put the changes into : ispconfig_isp_user.lib.php
    in functions user_update(), function user_delete() and function user_insert()

    I actually just tried it and I can't find where the isp_isp_user table is linked to the domain it's from as I need to be able to figure out the email address but this table doesn't have the domain or the ID of the domain it's from as far as I can see.

    any help, thanks.
    Last edited: Sep 1, 2006
  5. falko

    falko Super Moderator

    isp_isp_user is linked to isp_isp_web over the isp_dep and isp_nodes table.
  6. djtremors

    djtremors ISPConfig Developer

    LOL... i give up, can I get a quick relationship or even easier, a SELECT/JOIN list to retreive the full email address of the user?

  7. falko

    falko Super Moderator

    The function make_virtusertable() in /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php should give you some hints.

Share This Page