dataset/seed/applicationservice/2022.03.08/postfix-relay/funcs/postfix.py
Emmanuel Garette 5ccb69012b dovecot
2022-05-04 10:29:03 +02:00

12 lines
315 B
Python

from risotto.utils import multi_function as _multi_function
@_multi_function
def calc_postfix_relay_domains(criteria):
relay = set()
for lsts in criteria:
for lst in lsts:
if '@' in lst:
lst = lst.split('@')[1]
relay.add(lst)
return sorted(list(relay))