简体   繁体   中英

create mail account on server via php

i have programmed small mail reader script

and linked it with my website script

My question is

i want allow my website users to make them mail on my server

IMAP email on my domain

Question is:

How to create email on server via php

i searched in imap library and found no thing

thank you and sorry for my language!

That depends entirely on your configuration. I, for example, use Postfix with Dovecot and have MySQL store the users. If I want to add a user, I simply run INSERT INTO MAIL.USERS ('un@domain', ENCRYPT('password')) . I got a couple of different sets of instructions here .

Of course, this was for CentOS, so you may need to do a bit more research.

$str = 'adduser user1';

exec($str);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM