VIDEO GUIDE / DASHBOARD

How to run a mail server on an old Android phone

Run a mail server on an old Android phone with Homedroid and Stalwart. Install the app, answer the Mail setup questions, copy the DNS records and add a mailbox. Check your internet provider’s port-25 restrictions before choosing how mail reaches you.

Dashboard setup · silent screen recording · demo data. The steps below explain the actions.

Before you start

How to run a mail server on an old Android phone: step by step

  1. Install Stalwart

    Open Modules → Mail server (Stalwart) → Install. The download is about 70 MB and installation needs about 230 MB of disk space before your mail. Setup must finish before it runs.

  2. Answer the Mail setup questions

    Open Mail. Enter Domain, Hostname and how mail reaches the phone. Use your public address or the VPS address as appropriate. For a relay, enter its server, port, credentials and SPF include value. Save and allow a few minutes for first startup.

  3. Arrange incoming delivery

    For direct or relay sending setups that receive at home, forward public port 25 to the phone’s 2525. If using a VPS, arrange its private forwarding link instead. A sending relay alone does not solve blocked inbound port 25.

  4. Copy the DNS records

    Use the Mail page’s copy buttons to add its exact A or CNAME, MX, SPF, DKIM and DMARC values at your DNS provider. Wait for records to propagate; DKIM may be pending until Stalwart starts.

  5. Check the configuration

    Select Check. Review DNS, ports, certificate and delivery checks. The check runs from the phone, so also send a message from an outside provider to test incoming delivery.

  6. Add a mailbox and connect a mail app

    Add an account on Mail and save its password. Use the client settings the page shows. At home, IMAP uses 9930 with TLS; SMTP submission uses 4650 with TLS or 2587 with STARTTLS. Test sending a reply.

Typical memory and CPU

These are the estimates shown by Homedroid, from its module resource data. Memory is resident process memory; CPU describes use while busy. Actual use depends on the phone and workload.

Typical running resources, not download or disk sizes
ModuleMemoryCPUWhat affects it
Stalwart80–200 MBlowSpam checks add a little for each message.

Good to know and troubleshooting

Read the written guide on GitHub for more detail.