Olá.
Não consigo aplicar a funcionalidade do pacote postfix-policyd.
Quero limitar a quantidade de envio de mensagem por tempo.
Para isso eu instalo o pacote postfix-policyd: #aptitude install
postfix-policyd
Altero as configurações do arquivo /etc/postfix-policyd.conf:
SENDERTHROTTLE=1
SENDER_THROTTLE_HOST=1
SENDER_QUOTA_REJECTION=""
SENDERMSGLIMIT=1
SENDERRCPTLIMIT=1
SENDERTIMELIMIT=1h
Limitando 1 mensagem a cada 1 hora por host (somente para testes).
master.cf:
policy unix - n n - - spawn
user=nobody argv=/usr/bin/perl /usr/sbin/postfix-policyd
main.cf:
smtpd_recipient_restrictions=
permit_mynetworks,
permit_sasl_authenticated,
reject_unauth_destination,
check_policy_service unix:private/policy
Reinicio os serviços postfix e postfix-policyd e o log me apresenta a
mensagem:
Apr 17 16:01:40 trinity postfix-policyd: starting policyd v1.80
Apr 17 16:01:40 trinity postfix-policyd: connecting to mysql database:
localhost
Apr 17 16:01:40 trinity postfix-policyd: connected..
Apr 17 16:01:45 trinity postfix/master[10025]: terminating on signal 15
Apr 17 16:01:46 trinity postfix/master[10200]: daemon started -- version
2.5.5, configuration /etc/postfix
Porém ao efetuar testes, envio quantas mensagens forem necessárias que o
policyd não limita o envio de e-mail.
O que estou fazendo de errado?
O que é preciso ser feito para que o postfix-policyd bloqueie um remetente?
É preciso criar algum arquivo com comandos SQL para que o
postfix-policyd inclua um remetente na base de dados postfixpolicyd?
Obrigado.
###
Hi
I can not apply the functionality of the package postfix-policyd.
Want to limit the amount of time by sending a message
For that i install the package postfix-policyd: #aptitude install
postfix-policyd
I change the settings file /etc/postfix-policyd.conf:
SENDERTHROTTLE=1
SENDER_THROTTLE_HOST=1
SENDER_QUOTA_REJECTION="Quota exceeded"
SENDERMSGLIMIT=1
SENDERRCPTLIMIT=1
SENDERTIMELIMIT=1h
Limiting a message every 1 hour per host (only for testing)
master.cf:
policy unix - n n - - spawn
user=nobody argv=/usr/bin/perl /usr/sbin/postfix-policyd
main.cf:
smtpd_recipient_restrictions=
permit_mynetworks,
permit_sasl_authenticated,
reject_unauth_destination,
check_policy_service unix:private/polic
I restart the services postfix and postfix-policyd and the log show me:
Apr 17 16:01:40 trinity postfix-policyd: starting policyd v1.80
Apr 17 16:01:40 trinity postfix-policyd: connecting to mysql database:
localhost
Apr 17 16:01:40 trinity postfix-policyd: connected..
Apr 17 16:01:45 trinity postfix/master[10025]: terminating on signal 15
Apr 17 16:01:46 trinity postfix/master[10200]: daemon started -- version
2.5.5, configuration /etc/postfix
But when doing tests...i send many messages and postfix-policyd does not
limit the sending of e-mail.
What am i doing wrong?
What needs to be done for postfix-policyd block a sender?
I need create a file with SQL commands for postfix-policyd includes a
sender in the database postfixpolicyd?
Thanks
_______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users