Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jongha/mail-commander
I want to control the server remotely. However, there are security problems. So, I decided to develop a program that can remote control the server safely and easily. It is using email's pop3 server located in internal network. This is still not perfect from a security. However, if you are using a well-controlled internal network it will be very useful.
https://github.com/jongha/mail-commander
internal-network mail pop python ssl
Last synced: 9 days ago
JSON representation
I want to control the server remotely. However, there are security problems. So, I decided to develop a program that can remote control the server safely and easily. It is using email's pop3 server located in internal network. This is still not perfect from a security. However, if you are using a well-controlled internal network it will be very useful.
- Host: GitHub
- URL: https://github.com/jongha/mail-commander
- Owner: jongha
- License: mit
- Created: 2014-04-04T07:06:35.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-05-04T12:54:16.000Z (over 10 years ago)
- Last Synced: 2024-12-09T12:58:50.504Z (13 days ago)
- Topics: internal-network, mail, pop, python, ssl
- Language: Python
- Homepage:
- Size: 203 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mail-commander
I want to control the server remotely. However, there are security problems. So, I decided to develop a program that can remote control the server safely and easily. It is using email's pop3 server located in internal network. This is still not perfect from a security. However, if you are using a well-controlled internal network it will be very useful.
## Description
This is `mail.cfg` file content.
```
[Host]
POP3=POP3SERVER
SSL=1[Account]
User=YOURACCOUNT
Password=YOURPASSWORD[Rules]
echo=\[Daily report\] (?P.*)
echo2=\[WARNING\] (?P.*)
```* **Host**
* POP3
* Server address of pop3. (ex: outlook.office365.com)
* SSL
* 1 is SSL, 0 is Non-SSL
* **Account**
* User
* User account for POP3
* Password
* User password for POP3
* **Rules**
* key
* Python module name in `modules` subdirectory.
* value
* A regular expression for subject selecting.
* `?P` is input parameter to module.### Module Sample
Sample of echo.py in modules subdirectory.
```
#! /usr/bin/env pythondef main(param):
# implement your command
print('echo module', param)if __name__ == '__main__':
main()
```## Usage
You can run a `main.py` file periodically or use crontab.
## License
mail-commander is available under the terms of the MIT License.