Hi,
I need some hints, how to create new user and email adress automatically via php/ajax form.
Is there possibility to easily trigger this action from server side via php with our python server?
Hi,
I need some hints, how to create new user and email adress automatically via php/ajax form.
Is there possibility to easily trigger this action from server side via php with our python server?
it nice to see easy user creation and user alias
yes, it's possible to trigger it with php or python.
i've built my own administration system via php and python. it can create/modify users & forwarders, and also it can show the usage by each email account.
let me know if you still need it, i can share it with you.
alphacycletech Please, share
You may download from this wetransfer link. https://we.tl/t-LmH91CtHI1
you need to create a website with subdomain
extract everything into the newly created website directory
change the info to suit yourself in config.php. the database path should be pointing to the default mailserver location which is /www/vmail/postfixadmin.db, in case your database name or path is different, you may change it.
if you have installed roundcube via the deployment tool in appstore, then you may skip this part. otherwise, you need to change the /www/vmail directory permission to allow www to access.
chmod 770 /www/vmail
chown vmail:www /www/vmail
chmod 660 /www/vmail/postfixadmin.db
chown vmail:www /www/vmail/postfixadmin.db
go to terminal, enter sudo visudo
add this line to last row of the User privilege specification, www ALL=NOPASSWD: ALL
(this step might be risky for some people, as it might expose your security to public. if you have concern regarding the security, please skip this step. this step will show you the usage by each account, if you skip this step, each account will return 0 in the usage.)
now you will be able to access the administration tool from the website url that you created in step 1.
the login is same as the 1 you created in mailserver. you need to change the user type to admin in order for the user to login.
This administration tool is not compatible with php 8.x, you will need to switch it to php 7.4 or below
It should be more than enough for those who wanna do a email hosting for multiple domains or clients. it works like a reseller function for the email hosting.
This link: "https://we.tl/t-LmH91CtHI1" cannot download anymore, Could you please update the link ? Or do you have any solution to link postfixadmin to aapanel ?
hongduong_1995 hi, you may get it from https://we.tl/t-YsfV7mshEB, I've tried to install postfixadmin on my aapanel, but failed to link it. The aapanel mailserver user directory stored in sqlite3, but postfixadmin is mysql. I didn't spend much time exploring it.
alphacycletech
Can you share your code with me?
delvan_sousa https://we.tl/t-CHNfuNOWAb it will expire in 7 days. You just need to follow the steps mentioned above and you will be able to manage your emails without accessing aapanel.
alphacycletech
Thank you very much for your help.
Your code will help me a lot, since I don't want to give aaPanel access to inexperienced people. Thanks again.
Good morning, sorry to bother you.
I already changed the config.php file and did a test. The page runs normally. The problem is that I can't log in with an email administrator account.
It shows this error.
[You've entered the wrong username or password!]
Do I need to change any other files?
Thank you in advance.
did you follow the step from 1-4? is the email account set as admin in user type?
I am sorry, I did not remember your post on how to proceed with the installation. I will perform the steps and get back to you with the result.
Hi can share your code with me it will be very useful.
Thanks
please share the webadmin code.. will be very thank ful to you.
bharath
@alphacycletech please share the webadmin code to create email accounts.
thanks.
bharath
link not work
hi , the link expired.. please share a new link plz..
thank you so much