[exim] regex or list?!

2023-11-09 Thread Marco Gaiarin via Exim-users
In an ACL like: .ifdef LOCAL_FORBIDDEN_EXTENSIONS deny message = '$mime_filename' files are not accepted here !acl = acl_local_deny_exceptions condition = ${if match {${uc:$mime_filename}}{[.] *(LOCAL_FORBIDDEN_EXTENSIONS)\$}} .endif LOCAL_FORBIDDEN_EXTENSIONS macro is an 're

[exim] Re: regex or list?!

2023-11-10 Thread Marco Gaiarin via Exim-users
Mandi! Jeremy Harris via Exim-users In chel di` si favelave... > A used macro just replaces the name with the text. > What makes you think a list might be appropriate? ...because i've found in two exim config file (i've setup myself some year ago) in one the regexp and in other the list mode, w

[exim] Tainted filenames?

2024-08-22 Thread Marco Gaiarin via Exim-users
I'm 'de-tainting' my old exim config file, but i've found a trouble. I've a transport that have: dkim_private_key = ${if exists{/etc/exim4/dkim/DKIM_DOMAIN-DKIM_SELECTOR-private.pem}{/etc/exim4/dkim/DKIM_DOMAIN-DKIM_SELECTOR-private.pem}{0}} that lead to: 2024-08-22 12:19:34

[exim] Re: Tainted filenames?

2024-08-22 Thread Marco Gaiarin via Exim-users
Mandi! Slavko via Exim-users In chel di` si favelave... >>clearly 'DKIM_DOMAIN' and 'DKIM_SELECTOR' are macros. >>How can i detaint it? Thanks. > Depend what is defined in these macros, show them. Right, sorry. DKIM_SELECTOR = 1234 DKIM_DOMAIN = ${lc:${domain:$h_from:}} Thanks. -- --

[exim] Re: Tainted filenames?

2024-08-23 Thread Marco Gaiarin via Exim-users
Mandi! Tapio Peltonen via Exim-users In chel di` si favelave... > The domain is the problem there. You need to detaint it using a lookup > of valid domains. How you do this depends on your setup. >> DKIM_DOMAIN = ${lc:${domain:$h_from:}} AFAIK ${domain:...} is an operator, not the variable $do

[exim] Re: Tainted filenames?

2024-08-23 Thread Marco Gaiarin via Exim-users
Mandi! Slavko via Exim-users In chel di` si favelave... > You can test that lookup expansion with -be command line option. It worked! Thanks! -- -- ## subscription configuration (requires account): ## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/ ## unsubscr

[exim] Re: Again Sympa and exim...

2024-11-03 Thread Marco Gaiarin via Exim-users
Mandi! Jeremy Harris via Exim-users In chel di` si favelave... > More likely they did get expanded, but had no content. Seems exactly that. > I don't see anything in your "sympa_lists" router that would be > setting $local_part_data - do you have it elsewhere, or did you > never have it? OK;

[exim] Re: Again Sympa and exim...

2024-11-04 Thread Marco Gaiarin via Exim-users
Mandi! Marco Gaiarin In chel di` si favelave... > I've to add something like: OK, seems to work now. Thanks for the hint. Another question; now i have: > require_files = /var/lib/sympa/list_data/${local_part} > local_parts = ${lookup {${local_part}} dsearch,ret=key,filter=dir > {/var/li

[exim] Again Sympa and exim...

2024-10-31 Thread Marco Gaiarin via Exim-users
I've just upgrade to bookworm/exim 4.94.2-7+deb11u4, and i've again trouble with sympa. Now i have: sympa_lists: debug_print = "R: sympa list for $local_part$domain" driver = redirect domains = LOCAL_SYMPA_DOMAINS local_part_suffix = -request : -editor : -subscribe : -unsubscribe loca

[exim] Bad file descriptor on logs?

2024-09-23 Thread Marco Gaiarin via Exim-users
I've upgraded to debian bullseye, and often i catch on logs: Sep 23 00:00:08 mail exim[1468704]: 2024-09-23 00:00:08 1ssUci-006A4f-Ph failed to write to main log: length=91 result=-1 errno=9 (Bad file descriptor) Sep 23 00:00:08 mail exim[1468704]: write failed on panic log: length=116 resul

[exim] Re: Bad file descriptor on logs?

2024-09-23 Thread Marco Gaiarin via Exim-users
Mandi! Marco Gaiarin In chel di` si favelave... > exim seems to work properly; seems a problem on log rotation or something > like that (AFAIK rotation happens at 6.00, not on midnigt...). Uh, oh; no, seems that log rotation was moved to midnight in bullseye... some systemd magic? Anyway, i've

[exim] Re: Bad file descriptor on logs?

2024-09-26 Thread Marco Gaiarin via Exim-users
Mandi! Ian Z via Exim-users In chel di` si favelave... > More information needed: > - what style of logfile naming is in use (just sequence numbers, or > dates, or something else?) ?! Sorry but i've not understood the question... > - please share the logrotate.d entry for exim Standard deb

[exim] Re: Bad file descriptor on logs?

2024-09-27 Thread Marco Gaiarin via Exim-users
Mandi! Evgeniy Berdnikov via Exim-users In chel di` si favelave... > Yes, cited lines looks like syslog records, it may be also a result > of stderr capture by systemd. I've understood pretty nothing of the rest but... yes, these are syslog lines, i run 'logcheck' on my servers that send me s

[exim] Re: Bad file descriptor on logs?

2024-09-27 Thread Marco Gaiarin via Exim-users
Mandi! Andrew C Aitchison via Exim-users In chel di` si favelave... > Ubuntu has a separate file /etc/logrotate.d/exim4-paniclog Uh, oh... yes, also in debian, same file. Sorry. > We are suspicious that this *is* a *subtle* logrotate issue. Better fire up a bug on debian BTS, so? -- --

[exim] Re: Again Sympa and exim...

2024-11-27 Thread Marco Gaiarin via Exim-users
No one reply, i restate hoping on feedback: > Another question; now i have: > >> require_files = /var/lib/sympa/list_data/${local_part} >> local_parts = ${lookup {${local_part}} dsearch,ret=key,filter=dir >> {/var/lib/sympa/list_data/} } > > It make sense to have both 'local_parts' and 'r

[exim] Re: Again Sympa and exim...

2024-11-28 Thread Marco Gaiarin via Exim-users
Mandi! Slavko via Exim-users In chel di` si favelave... > If you want to prevent errors about missing file, you have to add > "if exists" into expansion with appropriate return value for false > state, eg. mentioned forced fail... ...but the local_part lookup do exactly that: verify if the dire

[exim] Re: Again Sympa and exim...

2024-11-28 Thread Marco Gaiarin via Exim-users
Mandi! Kirill Miazine via Exim-users In chel di` si favelave... >> What would return the lookup if does not find the file ? > an empty string. and lookup could be forced to fail, too What do you mean? Looking at docs (https://www.exim.org/exim-html-current/doc/html/spec_html/ch-generic_options_