How to make your temporary mail service

    Not so long ago I had a need for many unique mailboxes. Manually registering them was too long and I decided to use services like tempinbox.com . But almost immediately a problem arose, not one of them approved the automatic use. After this attempt, I realized that I couldn’t get out and got into the mail settings section of my crooked VDS. As it turned out, everything is very simple.

    So, for starters, I redirected all mail from the domain to one mailbox, for example, all@example.com (this was done in the mail domains section of the ISPmanager panel). After that I wrote a simple php script running IMAP with an email server. In order to receive mail for a specific mailbox, a request is made to search by recipient.

    I think there’s nothing more to paint here, I’ll just attach an archive with scripts. There, the output is organized in the form of an RSS feed, but nothing prevents it from changing.

    download
    PS Oh yes, I almost forgot that to withdraw all letters from the mailbox you need to open something like this URL example.com/rss/samename%40example.com

    Also popular now: