Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 23rd August 2009, 10:23
Skprorok Skprorok is offline
Member
 
Join Date: Jun 2009
Posts: 56
Thanks: 8
Thanked 0 Times in 0 Posts
Lightbulb How to add new e-mail user without using ISPConfig Control Panel

Can someone tell me please how I can add e-mail user without using controlpanel?

1. I need to add user to /var/vmail/domain.com/username
2. I need to add user to mysql (Can you tell me what is password hash in table "mail_user" ?)

Something else?
Reply With Quote
Sponsored Links
  #2  
Old 23rd August 2009, 11:01
Franz Franz is offline
Senior Member
 
Join Date: Jul 2009
Location: Cakovec
Posts: 117
Thanks: 7
Thanked 24 Times in 18 Posts
Send a message via Skype™ to Franz
Default

Quote:
Originally Posted by Skprorok View Post
Can someone tell me please how I can add e-mail user without using controlpanel?

1. I need to add user to /var/vmail/domain.com/username
2. I need to add user to mysql (Can you tell me what is password hash in table "mail_user" ?)

Something else?
only add username to mysql database.
creating directory /var/vmail/domain.com/username is done automaticly by postfix when first email come.
__________________
my PAGE
VoIP
my IT help blog
Reply With Quote
  #3  
Old 23rd August 2009, 11:06
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,771
Thanks: 821
Thanked 5,331 Times in 4,183 Posts
Default

Thats not enough. It will work partly as the user is able to recive emails, but e.g. things like quota will not work and get not initilaized and it will fail completely on multiserver systems. You have to also add a serialized object which contains the cahnges of the record in the sys_datalog table. The next release will ofer a remoting framework api for this.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #4  
Old 23rd August 2009, 11:47
Skprorok Skprorok is offline
Member
 
Join Date: Jun 2009
Posts: 56
Thanks: 8
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till View Post
Thats not enough. It will work partly as the user is able to recive emails, but e.g. things like quota will not work and get not initilaized and it will fail completely on multiserver systems. You have to also add a serialized object which contains the cahnges of the record in the sys_datalog table. The next release will ofer a remoting framework api for this.
So is there any solution to create mail user through PHP?
Reply With Quote
  #5  
Old 23rd August 2009, 11:49
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,771
Thanks: 821
Thanked 5,331 Times in 4,183 Posts
Default

Use the database libraries and functions from ispconfig like datalogUpdate and datalogInsert.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 23rd August 2009, 12:16
Skprorok Skprorok is offline
Member
 
Join Date: Jun 2009
Posts: 56
Thanks: 8
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till View Post
Use the database libraries and functions from ispconfig like datalogUpdate and datalogInsert.
Maybe this question is offtopic, but can I change password hash what is used in `mail_user` table?
Reply With Quote
  #7  
Old 23rd August 2009, 12:19
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,771
Thanks: 821
Thanked 5,331 Times in 4,183 Posts
Default

No, the hash can not be changed without cahnging several libraries in ISPConfig. ISPConfig uses crypt with salt which is the most widely used hashing algorithm on Linux systems.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #8  
Old 25th August 2009, 21:59
Skprorok Skprorok is offline
Member
 
Join Date: Jun 2009
Posts: 56
Thanks: 8
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till View Post
Use the database libraries and functions from ispconfig like datalogUpdate and datalogInsert.
And where I can find these functions?

Last edited by Skprorok; 26th August 2009 at 09:02.
Reply With Quote
  #9  
Old 26th August 2009, 14:13
Horfic Horfic is offline
Senior Member
 
Join Date: Mar 2009
Location: Austria
Posts: 324
Thanks: 55
Thanked 93 Times in 58 Posts
Send a message via Skype™ to Horfic
 
Default

Quote:
Originally Posted by Skprorok View Post
And where I can find these functions?
Under interface/lib/classes/db_mysql.inc.php

Starting at row: 221
__________________
web wack creations - We create your custom web application
Mailuser interface for ISPConfig 3
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Undelivered Mail Returned to Sender Error202 General 5 7th May 2009 11:14
localhost postfix/master: fatal: bind 127.0.0.1 port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 17:39
Help configure Postfix to use alt port 465 or 587 BoloMarkIII Installation/Configuration 10 16th March 2009 17:57
Postfix problem: lost connection after CONNECT from unknown fernando_torrez Server Operation 5 30th November 2007 14:17
Can not recieve mail with de virtual mail adress Mounir Installation/Configuration 9 24th July 2006 23:16


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


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