HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Developers' Forum (http://www.howtoforge.com/forums/forumdisplay.php?f=18)
-   -   Creating/Deleting email addresses (http://www.howtoforge.com/forums/showthread.php?t=6525)

djtremors 30th August 2006 15:12

Creating/Deleting email addresses
 
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. ;)

djtremors 30th August 2006 16:32

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.

falko 1st September 2006 00:19

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.

djtremors 1st September 2006 06:45

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.

falko 2nd September 2006 16:56

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

djtremors 4th September 2006 14:42

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?

thx.

falko 5th September 2006 20:09

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


All times are GMT +2. The time now is 01:28.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.