mail server - Custom mailing list system -
on our website use mysql table contains users. of users should able send mails users. unfortunately haven't got right idea how implement such system.
my current design:
- a privileged user writes mail
users@website.com
using personal mail software. - a server waiting incoming mails.
- as receives mail, matches 'from' field database.
- if user not found or hasn't got special flag, discard mail.
- forward mail users (mail addresses saved in database)
- send sender confirmation mail.
how can implement such system? i'm not required stick programming language though c++, php or node.js preferred.
as jumping off point, imap/smtp. can, language, log email inbox, emails, read them, etc etc etc. set mailbox account users@website.com
receives legitimate emails. set cron job checks inbox every 5 minutes or so. if no emails found, done. if there email there, process it, run checks against db, , send using smtp, , send confirmation user.
if handling imap hard, may want make form on website privileged users can use sends emails users.
Comments
Post a Comment