[Postfix] Add '*' as send_as to sender_acl map
[Postfix] Syslog-ng: Do not trim after each push to Redismaster
parent
04b43d0a3b
commit
bdf7632757
|
@ -210,6 +210,7 @@ query = SELECT goto FROM alias
|
||||||
SELECT logged_in_as FROM sender_acl
|
SELECT logged_in_as FROM sender_acl
|
||||||
WHERE send_as='@%d'
|
WHERE send_as='@%d'
|
||||||
OR send_as='%s'
|
OR send_as='%s'
|
||||||
|
OR send_as='*'
|
||||||
OR send_as IN (
|
OR send_as IN (
|
||||||
SELECT CONCAT('@',target_domain) FROM alias_domain
|
SELECT CONCAT('@',target_domain) FROM alias_domain
|
||||||
WHERE alias_domain = '%d')
|
WHERE alias_domain = '%d')
|
||||||
|
|
|
@ -30,14 +30,6 @@ destination d_redis_f2b_channel {
|
||||||
command("PUBLISH" "F2B_CHANNEL" "$MESSAGE")
|
command("PUBLISH" "F2B_CHANNEL" "$MESSAGE")
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
destination d_redis_cleanup {
|
|
||||||
redis(
|
|
||||||
host("redis-mailcow")
|
|
||||||
persist-name("redis3")
|
|
||||||
port(6379)
|
|
||||||
command("LTRIM" "POSTFIX_MAILLOG" "0" "`LOG_LINES`")
|
|
||||||
);
|
|
||||||
};
|
|
||||||
filter f_mail { facility(mail); };
|
filter f_mail { facility(mail); };
|
||||||
filter f_skip_local { not facility (local0, local1, local2, local3, local4, local5, local6, local7); };
|
filter f_skip_local { not facility (local0, local1, local2, local3, local4, local5, local6, local7); };
|
||||||
log {
|
log {
|
||||||
|
@ -47,5 +39,4 @@ log {
|
||||||
filter(f_mail);
|
filter(f_mail);
|
||||||
destination(d_redis_ui_log);
|
destination(d_redis_ui_log);
|
||||||
destination(d_redis_f2b_channel);
|
destination(d_redis_f2b_channel);
|
||||||
destination(d_redis_cleanup);
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue