An open API service indexing awesome lists of open source software.

https://github.com/alswl/imap-auto-forward

reading email message by IMAP/EXCHANGE protocol, forward(origin message) to another by SMTP protocol / sendmail
https://github.com/alswl/imap-auto-forward

Last synced: over 1 year ago
JSON representation

reading email message by IMAP/EXCHANGE protocol, forward(origin message) to another by SMTP protocol / sendmail

Awesome Lists containing this project

README

          

# imap-auto-forward

Reading email message by IMAP/EXCHANGE protocol, forward(origin message) to another by senmail.

## Use Case

I want using Gmail to manage a third email, but Gmail only support POP3,
do not support IMAP.
And the third email only support IMAP,
so I use this script to forward(redirect) all new message to Gmail.

## Usage

install:

```
pip3 install -r requirements.txt
```

imap:

```
// (optional)
// export IMAP_AUTO_FORWARD_DSN=your_sentry_auth_code
// (optional)
// export IMAP_AUTO_FORWARD_PASSWORD=your_imap_password
python3 imap-auto-forward.py -u username@from.com -s mail.from.com -r to@gmail.com
```

exchange:

```
// (optional)
// export EXCHANGE_AUTO_FORWARD_DSN=your_sentry_auth_code
// (optional)
// export EXCHANGE_AUTO_FORWARD_PASSWORD=your_exchange_password
python3 exchange-auto-forward.py -u username@from.com -s mail.from.com -r to@gmail.com
```