Zhang Huangbin avatar Zhang Huangbin committed 8e9eb58

Rename policy group member names:
- no_greylisting_to_internal -> no_greylisting_for_internal
- no_greylisting_from_external -> no_greylisting_for_external

Comments (0)

Files changed (1)

iRedMail/samples/cluebringer/extra.sql

     VALUES ('no_greylisting', 20, 0, 'Disable grelisting for certain domain and users');
 
 -- No greylisting for certain local domains/users
-INSERT INTO policy_groups (Name, Disabled) VALUES ('no_greylisting_to_internal', 0);
+INSERT INTO policy_groups (Name, Disabled) VALUES ('no_greylisting_for_internal', 0);
 INSERT INTO policy_members (PolicyID, Source, Destination, Disabled)
-    SELECT id, '!%internal_ips,!%internal_domains', '%no_greylisting_to_internal', 0
+    SELECT id, '!%internal_ips,!%internal_domains', '%no_greylisting_for_internal', 0
     FROM policies WHERE name='no_greylisting' LIMIT 1;
 
 -- No greylisting for certain external domains/users
-INSERT INTO policy_groups (Name, Disabled) VALUES ('no_greylisting_from_external', 0);
+INSERT INTO policy_groups (Name, Disabled) VALUES ('no_greylisting_for_external', 0);
 INSERT INTO policy_members (PolicyID, Source, Destination, Disabled)
-    SELECT id, '%no_greylisting_from_external', '%internal_domains', 0
+    SELECT id, '%no_greylisting_for_external', '%internal_domains', 0
     FROM policies WHERE name='no_greylisting' LIMIT 1;
 
 -- Disable greylisting for %no_greylisting
 
 -- Sample: Disable greylisting for certain local domain/users:
 -- INSERT INTO policy_group_members (PolicyGroupID, Member, Disabled)
---    SELECT id, '@domain.com', 0 FROM policy_groups WHERE name='no_greylisting_to_internal' LIMIT 1;
+--    SELECT id, '@domain.com', 0 FROM policy_groups WHERE name='no_greylisting_for_internal' LIMIT 1;
 
 -- ---------------
 -- INDEXES
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.