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?

a year later

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.

    You may download from this wetransfer link. https://we.tl/t-LmH91CtHI1

    1. you need to create a website with subdomain

    2. extract everything into the newly created website directory

    3. 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.

    4. 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

    5. 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.

      8 months later

      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.

      10 months later

      alphacycletech

      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.

      alphacycletech

      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.

      19 days later

      Hi can share your code with me it will be very useful.
      Thanks

      8 months later

      please share the webadmin code.. will be very thank ful to you.

      bharath

      8 days later

      hi , the link expired.. please share a new link plz..

      thank you so much