mirror of
https://github.com/alwinber/mailboxrelay.git
synced 2025-12-06 02:15:53 +00:00
A mail retrieval agent that retrieves email using IMAP and forwards it to a different address using SMTP
| src | ||
| .envrc | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| default.nix | ||
| flake.lock | ||
| flake.nix | ||
| LICENSE.md | ||
| README.md | ||
| shell.nix | ||
Mailrelay
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
$ mailrelay -h
A mail retrieval agent that retrieves email using IMAP and forwards it to a different address using SMTP
Usage: mailrelay [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"