[exim] Re: Exim, virtual users, and usernames

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Cam Ellison
Dátum:  
Címzett: Andrew C Aitchison
CC: exim-users
Tárgy: [exim] Re: Exim, virtual users, and usernames
On 2024-08-08 12:40, Andrew C Aitchison wrote:
> On Thu, 8 Aug 2024, Cam Ellison via Exim-users wrote:
>
>> On 2024-08-08 09:47, Cam Ellison via Exim-users wrote:
>>> Status update:
>>>
>> As is often the case, I spoke too soon. SMTP works for emails between
>> virtual users, but does not work for outgoing mail.
>>
>> The local_part of the sender name is missing, though the domain is
>> present.
>>
>> I have tried this (immediately before acl_check_data:)
>>
>> acl_check_smtp:
>>
>>     accept
>>
>> condition = ${if eq{$sender_address}{${lookup mysql{SELECT
>> CONCAT(email_username,'@',domain) FROM league WHERE \
>> email_username='${quote_mysql:$local_part}' AND status='ACTIVE'}}}}
>>
>> to no avail.
>
> Should domain be defined in that condition ?
>
>

I don't know. I'm assuming that $sender_address is $user@$domain.

In any case looking up only the email address produced the same result.

As I think about it, $local_part should be empty.

However, I tried both ways with $authenticated_id, with the same result.

Back to the drawing board.

Cheers

Cam





--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-users-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/