aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSina Ghaderi <32870524+Sina-Ghaderi@users.noreply.github.com>2021-03-19 08:04:41 +0330
committerGitHub <noreply@github.com>2021-03-19 08:04:41 +0330
commite16ec4f65419aefa0bb401d6af2e30be0d6bfa25 (patch)
treecac43ea482a743b0ce247d8a0a06016ec6a1f232
parentf21aefdc091463cc26fd1b26d3d514b2d2e48c5e (diff)
adding config file fixrate.conf
-rw-r--r--fixrate.conf45
1 files changed, 45 insertions, 0 deletions
diff --git a/fixrate.conf b/fixrate.conf
new file mode 100644
index 0000000..ee4959d
--- /dev/null
+++ b/fixrate.conf
@@ -0,0 +1,45 @@
+
+### Copyright (c) 2021 git.snix.ir, All rights reserved.
+### Developed BY sina@snix.ir --> Sina Ghaderi
+### This work is licensed under the terms of the MIT license.
+### GitHub == Github.com/Sina-Ghaderi --------
+
+
+## Mysql(or mariaDB) database to use
+sql_database = postfix
+## sql connection port number
+sql_tcpport = 3306
+## sql username to connect database
+sql_username = postfix
+## sql password to connect database
+sql_password = Pass1234
+## sql server address 127.0.0.1 ....
+sql_address = 127.0.0.1
+
+
+## Default rate limit plan for users that not exists in database yet.
+## first parameter is number of emails and the next one is time interval (Seconds) between user counter reset
+## following parameters determine that users only can send 10 e-mails per 120 seconds
+## note that if you change specific user by fixrate users command, this not effect that user anymore.
+default_ratelimit = 10 120
+
+
+## fixrate listening mode can be only unix or inet, if you want to connect this service over TCP protocol
+## should use inet, for using unix socket files should unix be used.
+listener_type = unix
+
+## config for unix listener type, ignored if use inet
+## note that for some reasons postfix root path is under /var/spool/postfix/ directory,
+## if you specify check_policy_service unix:/fixrate/fixrate.sock in main.cf file, postfix only looking
+## for socket file /ratelimit/fixrate.sock under /var/spool/postfix/ directory.
+## so socket file should be under /var/spool/postfix/
+## REMEMBER to mkdir directory /var/spool/postfix/ratelimit/ first
+
+socket_path = /var/spool/postfix/ratelimit/fixrate.sock
+## socket file should be read and writable by both fixrate and postfix services.
+socket_perm = 666
+
+
+
+## config for inet listener type ignored if use unix
+listen_addr = 127.0.0.1:9984

Snix LLC Git Repository Holder Copyright(C) 2022 All Rights Reserved Email To Snix.IR