[MIRRORING REPOSITORY] See https://gitlab.com/mailcare/mailcare. MailCare is an open source disposable email address services. Accessible via web browser or API to protect your privacy right now.
This is an open source disposable email address service that was built and maintained at mailcare.io.
Begin by cloning this repository to your machine, and installing all Composer & NPM dependencies.
git clone [email protected]:mailcare/mailcare.git cd mailcare && composer install && npm install php artisan mailcare:install
Next, configure your mail transfer agent (MTA) to catch all emails and route them to the php application mailcare. See bellow an example with Postfix that I personnally use.
sudo php artisan mailcare:configure-postfix /etc/postfix example.org forge
This script does 2 configurations
Replace the linemyhostname = *bymyhostname = example.orgAdd one new linesmtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destinationfor security purposes. Add one new linelocal_recipient_maps =to accept any mailbox under the domain myhostname
Add one new linemailcare unix - n n - - pipe flags=F user=forge argv=php /home/forge/example.org/artisan mailcare:email-receiveto create a new hook named mailcare Replace the linesmtp inet *bysmtp inet n - - - - smtpd -o content_filter=mailcare:dummyto call this new hook each time you receive an email
and reload Postfix.