You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-11-23 22:04:47 +02:00
Separate senderaccess and senderlogin maps
This commit is contained in:
@@ -80,14 +80,14 @@ lmtp_host_lookup = native
|
|||||||
smtpd_delay_reject = yes
|
smtpd_delay_reject = yes
|
||||||
|
|
||||||
# Allowed senders are: the user or one of the alias destinations
|
# Allowed senders are: the user or one of the alias destinations
|
||||||
smtpd_sender_login_maps = $virtual_alias_maps
|
smtpd_sender_login_maps = ${podop}senderlogin
|
||||||
|
|
||||||
# Restrictions for incoming SMTP, other restrictions are applied in master.cf
|
# Restrictions for incoming SMTP, other restrictions are applied in master.cf
|
||||||
smtpd_helo_required = yes
|
smtpd_helo_required = yes
|
||||||
|
|
||||||
smtpd_client_restrictions =
|
smtpd_client_restrictions =
|
||||||
permit_mynetworks,
|
permit_mynetworks,
|
||||||
check_sender_access ${podop}sender,
|
check_sender_access ${podop}senderaccess,
|
||||||
reject_non_fqdn_sender,
|
reject_non_fqdn_sender,
|
||||||
reject_unknown_sender_domain,
|
reject_unknown_sender_domain,
|
||||||
reject_unknown_recipient_domain,
|
reject_unknown_recipient_domain,
|
||||||
|
|||||||
@@ -17,7 +17,8 @@ def start_podop():
|
|||||||
("alias", "url", "http://admin/internal/postfix/alias/§"),
|
("alias", "url", "http://admin/internal/postfix/alias/§"),
|
||||||
("domain", "url", "http://admin/internal/postfix/domain/§"),
|
("domain", "url", "http://admin/internal/postfix/domain/§"),
|
||||||
("mailbox", "url", "http://admin/internal/postfix/mailbox/§"),
|
("mailbox", "url", "http://admin/internal/postfix/mailbox/§"),
|
||||||
("sender", "url", "http://admin/internal/postfix/sender/§")
|
("senderaccess", "url", "http://admin/internal/postfix/sender/access/§"),
|
||||||
|
("senderlogin", "url", "http://admin/internal/postfix/sender/login/§")
|
||||||
])
|
])
|
||||||
|
|
||||||
convert = lambda src, dst: open(dst, "w").write(jinja2.Template(open(src).read()).render(**os.environ))
|
convert = lambda src, dst: open(dst, "w").write(jinja2.Template(open(src).read()).render(**os.environ))
|
||||||
|
|||||||
Reference in New Issue
Block a user