Install guide
Installing Peep
Each step ends with what you should see. If the output doesn't match, stop there and fix that step before moving on.
Peep Web
Before you start
Peep Web sets itself up in your browser. It runs on ordinary cPanel shared hosting as well as on your own Linux server, and the basic install needs no shell and no root.
- PHP 8.1 or newer with
pdo_sqlite,mbstring,iconv,opensslanddom. On your own server,pcntlandposix(thephp-processpackage on Rocky and RHEL) let the push service run one process per mailbox. The setup page checks all of it for you. - HTTPS on the site, since your PIN and your mail pass through it.
- Outbound access from the server to your mail providers on ports 993 (IMAP) and 465 or 587 (SMTP).
- PHP's curl extension so your server can fetch pictures in mail for you (most hosts have it). Without it, pictures stay hidden behind a button.
- GnuPG 2.2 or newer for encrypted mail (OpenPGP). Optional; Settings → Server tells you if it's missing.
1. Make a folder
Make a folder for Peep in your website, named something only you would guess. Avoid peep, mail or webmail: bots try those on every site. Or give Peep a whole subdomain. Choose the name now, because the push service's command includes it.
2. Upload and unzip
On cPanel: download Peep Web, upload the zip into the new folder with the File Manager, and choose Extract. The files unpack loose, straight into the folder.
With a shell: set PEEPDIR to the folder, then download and unzip the latest release into it:
PEEPDIR=/var/www/html/your-folder mkdir -p "$PEEPDIR" && curl -L -o /tmp/peep-web.zip "https://peep.moe/download.php?get=web" && unzip -o /tmp/peep-web.zip -d "$PEEPDIR" && chown -R apache:apache "$PEEPDIR"
If unzip isn't found, install it with dnf install -y unzip. On Debian and Ubuntu the web user is www-data instead of apache.
3. Open it and choose your PIN
Go to the folder's address, for example https://yourdomain.com/your-folder/. Peep checks PHP, asks whether you can type commands on the server, finds a place for its data, and has you choose a PIN (4 to 12 digits). Once the PIN is set, setup is closed.
Peep keeps everything in its own folder: its data goes in data/, which its .htaccess closes to the web, and setup checks from outside that it really is closed. Only on a web server that ignores .htaccess does the data go next to the website instead (for example /home/you/peep-data). On a server where PHP can't write anything, such as a VPS where root unpacked the files, the page shows one command to run from Peep's folder first:
cd "$PEEPDIR" && sudo php bin/peepctl.php init --user=apache
Then reload the page and choose the PIN in the browser.
4. Start the push service
The push service keeps each mailbox connected, delivers new mail live, runs your rules, sends scheduled mail and reminder emails, and keeps the server's copy of your mail current, even when no browser is open. The setup page shows exactly what to paste for your server, with a copy button, and ticks when it's running.
On cPanel (no shell): open Cron Jobs, choose Once Per Minute under Common Settings, paste the command from the setup page into Command and click Add New Cron Job. It looks like this, with your folder filled in:
cd '/home/you/public_html/your-folder' && /usr/local/bin/php bin/peepd.php --cron >/dev/null 2>&1
Each run starts the service only if it isn't already running, and it stops by itself after 55 minutes so the next run takes over. Only one ever runs at a time.
On your own server, as root: run it as a service. First add the packages for one process per mailbox and for encrypted mail, then the service itself:
dnf install -y php-process gnupg2 && systemctl restart php-fpm
PEEPSVC="peepd-$(basename "$PEEPDIR")" cat > "/etc/systemd/system/$PEEPSVC.service" <<EOF [Unit] Description=Peep push service (peepd) for $PEEPDIR After=network-online.target Wants=network-online.target [Service] User=apache WorkingDirectory=$PEEPDIR ExecStart=/usr/bin/php bin/peepd.php Restart=always RestartSec=5 [Install] WantedBy=multi-user.target EOF systemctl daemon-reload && systemctl enable --now "$PEEPSVC" && sleep 10 && php "$PEEPDIR/bin/peepctl.php" status
The service is named after the folder (peepd-your-folder). The setup page and Settings → Server show it with your folder and web user already filled in. Without root, use the cron job instead; the page gives you a one-line command to add it.
5. Add a mailbox
- Sign in with your PIN. Peep checks the rest of the server: HTTPS, upload limits, SELinux, outgoing connections and the push service. For anything missing it lists the commands for your system, ready to copy. The same check stays under Settings → Server.
- Choose Add a mailbox and type the email address. Gmail, AOL, Verizon, Yahoo, iCloud and Outlook.com fill in their server settings for you. For anyone else, look up your provider on the provider settings page.
- Enter the password. Most providers need an app password here, not your normal one. Outlook.com, Hotmail and Microsoft 365 have no password at all: click Sign in with Microsoft and enter the code Peep shows at microsoft.com/link.
- Click Test & save. Peep logs in to IMAP and SMTP before saving.
setsebool -P httpd_can_network_connect 1. Settings → Server checks this and shows the command when it's needed.php bin/peepctl.php unlock from Peep's folder clears the wait at once.Moving from a Peep app
Already set up in Peep for Windows, Mac or Linux? You don't have to type your mailboxes in again.
- Install Peep Web and set the PIN, but don't add any mailboxes.
- In the app, open Settings → Peep server → Link, enter the server's address and the web PIN.
- Because the server is empty, Peep offers Move this PC to the server. Choose it.
The mailboxes go up with their passwords, along with rules, contacts, notes, calendar, tasks and settings. Afterwards the app gets those mailboxes from the server like any linked device, and keeps the mail it had already downloaded.
Debian and Ubuntu
- Packages:
apt install unzip gnupg php8.1-fpm php8.1-sqlite3 php8.1-mbstring php8.1-xml(use your PHP version's number), then restartphp8.1-fpm. - Apache runs as
www-data: usechown -R www-data:www-data,--user=www-dataandUser=www-datain the service. - There's no SELinux to set up by default.
Updating Peep Web
Unzip the newest release over the old one, in the same folder. Your settings, mailboxes and PIN are kept: they live in config.php and the data folder, which the package doesn't include. On cPanel, upload and extract it with the File Manager the same way; the cron job picks up the new version within the hour. With a shell:
PEEPDIR=/var/www/html/your-folder curl -L -o /tmp/peep-web.zip "https://peep.moe/download.php?get=web" && unzip -o /tmp/peep-web.zip -d "$PEEPDIR" && chown -R apache:apache "$PEEPDIR" && (systemctl restart "peepd-$(basename "$PEEPDIR")" 2>/dev/null || systemctl restart peepd)
Reload the page with Ctrl+F5. The version at the bottom of the sidebar should show the new number.
Peep Web in Docker
Install with Docker
The image carries Peep with its own Apache and PHP 8.4, and runs the push service itself. It works on any Linux server with Docker, on regular PCs and ARM machines alike (Raspberry Pi, Oracle Cloud's free tier, Apple-silicon Macs). Everything Peep keeps is in one folder, peep-data.
Save the compose file
Make a folder for Peep, and in it a file named
docker-compose.ymlwith this in it. SetTZto your time zone.services: peep: image: ghcr.io/peep-moe/peep:latest container_name: peep restart: unless-stopped ports: - "8080:80" volumes: - ./peep-data:/data environment: TZ: America/New_YorkStart it
From that folder:
docker compose up -d
Docker downloads Peep and starts it.
docker compose psshould showpeepas running.Choose your PIN
Open
http://your-server:8080. The setup page checks the server and goes straight to choosing your PIN. Once it's set, the page ticks The push service is running on its own: there's nothing to install. Then add your mailboxes as in step 5.
HTTPS and proxies
The container serves plain HTTP on port 80 (8080 on your server with the file above). Before using Peep over the internet, put it behind HTTPS with the reverse proxy you already use (Caddy, Traefik, Nginx Proxy Manager, or a Cloudflare tunnel), pointed at port 8080.
Then make Peep reachable only through the proxy, and tell Peep the proxy's exact address, so its PIN limits see each real visitor instead of the proxy. In the compose file, change the port line and add the address under environment:, then run docker compose up -d again:
ports:
- "127.0.0.1:8080:80"
environment:
PEEP_TRUSTED_PROXIES: "172.17.0.1"127.0.0.1 keeps everyone but the proxy on this machine away from Peep's port. 172.17.0.1 is how Peep usually sees a proxy on the same machine; use your proxy's own address if it's elsewhere. List one address, never a range: whatever is listed is trusted to say who the visitor is.
Updating and backups
Settings → About → Check for updates says when a new version is out. To update, from Peep's folder:
docker compose pull && docker compose up -d
Your mail, settings and PIN stay: they're in peep-data, which a new image never touches. Security fixes, in Peep or in PHP itself, come out the same way.
To back up, copy the peep-data folder (or use Settings → Backups). To move to another server, copy the folder and docker-compose.yml there and run docker compose up -d.
Locked out by too many wrong PINs:
docker compose exec -u www-data peep php bin/peepctl.php unlock
Peep for Windows
Install
There are two downloads. Most people want the installer.
Run the installer
Download the installer zip,
peep-setup-<version>.zip, from the download page, open it and runpeep-setup-<version>.exeinside. It installs Peep for your Windows user only, with no administrator rights and no prompt, into%LOCALAPPDATA%\Programs\Peep. You get a Start menu entry, an optional desktop icon, and Peep in Apps & features for uninstalling.Signed by its publisher
Peep for Windows is code-signed, so Windows shows a verified publisher instead of "Unknown publisher". If SmartScreen still says "Windows protected your PC" while the new signature builds its reputation, click More info, then Run anyway.
Start Peep
From the Start menu. Your mail, settings, notes and PIN are kept in
%LOCALAPPDATA%\Peep, locked to your Windows user.
peep-portable-<version>.zip, needs no install. Unzip it anywhere, even on a USB stick, and run peep.exe. While the data folder next to it is there, Peep keeps everything in that folder, so the whole folder can move to another PC. Delete data before the first run to use %LOCALAPPDATA%\Peep instead. Saved passwords are encrypted for your Windows user, so on another PC you type them again.First run
- Choose a PIN. The PC stays unlocked for 14 days after you last used it (change it in Settings → General → Stay unlocked). Lock it any time with Ctrl+L.
- Add a mailbox. Type the address; known providers fill in their settings. Use an app password where your provider needs one. Outlook.com, Hotmail and Microsoft 365 sign in with Microsoft instead: click Sign in with Microsoft and enter the code at microsoft.com/link. Then click Test & save.
- Optional: in Settings (the gear at the top left), turn on Start with Windows, keep it in the tray when closed, and choose notifications, themes and undo send.
peep.exe --reset-pin from the folder it's in. This also removes saved mailbox passwords and the server link; the mail already on the PC stays.Link to your Peep server
If you also run Peep Web, the app can get its mailboxes from your server instead of logging in to your mail servers itself. This works the same on Windows, Mac, Linux and Android.
- Open Settings → Peep server → Link.
- Type your server's address, for example
yourdomain.com/peep. - Enter your web PIN once. The server gives this device its own key; the PIN isn't stored.
- Tick the server mailboxes you want on this device. If the server has no mailboxes yet, you can instead move this PC to the server.
Server mailboxes come over without their passwords; notes, contacts, calendar, tasks and rules are shared. Encrypted mail works on server mailboxes with nothing to set up on the device. Read how linking works for what happens to mailboxes you already have.
For a company's Peep Enterprise server, the app asks for your username as well as your PIN, or the setup code from your admin the first time. If you change your PIN there, your linked computers and phones lock until you type the new PIN on each; nothing has to be linked again. A company can also set an idle lock, after which the app asks for its PIN.
Updating and removing
To update, open Settings → About → Check for updates. If there's a newer version, Download and install fetches it from peep.moe, checks it against its SHA-256, installs it and reopens Peep; unsent mail is offered as drafts first. Peep only checks when you click. A portable copy gets a Download button for the new zip instead. You can also run the newer installer yourself. It replaces only peep.exe in the folder Peep is already in, with no questions, and your mail and settings stay. A running Peep is closed first, and it offers to save unsent mail as drafts. For a portable copy, choose its folder in the installer, or copy the new zip's peep.exe over the old one and keep your data folder.
To remove, uninstall Peep from Apps & features. Your mail and settings stay unless you tick Also delete my mail, settings and PIN. For a portable copy, quit from the tray and delete its folder. If the PC was linked, unlink it first, or remove it from the web app's Settings → Devices afterwards.
Peep for Mac
Install
The easiest way is the Mac App Store: search for Peep Mail or follow the link, click Get, and the App Store keeps it up to date. To install it yourself instead, one download runs on every Mac: Intel Macs on macOS 10.15 Catalina or newer, and Apple silicon Macs (M1 and later) on macOS 11 Big Sur or newer.
Download and copy to Applications
Download the disk image,
peep-mac-<version>.dmg, from the download page and open it. Drag Peep into your Applications folder.Open it
Peep for Mac is signed with Peep's Developer ID and notarized by Apple, so it opens like any other app. The first time, macOS confirms that you want to open an app downloaded from the internet: click Open.
Set your PIN and add mailboxes
The same as on Windows: see First run. Saved passwords are kept in your Mac's Keychain.
To update, quit Peep and replace it in Applications with the new disk image's copy; your mail and settings stay. To remove, quit Peep and drag it from Applications to the Trash. To link it to your server, see Link to your Peep server.
Peep for Linux
Install
Peep for Linux is the same app as Peep for Windows, built for the Linux desktop. It installs for your user only, so no root or sudo is needed.
| Distro | Minimum version |
|---|---|
| Ubuntu (and Kubuntu, Xubuntu, Pop!_OS, Zorin) | 18.04 |
| Linux Mint | 19 |
| Debian | 9 |
| Fedora | 26 |
| RHEL / CentOS | 7 |
| Rocky / AlmaLinux | 8 |
| openSUSE Leap | 15 |
| Arch, Manjaro, EndeavourOS, openSUSE Tumbleweed | current |
One build covers any 64-bit (x86_64) Linux desktop from about 2017 on with GTK 3.22 or newer: GNOME, KDE, Cinnamon, XFCE or MATE. OpenSSL is built in, so there's nothing extra to install.
Download, unpack and install
Open a terminal and paste this. It downloads the latest release, unpacks it and runs its installer:
cd ~/Downloads && curl -L -o peep-linux.tar.gz "https://peep.moe/download.php?get=linux" && tar xzf peep-linux.tar.gz && cd "$(tar tzf peep-linux.tar.gz | head -1)" && ./install.sh # → Peep installed: /home/you/.local/bin/peep (also in your applications menu).Or download the tar.gz from the download page, unpack it, and run
./install.shin the folder it makes.Open Peep
Find Peep in your applications menu, or run
~/.local/bin/peep. The installer puts the program in~/.local/bin, adds a menu entry and an icon, and makes Peep available as your mail app formailto:links.
First run
Everything works the same as on Windows: choose a PIN, add your mailboxes (with an app password where your provider needs one), and optionally link to your Peep server from Settings → Peep server → Link.
- Saved passwords are encrypted with a key kept in your desktop's keyring (GNOME Keyring or KWallet). Without a keyring, the key is kept in a file only your user can read.
- The tray icon shows on KDE, Cinnamon, XFCE and MATE. On GNOME, install the AppIndicator extension to get it. Desktop notifications work everywhere.
- Start when you sign in is in Settings. It adds Peep to
~/.config/autostart. - Your mail and settings live in
~/.local/share/peep. - Start options:
peep --traystarts in the tray without a window.
~/.local/bin/peep --reset-pin. This also removes saved mailbox passwords and the server link; the mail already on the PC stays.If it doesn't start
Run it from a terminal to see the error, and check for missing libraries:
~/.local/bin/peep ldd ~/.local/bin/peep | grep "not found"
A normal desktop install already has everything Peep needs (GTK 3 and libcurl). On a minimal or server install, add them:
Fedora, Rocky, AlmaLinux, RHEL
sudo dnf install gtk3 libcurl
Ubuntu, Mint, Debian
sudo apt install libgtk-3-0 libcurl4
Arch, Manjaro, EndeavourOS
sudo pacman -S gtk3 curl
openSUSE
sudo zypper install libgtk-3-0 libcurl4
If the installer says ~/.local/bin isn't on your PATH, Peep still works from the applications menu. Signing out and back in usually adds it.
Updating and removing
To update, run the same install command again. It installs the new version over the old one; your mail and settings stay. A running Peep keeps going until you close it, and the new version starts next time.
To remove, run the uninstaller from the unpacked folder. Your mail stays in ~/.local/share/peep until you delete that folder too. If the PC was linked, unlink it first, or remove it from the web app's Settings → Devices afterwards.
./install.sh --uninstall
Peep for Android
Install
Android 8 or newer, on phones, tablets and Chromebooks. Peep isn't in the Play Store; you install it from peep.moe.
Download the APK on the phone
Open peep.moe/download.php in the phone's browser and tap Download on Peep for Android. If the browser warns that the file may be harmful, choose Download anyway.
Allow the install
Open the downloaded file. The first time, Android asks you to allow installs from your browser: tap Settings, turn on Allow from this source, and go back. If Google Play Protect says the app is unknown, tap More details → Install anyway.
Set up Peep
Choose a PIN (fingerprint unlock works after that), then either add mailboxes on the phone itself or link to your Peep server with its address and PIN. Allow notifications so new mail can show up.
- Push mail with the app closed: Android shows a small "Peep is connected" notification while Peep keeps your mailboxes connected. Peep starts again after the phone restarts.
- Passwords are encrypted with a key kept by the Android Keystore, and nothing goes into Android backups. Settings → Backups makes your own sealed backup file.
- Forgot the PIN? Peep asks for the phone's own screen lock first, then resets. On a phone without a screen lock, the reset also removes the downloaded mail.
- To update, download the new APK and install it over the old one; your mail and settings stay. To remove, uninstall Peep like any app.
Peep for iPhone and iPad
Install from the App Store
Peep for iPhone and iPad is on the App Store as Peep Mail, free, for iOS and iPadOS 16 or newer: mail, linking to Peep Web or Peep Enterprise, calendar, contacts, tasks and notes, with Face ID or Touch ID to unlock. On iPad, your mailboxes stay pinned on the left with the reading pane beside them.
Get it
Open the App Store page on your iPhone or iPad, or search the App Store for Peep Mail, and tap Get.
Set your PIN and add mailboxes
Choose a PIN (Face ID or Touch ID can unlock it after that), then add your mailboxes, or link to your Peep Web or Peep Enterprise server to get the same mailboxes, calendar and notes as your computer.
Updates come through the App Store.
All editions
App passwords
Most big providers refuse your normal password from mail programs. Create an app password in your account's security settings and paste that into Peep instead. The provider settings page covers about 90 more.
| Provider | Where to make one |
|---|---|
| Gmail | Google Account → Security → 2-Step Verification → App passwords. 2-Step Verification has to be on. |
| AOL and Verizon | AOL Account Security → Generate app password. |
| Yahoo | Yahoo Account Security → Generate app password. |
| iCloud | appleid.apple.com → Sign-In and Security → App-Specific Passwords. |
| AT&T (att.net, sbcglobal.net, bellsouth.net) | AT&T profile → Settings → Add secure mail key. |
| Cox, Frontier (now on Yahoo) | Yahoo Account Security → Generate app password, signed in with your old address. |
| Comcast / Xfinity | No app password: turn on Third Party Access Security in Xfinity Email settings. |
| Outlook.com, Hotmail, Microsoft 365 | No password at all: click Sign in with Microsoft and enter the code at microsoft.com/link. |
| Your own server | Usually your normal password works. |