Giter Club home page Giter Club logo

postfix_saslquota's People

Contributors

noskoski avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

postfix_saslquota's Issues

no quota rule file

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.