noskoski / postfix_saslquota Goto Github PK
View Code? Open in Web Editor NEWLimit sender quota for postfix
License: Apache License 2.0
Limit sender quota for postfix
License: Apache License 2.0
Olá.
Estou testando o seu projeto, mas estou com dificuldade na instalação. Eu instalei num Alma Linux 9 e o serviço sobe, mas sempre dá o erro abaixo no arquivo de log:
WARNING:[1] no quota rule file (/home/_saslquota/quotarules.json)
WARNING:[1] No default quota Rule "default", forging one, 5000 per day per email
INFO:[1] sasl_username=[email protected], rcpt=[email protected], rule=forged, quota=13/5001(0.26%), period=86400, action=ACCEPT
Detalhes da instação:
Como usuário _saslquota, no diretório /home/_saslquota:
$ pip install mysql-connector-python
$ git clone https://github.com/noskoski/postfix_saslquota saslquota
Todos os arquivos pertencem ao usuários _saslquota, exceto os 2 arquivos de log.
Segue os arquivos de configuração:
$ cat /etc/supervisord.d/saslquota.ini
[program:saslquota]
command=/home/_saslquota/saslquota/saslquota.py
autostart=true
autorestart=true
directory=/home/_saslquota
stderr_logfile=/home/_saslquota/mail.saslquota.err.log
stdout_logfile=/home/_saslquota/mail.saslquota.log
user=_saslquota
logfile_maxbytes = 50MB
logfile_backups=10
cat /home/_saslquota/saslquota.json
{
"_bind" : "127.0.0.1",
"_bindport" : 10008,
"_bindtimeout" : 120,
"_myhost" : "localhost",
"_myuser" : "saslquota",
"_mypasswd" : "umasenhahahahahahaahaha",
"_mydb": "saslquota",
"_logaddress" : "127.0.0.1",
"_logport" : 514,
"_logfacility": "mail",
"_loglevel": "INFO",
"_quotafile": "/home/_saslquota/quotarules.json"
}
O campo "_quotafile" do arquivo /home/_saslquota/saslquota.json já foi modificado para apenas "quotarules.json", mas o erro persiste.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.