Self-host an email receiver
Run your own pAutofill receiver, connect your domain and get email verification codes in your browser.
The receiver creates an email alias for each website. It accepts mail sent to that alias, extracts a verification code and sends it encrypted to your open setup tab. You can keep using your existing mailbox.
If someone runs the receiver for you, ask them privately for the receiver URL and your owner token, then connect the extension.
Start the receiver locally
On a 64-bit Intel or AMD Linux server (glibc 2.28 or newer), download the Rust receiver for Linux. Extract it and open the directory:
tar -xzf receiver-1.0.0-linux-x86_64.tar.gz
cd pautofill-receiverOn macOS or another Linux architecture, download the receiver source. Install Rust 1.98 or newer and a C toolchain, then build it:
tar -xzf receiver-1.0.0-source.tar.gz
cd pautofill-receiver
cargo build --release --locked
cp target/release/pautofill-receiver .Choose a dedicated subdomain you control for real mail. You can use the example domain to try creating an alias locally. In the receiver directory, run:
export PAUTOFILL_MAIL_DOMAIN=codes.example.com
export PAUTOFILL_DB="$PWD/pautofill.sqlite"
./pautofill-receiver issue-token
./pautofill-receiver serveSave the token printed by issue-token privately. Each run creates a new owner. Keep the database file across restarts so existing tokens and aliases keep working.
Leave the service running. In another terminal on the same computer, run curl http://127.0.0.1:47833/healthz. A running receiver replies ok. Your local receiver URL is http://127.0.0.1:47833 when the browser runs on this computer.
Enable delivery from the internet
Receiving mail from a website or Gmail requires a server reachable on TCP port 25. Run the service on that server using the domain and database you chose above.
- In DNS, point the MX record for your alias subdomain (for example,
codes.example.com) to the receiver hostname (for example,receiver.example.com) with priority 10. Point that hostname’s A record to your server’s public IPv4 address. Add an AAAA record only if the server accepts IPv6 mail. Keep your main mailbox’s MX records intact. - Install a TLS certificate for the receiver hostname. Set the following environment variables before starting the service. Replace the paths with your certificate chain and private key. Route public TCP port 25 to port 2525 on this server. The SMTP listener requires STARTTLS.
export SMTP_HOST=0.0.0.0
export SMTP_PORT=2525
export SMTP_CERT=/path/to/fullchain.pem
export SMTP_KEY=/path/to/privkey.pem
./pautofill-receiver serveStop the earlier local process first if it is running on this server. Configure your service manager to keep this process running with the same settings.
For browsers on other computers, serve HTTPS on the receiver hostname and reverse proxy to http://127.0.0.1:47833. Disable proxy buffering and caching for the live stream, and disable request and response body logging. Check that https://receiver.example.com/healthz returns ok from the browser. Use your own hostname in that URL.
Connect the extension
- Return to the email setup tab. Enter the HTTPS website where you will fill a code.
- Under Use a self-hosted receiver, enter the receiver URL (just the origin, without
/healthz) and the owner token. Select Get alias and listen and approve the requested site access. - Copy the alias. Use it as the email address on the website, or follow the Gmail forwarding steps to send just that website’s verification emails to the alias.
- Keep the setup tab connected, request a fresh code on the website and click the suggestion under its verification field.
If a code doesn’t arrive
If setup cannot create an alias, check the health URL and confirm the token was issued against the running service’s database. If alias creation works but mail bounces, check the alias subdomain’s MX record, port 25 routing and SMTP certificate. If mail was accepted while the tab was disconnected, reconnect and request a fresh code. The receiver discards ordinary messages after processing.