Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeffbryner/sppgeoip
qmail-spp geoIP modules for smtp handling.
https://github.com/jeffbryner/sppgeoip
Last synced: 11 days ago
JSON representation
qmail-spp geoIP modules for smtp handling.
- Host: GitHub
- URL: https://github.com/jeffbryner/sppgeoip
- Owner: jeffbryner
- License: other
- Created: 2012-12-02T23:51:59.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2012-12-02T23:52:47.000Z (about 12 years ago)
- Last Synced: 2024-11-08T21:18:46.598Z (2 months ago)
- Language: Python
- Size: 97.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: COPYING
Awesome Lists containing this project
README
What?
These are qmail-spp modules you can use in the qmail smtp chain of events
to control or log connections by country.See: http://qmail-spp.sourceforge.net/doc/ for details on the module.
What do they do?
sppgeoip.py just logs the source country of an incoming smtp connection in the header of an email:
X-SPP-GEOIP: US: United Statessppgeoipauth.py will whitelist countries you'll accept authentication attempts from and log success/failures.
To set your list of countries change:
allowed=['US']
to allowed=['US','UK','FR'] or whatever list of country codes you want to login via smtp.qmail setup:
To enable the modules, configure your /var/qmail/control/smtpplugins file thusly:# plugins to execute on client's connection
[connection]
plugins/sppgeoip.py# plugins to execute on AUTH command
[auth]
plugins/sppgeoipauth.pyMake sure all the .py files are executable (chmod +x *.py) or nothing but fail will happen.
Feel free to mod the sppgeoip.py if you want to whitelist/blacklist by country.