That did appear to solve the issue. Used ${quote_pgsql::$local_part} and encountered success.
Thanks -----Original Message----- From: Jeremy Harris via Exim-users <exim-users@lists.exim.org> Sent: Monday, May 26, 2025 5:16 PM To: exim-users@lists.exim.org Subject: [exim] Re: Trying to add a reply-to header using pgsql lookup CAUTION: External to USask. Verify sender and use caution with links and attachments. Forward suspicious emails to phish...@usask.ca On 2025/05/27 12:01 AM, Rowney, Dion via Exim-users wrote: > headers_remove = ${if eq{${lookup pgsql \ > {SELECT '1' FROM listman.lists \ > WHERE \ > listname = '${quote_pgsql:$local_part}' \ > AND lists.options LIKE '%"reply-to-list"%' } \ > }}{1} \ > {Reply-to} \ > {} \ > } headers_remove takes a list, colon-sep by default. There is a colon after "quote_pgsql". See "Warning 3" in the docs, "Generic options for routers" chapter, the "headers_remove" entry. -- Cheers, Jeremy -- ## subscription configuration (requires account): ## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/ ## unsubscribe (doesn't require an account): ## exim-users-unsubscr...@lists.exim.org ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/ -- ## subscription configuration (requires account): ## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/ ## unsubscribe (doesn't require an account): ## exim-users-unsubscr...@lists.exim.org ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/