Old 27th April 2011, 17:53
K_meleonu K_meleonu is offline
Senior Member
Join Date: May 2006
Posts: 112
Thanks: 1
Thanked 5 Times in 4 Posts
Default How to add mail users

Hi there to all,
I have a Linux server with Fedora 12 and ISPConfig 2 installed.
I have installed AfterLogic Webmail on to another server and now i want to make a php script (like a registration form) to add eMail users on the Fedora server.
Can anyone tell me how to do this? I mean, where i have to insert the informations.
I have tryied to add an user with adduser from ssh and i even added user@domain.tld into /etc/postfix/virtusertable but i cannot use it.

The AfterLogic documents are here: http://mailserver.crazydesign.biz/adminpanel/docs/ if anyone want to see how it works.
I hope you understand what i want to do and if anyone has questions of answers wich could help please post them.

Thank you all in adwance
Reply With Quote
Sponsored Links
Old 27th April 2011, 18:02
K_meleonu K_meleonu is offline
Senior Member
Join Date: May 2006
Posts: 112
Thanks: 1
Thanked 5 Times in 4 Posts
Default Found a solution

Hi there to all,
I have found a solution.
After adding the user with adduser on the Fedora server i had to create a Maildir in /home/USER/
Now it all work's great.
Now i will have to create a php script to add the user on ther server and i will modify the /etc/skell to create /home/USER/Maildir in the moment i add the user.

If you have any questions or sugestions please post them.

Best regards
Reply With Quote
Old 27th April 2011, 18:18
till till is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts

And why havent you just used ispconfig? There is no need to add any users manually or edit any files when ispconfig is installed on your server, just login to ispconfig and add the user trough ispconfig.

Make sure that you enabled the maildir checkbox in ispconfig server settings.

If you want to add users from your own script as well, then use the ispconfig remoting framework for that.

Till Brehm
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Old 27th April 2011, 20:49
K_meleonu K_meleonu is offline
Senior Member
Join Date: May 2006
Posts: 112
Thanks: 1
Thanked 5 Times in 4 Posts

Hi there till,
Thank you for your answer.
I don't want to use ISPConfig because i want to make a registration form and make it available to anyone.
So anyone could register for an account. Like yahoo, msn, etc.

Now i have another problem with MySQL.

I have:
$mailu = ($Userdorit,"@", $Domeniu);
this should take the user, add the @ and the selected domain from the list and results user@domain.tld

Then i want to insert this in my mysql DB.

For mysql insertion i have this:
$query="insert into awm_accounts (friendly_nm,signature,id_acct,id_user,def_acct,ma il_inc_login,mail_inc_host,mail_inc_pass,mail_out_ pass,deleted,mail_protocol,mail_inc_port,email) values ('".$Nume."','".$Prenume."','".$hits[0]."','".$idul."','".$unu."','".$Userdorit."','".$Do meniu."','".$Parola."','".$RepetaParola."','".$zer o."','".$zero."','".$ununuzero."','".$mailu."')";

Notice: for email field i have $mailu

But when i try to process the form, instead of inserting the values into mysql table and show the thank you page i get a blank page and no values inserted into mysql.

I have triyed some trick's but nothing worket untill now.
Can you please give me a solution or a hint?

Thank you in advance

I have solved the problem. I had to modify $mailu = ($Userdorit,"@", $Domeniu); into $mailu = ("$Userdorit@$Domeniu");

Last edited by K_meleonu; 27th April 2011 at 21:36. Reason: SOLVED
Reply With Quote
The Following User Says Thank You to K_meleonu For This Useful Post:
falko (28th April 2011)


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
ISPconfig postfix not relaying outgoing attachments mychoice2009 Installation/Configuration 3 13th April 2011 18:42
mail authentication failure - unknown user or password evok Installation/Configuration 9 16th October 2010 07:37
sneaking suspicion my postfix config has gone awry mjbarfoot Installation/Configuration 7 24th August 2010 13:23
procmail can't write Hellbound General 27 8th June 2009 22:51
Junk mail and spamassassin... sthompson Installation/Configuration 4 27th December 2006 17:11

All times are GMT +2. The time now is 15:46.

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