What issue or error are you experiencing?
I’m using Local 10.2.0 on macOS with Mailpit 1.24.1.
After switching Router Mode to localhost, my WordPress site and database listen only on loopback addresses. However, Mailpit continues listening on all network interfaces:
-
0.0.0.0:10000 (Web UI/API)
-
0.0.0.0:10001 (SMTP)
I confirmed that Local launches Mailpit with the following environment variables:
MP_UI_BIND_ADDR=0.0.0.0:10000
MP_SMTP_BIND_ADDR=0.0.0.0:10001
I would like to restrict Mailpit to 127.0.0.1 without modifying Local’s internal application files.
What steps can be taken to replicate the issue?
-
Start Local 10.2.0 on macOS.
-
Switch Router Mode to localhost under Preferences → Advanced.
-
Start a local WordPress site.
-
Check Mailpit’s listening addresses using
lsof. -
Observe that Mailpit still binds to 0.0.0.0 on ports 10000 and 10001.
Questions
-
Is there an officially supported way to bind Mailpit’s Web UI and SMTP services to localhost only?
-
Can Mailpit be disabled independently while keeping WordPress running?
-
Will the configuration persist after restarting or updating Local?
-
Is there a recommended workaround or planned fix?
Thank you for your assistance.
What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc
System Details
-
Local Version:
-
Operating System (OS) and OS version:
Local Logs
Attach your Local Logs here (Help Doc - Retrieving Local’s Log)
Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.