Skip to content

Security

The database itself keeps each business's mail apart, so a bug in our app can't show your mail to another business. Here's what else protects your mail and your account, and how to report a security problem.

Last updated

Each business sees only its own mail

Every message, conversation, draft, domain, forwarding address and billing record in FlatInbox's database is labeled with the business it belongs to. The database (Postgres) then refuses to hand any of it to a request made for another business. This is called row-level security. Because the database checks it every time anything is read or changed, a mistake in one page of our app still can't show one business's mail to another.

Our app connects to the database with a login that isn't allowed to turn that rule off. Every change to the database is tested for this, and stops if the test fails. Attachments and original messages are kept in a folder per business, and a file opens only after we've checked you're on that business's team.

We don't read your mail. We look only when your team asks us to fix a problem, or when someone reports that a business on FlatInbox sent spam or phishing. The privacy page says what we keep and for how long.

Private addresses inside a team

Most addresses are shared: everyone on the team sees mail to contact@ or orders@. Any address can also be made one person's own. Say Emily Carter runs Corner Loaf Bakery and makes emily@cornerloafbakery.com hers. Mail sent only to that address is seen by Emily alone. The rest of the team, owners included, won't find it in the inbox, in search or in the unread count, and only Emily can send from it.

When someone leaves the business, their addresses become shared again, because the business's mail stays with the business.

Signing in

Account settings: a new password that has shown up in a data breach is refused.
  • A password needs at least 8 characters, and can have up to 128. We check every new password against the passwords leaked in other companies' data breaches, using Have I Been Pwned, and refuse one that's on the list. Only the first five characters of a scrambled copy of your password are sent for that check, never the password.
  • Passwords are stored scrambled (hashed), so nobody can read them, us included.
  • If you sign in with Google, Google checks it's you, with your Google password and any two-step check you've turned on there. We never see your Google password, we keep only your name and email address, and FlatInbox can't reach your Gmail, contacts or files. It works only for an address Google has confirmed is yours.
  • Sign-in allows five tries a minute from one internet address, which slows down anyone trying to guess a password. Making new accounts has the same limit.
  • You stay signed in for 30 days from your last visit. Changing your password signs you out on every other device.
  • The cookie that keeps you signed in goes only to flatinbox.com, only over an encrypted connection, and code running on a web page can't read it, so a harmful script can't steal it to sign in as you. A request that changes anything must come from flatinbox.com itself, so another website can't act for you while you're signed in.
  • We keep a record of every sign-in and password change, with the internet address and browser, and of every change to your team (who was invited, given a new role or removed), so we can trace what happened if something goes wrong.

Suspicious mail is marked before you open it

Mail for your domain arrives through Amazon SES (Simple Email Service), which checks every message on the way in. Two checks, SPF and DKIM, tell whether a message really comes from the domain it claims: SPF looks at the server that sent it, DKIM at a digital signature on it. DMARC is the sending domain's own instruction for mail that fails them. SES also looks for spam and viruses. What FlatInbox does with the results:

  • Spam goes to the Spam tab, with its images off.
  • We remove the text and attachments of a message carrying a virus. Your inbox keeps a note that it arrived and what we removed.
  • When we can't confirm the message came from the sender's domain, it carries an amber warning. If that domain's DMARC instruction is to set such mail aside or refuse it, it goes to Spam.
  • Mail forwarded to you from Gmail, Outlook, Zoho or iCloud isn't wrongly flagged. Forwarding always fails SPF, because the forwarder's server sends the message on, so those services seal a record of their own checks into it (ARC). We check that seal against the forwarder's published key, then judge the message by the seal's results.
A message from a sender we couldn't confirm: the amber warning, and its images held back until you press Show images. The supplier is made up.

Opening a message can't run anything

Before a message is shown, we remove its scripts (bits of code that would run in your browser), forms and embedded pages, then show it in a sealed-off frame where scripts can't run. If the cleaning ever misses something, the frame itself blocks it from loading.

  • Tracking pixels, the invisible images some senders use to see when you open their mail, are removed: tiny or hidden images, and images from well-known tracking services.
  • Ordinary mail shows its other images, as Gmail, Apple Mail and Outlook do, because invoices and receipts look broken without their logos. Spam, mail that carried a virus and mail from a sender we couldn't confirm show no images from the web until you press Show images.
  • Attachments open through links that work for 5 minutes. They open from Amazon's storage, not from flatinbox.com, so a harmful file someone sends you can't reach your FlatInbox account.

Sending has limits, so one business can't spoil everyone's mail

One business sending spam could push everyone's mail, yours included, into spam folders. So a new business starts with a lower daily sending limit than an established one, and the limit rises as its mail is delivered without being returned as undeliverable (bounced) or marked as spam.

If too much of a business's mail bounces or is marked as spam over 30 days, its sending pauses by itself. We pause it in two places, FlatInbox and Amazon SES, so nothing goes out even if one of them fails. The business's owners are emailed, and we turn sending back on once we've looked at what happened. The rules say what FlatInbox may be used for.

Your own mail goes out passing the SPF, DKIM and DMARC checks above for your domain, signed with your domain's own key, so the people you write to can tell it really came from you. A domain belongs to one business at a time, and only that business can send from it.

Where your data lives, and how it's protected

Your mail and attachments are stored on Amazon Web Services (AWS) in the us-east-1 region, in northern Virginia, and the database is on PlanetScale in the same area. Our website and app run on Vercel, also in the US.

  • Everything travels encrypted. Every page uses HTTPS, and your browser is told to use nothing else for flatinbox.com. Our servers reach the database and AWS only over encrypted connections, and our storage at AWS refuses any other kind.
  • It stays encrypted where it's stored, at AWS and at PlanetScale, and the storage for your mail allows no public access at all.
  • There's no AWS password or key stored on our servers for anyone to steal. Each time they need AWS, Vercel gives them a token proving they're FlatInbox's live website, and AWS swaps it for access that lasts an hour at most. That access covers only what FlatInbox needs. It can't send from any FlatInbox address except the one our account emails come from, so it couldn't be used to fake mail from us.
  • The inbox updates itself through a connection that only lets your browser hear about your own business's mail.
  • No other website can show flatinbox.com inside its own page, a trick used to make people click on things they can't see.

When something breaks, we hear about it

Every minute, a check running outside our website's hosting makes sure flatinbox.com answers and can reach the database and AWS. If it stops answering, we're alerted. Alarms also alert us when receiving mail fails or falls behind, when bounces and spam complaints across FlatInbox rise, and when the inbox stops updating by itself. The status page shows whether each part of FlatInbox is working now, and how it did over the last 90 days.

Report a security problem

If you think you've found a security problem in FlatInbox, write to hello@flatinbox.com with "Security" in the subject. Tell us what you found, the page or address involved, and the steps that make it happen. A person reads every message.

While you look, please:

  • use only your own account and businesses, and never open or change anyone else's mail;
  • don't send spam or phishing through FlatInbox, and don't try to overload it;
  • give us the chance to fix the problem before you tell anyone else.

To report spam or phishing sent by a business on FlatInbox, write to abuse@flatinbox.com instead. The Contact page lists every address and what each is for.