mirror of
https://github.com/alwinber/mailboxrelay.git
synced 2025-12-06 02:15:53 +00:00
31 lines
No EOL
1.1 KiB
Markdown
31 lines
No EOL
1.1 KiB
Markdown
# 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:
|
|
```toml
|
|
[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"
|
|
``` |