A mail retrieval agent that retrieves email using IMAP and forwards it to a different address using SMTP
Find a file
2024-09-05 17:21:25 +02:00
src use webpki-roots-certs for rustls 2024-09-05 17:21:25 +02:00
.envrc Init 2024-09-04 18:02:06 +02:00
.gitignore Init 2024-09-04 18:02:06 +02:00
Cargo.lock use webpki-roots-certs for rustls 2024-09-05 17:21:25 +02:00
Cargo.toml use webpki-roots-certs for rustls 2024-09-05 17:21:25 +02:00
default.nix Init 2024-09-04 18:02:06 +02:00
flake.lock Init 2024-09-04 18:02:06 +02:00
flake.nix Init 2024-09-04 18:02:06 +02:00
LICENSE.md Init 2024-09-04 18:02:06 +02:00
README.md Update README.md 2024-09-04 18:12:02 +02:00
shell.nix Init 2024-09-04 18:02:06 +02:00

Mailboxrelay

A simple mail retrieval agent that retrieves and forwards your mail to a different address.
This is usefull when you want to migrate away from a mail provider that charges for automatic forwarding.

Usage

$ mailboxrelay -h                                                                                                          2 ↵
A mail retrieval agent that retrieves email using IMAP and forwards it to a different address using SMTP

Usage: mailboxrelay [OPTIONS] --config <CONFIG>

Options:
  -c, --config <CONFIG>      Path to the config file with login information
  -i, --interval <INTERVAL>  The interval in seconds to check for new emails. Use 0 for oneshot [default: 600]
  -h, --help                 Print help
  -V, --version              Print version

Configuration

Config files look lile this:

[someaccount]
imap_domain = "imap.example.com"
imap_username = "user@example.com"
imap_password = "p4ssw0rd"
smtp_domain = "smtp.example.com"
smtp_username = "user@example.com"
smtp_password = "p4ssw0rd"
mailboxes = ["INBOX", "Junk"]
forward_target = "you@yourdomain.tld"