[Rspamd-Users] dkim_signing question

Vsevolod Stakhov vsevolod at rspamd.com
Tue Apr 9 08:58:55 UTC 2019


On 09/04/2019 08:03, L. Jankok wrote:
> Op ma 8 apr. 2019 om 13:15 schreef L. Jankok <ljankok at gmail.com>:
> 
>> How can I make rspamd ignore that username doesn't have a domain and
>> instead use the domaina.net?
>>
>>
>> I already have "allow_username_mismatch = true;" but this doesn't catch
>> the situation where the domain is "null"
>>
>>
>> 2019-04-08 07:25:37 #6806(rspamd_proxy) <f96f8b>; dkim_signing;
>> lua_dkim_tools.lua:144: user is authenticated
>>
>> 2019-04-08 07:25:37 #6806(rspamd_proxy) <f96f8b>; dkim_signing;
>> lua_dkim_tools.lua:244: use domain(header) for signature: domaina.net
>>
>> 2019-04-08 07:25:37 #6806(rspamd_proxy) <f96f8b>; dkim_signing;
>> lua_dkim_tools.lua:263: final DKIM domain: domaina.net
>>
>> 2019-04-08 07:25:37 #6806(rspamd_proxy) <f96f8b>; dkim_signing;
>> lua_dkim_tools.lua:278: couldnt find domain in username
>>
>>
>> Regards,
>>
>>
>> LJ
>>
>>
> Solution is to include this in dovecot:
> 
> auth_username_format = %u
> 

Actually, allow_username_mismatch should be enough to disable this
warning:
https://github.com/rspamd/rspamd/blob/master/lualib/lua_dkim_tools.lua#L276

I don't understand how line 278 could ever be reached if this option is
`true`.


More information about the Users mailing list