reading email message by IMAP/EXCHANGE protocol, forward(origin message) to another by SMTP protocol / sendmail
Reading email message by IMAP/EXCHANGE protocol, forward(origin message) to another by senmail.
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.
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 [email protected] -s mail.from.com -r [email protected]
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 [email protected] -s mail.from.com -r [email protected]