https://github.com/bwesterb/pymm
Filters e-mail for a domain through a single e-mail account
https://github.com/bwesterb/pymm
Last synced: 12 months ago
JSON representation
Filters e-mail for a domain through a single e-mail account
- Host: GitHub
- URL: https://github.com/bwesterb/pymm
- Owner: bwesterb
- License: agpl-3.0
- Created: 2010-06-19T14:46:56.000Z (about 16 years ago)
- Default Branch: master
- Last Pushed: 2010-06-19T14:47:12.000Z (about 16 years ago)
- Last Synced: 2023-03-11T03:27:30.907Z (over 3 years ago)
- Language: Python
- Homepage:
- Size: 102 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
======
PyMM
======
This is a very specific e-mail (de)multiplexer. It's main use case is to
filter all e-mail for a domain through a single e-mail address.
This script is installed as the handler for all mail on a domain ``pre-domain``
and as the handler of all mail for a single ``post-address``. An e-mail
handled for ``foo@pre-domain`` is tagged and forwarded to ``filter-address``.
If this tagged e-mail is returned to post-address, it is forwarded to
``foo@target-domain``.
Example: filter all e-mail of a domain through a single GMail account
---------------------------------------------------------------------
(I assume a vpopmail/qmail setup)
Suppose you've got a domain ``mydomain.com`` and you want all e-mail sent to
mydomain.com to be filtered through a single GMail account
``myfilter@gmail.com``.
Create two new e-mail domains: ``post.mydomain.com`` and ``real.mydomain.com``.
Install ``real.mydomain.com`` as if it was ``mydomain.com``. Set the
``.qmail-default`` for ``mydomain.com`` to::
| /path/to/pymm.py pre -f myfilter@gmail.com -t real.mydomain.com -p mydomain.com -P post@post.mydomain.com
Set the ``.qmail-default`` for ``post.mydomain.com`` to::
| /path/to/pymm.py post -f myfilter@gmail.com -t real.mydomain.com -p mydomain.com -P post@post.mydomain.com
And finally configure ``myfilter@gmail.com`` to forward all e-mail to
``post@post.mydomain.com`` and you're all set.