somerandomnick
New member
- Joined
- Dec 19, 2022
- Messages
- 1
Hi,
Based on topic https://forum.directadmin.com/threa...il-address-to-authenticated-linux-user.59554/ I've been trying to allow outgoing mails only if from header is on aliases list.
My current condition in /etc/exim.acl_check_message.pre.conf:
{eqi{${address:$header_From:}} {${lookup{${local_part:${address:$header_From:}}}lsearch{/etc/virtual/${domain_data:${address:$header_From:}}/aliases}}}}
gives following error:
DATA: failed to expand ACL string "${if !or { {eqi{$authenticated_id} {${address:$header_From:}}} {eqi{${address:$header_From:}} {${lookup{${local_part:${address:$header_From:}}}lsearch{/etc/virtual/${domain_data:${address:$header_From:}}/aliases}}}} } }": NULL inside "or{...}" condition
(condition from pasted DA thread had same error on my server)
I am running exim 4.96 version. Not sure exactly how to debug it further. I thought that it might be connected with tained changes introduced in exim 4.94 but not sure how bypass it.
P.S I also check different condition just for testing purposes for debug:
{eqi{$domain} {${lookup{${domain}}lsearch{/etc/virtual/${domain_data}/aliases}}}} this prompt following error: failed to open /etc/virtual//aliases for linear search: No such file or directory inside "or{...}" condition
Thanks for any hints!
Based on topic https://forum.directadmin.com/threa...il-address-to-authenticated-linux-user.59554/ I've been trying to allow outgoing mails only if from header is on aliases list.
My current condition in /etc/exim.acl_check_message.pre.conf:
{eqi{${address:$header_From:}} {${lookup{${local_part:${address:$header_From:}}}lsearch{/etc/virtual/${domain_data:${address:$header_From:}}/aliases}}}}
gives following error:
DATA: failed to expand ACL string "${if !or { {eqi{$authenticated_id} {${address:$header_From:}}} {eqi{${address:$header_From:}} {${lookup{${local_part:${address:$header_From:}}}lsearch{/etc/virtual/${domain_data:${address:$header_From:}}/aliases}}}} } }": NULL inside "or{...}" condition
(condition from pasted DA thread had same error on my server)
I am running exim 4.96 version. Not sure exactly how to debug it further. I thought that it might be connected with tained changes introduced in exim 4.94 but not sure how bypass it.
P.S I also check different condition just for testing purposes for debug:
{eqi{$domain} {${lookup{${domain}}lsearch{/etc/virtual/${domain_data}/aliases}}}} this prompt following error: failed to open /etc/virtual//aliases for linear search: No such file or directory inside "or{...}" condition
Thanks for any hints!