Replies: 1 comment 1 reply
-
|
That guide is balderdash (the rspamc examples are just wrong); we are rewriting it. Your signing failure isn't Postfix. Your log: use domain(auth) for signature: nil You set The signing domain belongs in the ( |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi...
I'm trying to configure RSpamD (
4.1.1-1~0f29274~trixie) to perform DKIM signing for outgoing email. I already have rspamd integrated with Postfix (3.10.5-1~deb13u1) using thelocal.d/milter_headers.confapproach. My Postfix server usesvirtual_alias_domainsto process email for two domains - and usesvirtual_alias_mapsto associate supported email addresses with accounts expressed in the form: `user@loclahost'. This works fine for mail delivery to dovecot LMTP.I've been following the DKIM Signing: Complete Setup Guide - which makes sense up-until Step 5 "Test DKIM signing". Slavishly following the guide, I get this behaviour:
The manual page for rspamc suggests that using
-fin this way is not valid... perhaps the guide intended the capital letter option-Finstead?With
-FRspamd does seem to process the message sent on stdin. It is not clear if this output confirms DKIM signing is working... or not. When I send email through Postfix, as an authenticated user fortest@example.com, no DKIM headers are present when the email is received... so something is not working.While it wasn't mentioned in the guide, I did ensure Postfix integration includes both these lines:
When I put
debug_modules = ["dkim_signing"];into/etc/rspamd/local.d/logging.incI notice these three lines:I suspect the second of these is why I'm not seeing signed emails. In Thunderbird, the SMTP configuration gives "User name" in the form
user- for which there is a local account on the mail server calleduser. Email addresses are mapped from the domains for which I've configured DKIM keys to identifiers of the formuser@localhostin/etc/postfix/virtual_aliasby Postfix. In order to convince Dovecot LMTP to accept emails from Postfix, I needed/etc/dovecot/conf.d/20-lmtp.confto include the line:I can't map to email addresses including the domains for which I want dkim signatures... because I want
foo@example1.comandbar@example2.comto both be delivered to a single user account calledbaz(which isbaz@localhostin/etc/postfix/virtual_alias.)I've populated
/etc/rspamd/local.d/virtual_aliaseswith:So... in principle, rspamd should know the user-accounts which are authenticated for delivery to Dovecot LMTP. (Dovecot provides the SASL authorisations for Postfix in my setup.)
Do I need something similar (in reverse) so a user (authenticated as
user@localhost) can send email forname@example1.comandother_name@example2.com? How should I configure Rspamd to tell it which domains should be dkim signed for an authenticated user? I would be satisfied if every authenticated user could sign email for every supported domain... but I can't see how to do this.Hints/pointers would be very welcome. :-)
Beta Was this translation helpful? Give feedback.
All reactions