php - How can create a mail server? -


i have sever able receive e-mails. want use php program way mails shown users. can purely php? mena, not problem send mails php not know if can receive mails php? (in way php receives post requests).

added

as response first answer, specify looks need smtp servers. want able communicate smtp server in programmatic way. example, want have possibility "tell" smtp server create new e-mail address. need know incoming mails stored , in format. example, how can extract "sender", "cc", "bcc" file corresponding received mail.

would have sever able receive e-mails.

if writing scratch you'll need the specification smtp. advise against this. smtp servers hard write, , there several open source solutions out there.

my understanding of php poorly when comes multithreading, isn't solution problem.

than want use php program way mails shown users

servers receive mails not typically show them users. store them in standard way (such maildir or mbox) other software (such local email client or imap server) accesses.

the job of showing email user belongs email clients. web based php web mail software includes squirrelmail , roundcube. afaik both act imap clients. see imap specification.

as response first answer, specify looks need smtp servers. want able communicate smtp server in programmatic way. example, want have possibility "tell" smtp server create new e-mail address.

pick smtp server runs on os. read instructions find out how configure delivery , accepted addresses. comes down manipulating text files.

i need know incoming mails stored , in format. example, how can extract "sender", "cc", "bcc" file corresponding received mail.

again. see manual mailserver. give options store data , in format.

then need decide if going php dig directly, or use imap server in between.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -