No problem (has to be craft beer ;) ),
I still wonder if it is the transport that it is being used, it could be
different from when you are sending on the command line. When I had to
do something like this with a mailman list server the default smarthost
transport needed adding to for it to attach the DKIM header.
For debugging, exim -bh <ip address connecting to the mailserver> , it
is a fake smtp session. I would only do the following if it is a test
box as it won't run if port 25 is already bound to, exim -bd -d+all 2>&1
| tee /path/of/output_file (it will sit there waiting for a connection),
you can get the output to the terminal and saved to a file to search
afterwards. It does provide alot of useful information as it shows all
the acl's, routers and transports etc that it runs through during the
smtp transaction and you can see when it doesn't do what you are
expecting. The Exim man page is well written and does have lots of
helpful information (man exim) that has pointed me in the right
direction previously.
I'd also check /var/lib/exim4/config.autogenerated to confirm (at the
top it confirms if it is split or non split) so you know if you are
putting any changes in the correct locations.
I'm guessing this is a production box, whenever I'm trying to debug
something like this I use a test box and use the brilliant swaks to send
mail to it, if you are running Debian on the system you are sending a
message to it apt install swaks.
This is an Exim issue, you might find more help asking upstream on the
Debian mailing lists.
Hope this helps a little bit.
Thanks
Dan
On 8/8/24 11:09, Eduardo Diaz Rodriguez via dovecot wrote:
But I am adding the DKMI signature headers on this email server...
I don't know why sendmail used on dovecot send the mail to exim2
-DOUTGOING all software on the server is using exim1
because if I use my sendmail on command line from the user the email
allways take the headers of DKMI.. but if I use dovecot command line
sendmail_path = /usr/sbin/sendmail
don't send the email with headers..
In order to debug the issue I create a warper
/programas/scripts/eximvacation/eximwarper to get a log about the
comand line :-P if you have any idea will be great!
Thanks to answer!! :-D beer on Spain granted.
On 08/08/2024 11:52, Daniel Botting wrote:
Hi ,
I believe you'll need to add to the relevant Exim transport that you
are using. For example if you are a smart host add it to the
transport for that. Example that might help:
<https://serverfault.com/questions/782055/exim4-does-not-add-dkim-signature>
Cheers
Dan
On August 8, 2024 9:15:43 AM GMT+01:00, Eduardo Diaz Rodriguez via
dovecot <dovecot@dovecot.org> wrote:
Hi to all I was using dovecot like 15 years on multiples debian
places, and I have the same issue on debian 12 and debian 11. on
my configuration I use exim with 2 process to send email, and at
the same time use mailscanner to scan all the email that runs on
the server. exim1 get the email, and put on the mailscanner
directory and mailscanner scan the email and put on another
directory to be send by exim2... Debian-+ 242594 1 0 Jul17
? 00:00:15 /usr/sbin/exim4 -bd -oY -odq -oX 587:25 -oP
/var/run/exim4/exim.pid Debian-+ 242597 1 0 Jul17 ?
00:00:01 /usr/sbin/exim4 -oP /run/exim4/eximqr.pid -q15m -oY
-DOUTGOING I enable vacation the users, and works ok, but the
issue is related the email sent by dovecot… The mail sent by
dovecot lacks of the headers and the SPF and DKMI headers but if I
sent the email form my command line using /usr/sbin/sendmail the
email has the all the headers…. The mail issue here is with the
norms for spam from google the nobody get the vacations emails
reply. as far I see on the logs of sendmail I see only the email
on the exim4 -DOutgoing (log) (I don't know why) because if I send
the mail using send mail go to the whole process I don't know why
dovecot send the mail to exim -DOUTGOING and not use sendmail on
command line.. There any way to create a warper to capture the
mail and sending "like this one"
/usr/local/bin/dovecot-sendmail-wrapper I enable the debugn on
send mail to see what is doing dovect but no luck Aug 8 02:13:27
servidorabm dovecot:
lda(luis.alvarez)<870407><rujXC6cNtGYHSA0A40PlXQ>: Debug: program
exec:/usr/sbin/exim: Created Aug 8 02:13:27 servidorabm dovecot:
lda(luis.alvarez)<870407><rujXC6cNtGYHSA0A40PlXQ>: Debug: program
exec:/usr/sbin/exim: Establishing connection Aug 8 02:13:27
servidorabm dovecot:
lda(luis.alvarez)<870407><rujXC6cNtGYHSA0A40PlXQ>: Debug: program
exec:/usr/sbin/exim: Forked child process Aug 8 02:13:27
servidorabm dovecot:
lda(luis.alvarez)<870407><rujXC6cNtGYHSA0A40PlXQ>: Debug: program
exec:/usr/sbin/exim (870409): Connected to program Aug 8 02:13:27
servidorabm dovecot:
lda(luis.alvarez)<870407><rujXC6cNtGYHSA0A40PlXQ>: Debug: program
exec:/usr/sbin/exim (870409): Finished streaming payload to
program Aug 8 02:13:27 servidorabm dovecot:
lda(luis.alvarez)<870407><rujXC6cNtGYHSA0A40PlXQ>: Debug: program
exec:/usr/sbin/exim (870409): Finished input to program Aug 8
02:13:27 servidorabm dovecot:
lda(luis.alvarez)<870407><rujXC6cNtGYHSA0A40PlXQ>: Debug: program
exec:/usr/sbin/exim (870409): Disconnected Aug 8 02:13:27
servidorabm dovecot:
lda(luis.alvarez)<870407><rujXC6cNtGYHSA0A40PlXQ>: Debug: program
exec:/usr/sbin/exim (870409): Waiting for program to finish after
0 msecs (timeout = 30000 msecs) Aug 8 02:13:27 servidorabm
dovecot: lda(luis.alvarez)<870407><rujXC6cNtGYHSA0A40PlXQ>: Debug:
program exec:/usr/sbin/exim (870409): Child process ended Aug 8
02:13:27 servidorabm dovecot:
lda(luis.alvarez)<870407><rujXC6cNtGYHSA0A40PlXQ>: Debug: program
exec:/usr/sbin/exim (870409): Destroy Aug 8 02:13:27 servidorabm
dovecot: lda(luis.alvarez)<870407><rujXC6cNtGYHSA0A40PlXQ>: sieve:
msgid=<2118db23-b529-4b96-8d36-4a9ed7596...@pk25.com>: vacation
action: sent vacation response to <ed...@pk25.com> I include a
example: This is the mail headers sent using dovecot sendmail
------------------------------------------------------------------------
X-Spam-Status: No X-Pk25-MailScanner-From: X-Pk25-MailScanner:
Found to be clean X-Pk25-MailScanner-ID: 1sbqWj-005lt1-2y
X-Pk25-MailScanner-Information: Please contact the ISP for more
information Received: from mail-108-mta106.mxroute.com
([136.175.108.106]) by pk25.com with esmtps (TLS1.3) tls
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) id
1sbqWj-005lt1-2y fored...@pk25.com; Thu, 08 Aug 2024 01:57:12
+0200 Received: from filter006.mxroute.com ([136.175.111.3]
filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by
mail-108-mta106.mxroute.com (ZoneMTA) with ESMTPSA id
1912f46520a0000a78.001 for<ed...@pk25.com> (version=TLSv1.3
cipher=TLS_AES_256_GCM_SHA384); Wed, 07 Aug 2024 23:57:03 +0000
X-Zone-Loop: a8a214dd47cb92b5b7d264d79136c8507fa7c5926b2e
X-Originating-IP: [136.175.111.3] X-Sieve: Pigeonhole Sieve 0.5.13
(cdd19fe3)
Message-ID:<dovecot-sieve-1723075020-64444...@servidorabm.interno.abmarquitectos.com>
Date: Thu, 08 Aug 2024 01:57:00 +0200
From:<luis.alva...@abmarquitectos.com> To: "Eduardo Diaz
Rodriguez"<ed...@pk25.com>
In-Reply-To:<071afcb4-79f6-40d6-b12a-e5b23528d...@pk25.com>
References:<071afcb4-79f6-40d6-b12a-e5b23528d...@pk25.com>
Auto-Submitted: auto-replied (vacation) Precedence: bulk
X-Auto-Response-Suppress: All MIME-Version: 1.0 Content-Type:
text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit
X-ABM-MailScanner-Information: Please contact the ISP for more
information X-ABM-MailScanner-ID: 1sbqWa-003eIu-Kz
X-ABM-MailScanner: Found to be clean X-ABM-MailScanner-From:
X-Authenticated-Id:s...@abmarquitectos.com X-SA-Exim-Connect-IP:
136.175.108.106 X-SA-Exim-Mail-From: X-Spam-Checker-Version:
SpamAssassin 4.0.0 (2022-12-13) on servidor1.interno.pk25.com
X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0
tests=BAYES_00,DMARC_NONE, SPF_HELO_NONE autolearn=no
autolearn_force=no version=4.0.0 Subject: Respuesta
=?utf-8?q?autom=C3=A1tica:?= Vacaciones / Out of office
X-SA-Exim-Version: 4.2.1 (built Wed, 06 Jul 2022 17:57:39 +0000)
X-SA-Exim-Scanned: Yes (on pk25.com) Estaré de vacaciones del
dÃa 5 al dÃa 23 de agosto ambos incluidos con un acceso muy
limitado a mi email. Para cualquier asunto urgente, por favor
contactar con el (+34) 91 4114375. Gracias I will be on holiday
from the 5th to the 23rd of August (both inclusive) with very
limited access to my email. For any urgent matters, please contact
me on (+34) 91 4114375. Thank you
------------------------------------------------------------------------
This is the email send using command line /usr/sbin/sendmail
ed...@pk25.com
------------------------------------------------------------------------
X-Spam-Status: No
X-Pk25-MailScanner-From:luis.alva...@abmarquitectos.com
X-Pk25-MailScanner: Found to be clean X-Pk25-MailScanner-ID:
1sbps4-005iuR-14 X-Pk25-MailScanner-Information: Please contact
the ISP for more information Received-SPF: pass (pk25.com: domain
of abmarquitectos.com designates 136.175.108.60 as permitted
sender)
client-ip=136.175.108.60;envelope-from=luis.alva...@abmarquitectos.com;
helo=mail-108-mta60.mxroute.com; Received: from
mail-108-mta60.mxroute.com ([136.175.108.60]) by pk25.com with
esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim
4.96) (envelope-from<luis.alva...@abmarquitectos.com>) id
1sbps4-005iuR-14 fored...@pk25.com; Thu, 08 Aug 2024 01:15:10
+0200 Received: from filter006.mxroute.com ([136.175.111.3]
filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by
mail-108-mta60.mxroute.com (ZoneMTA) with ESMTPSA id
1912f1fde1f0000a78.001 for<ed...@pk25.com> (version=TLSv1.3
cipher=TLS_AES_256_GCM_SHA384); Wed, 07 Aug 2024 23:15:03 +0000
X-Zone-Loop: 9cbc8cfacf0e7622cc097cbc7366c12df531448419ec
X-Originating-IP: [136.175.111.3] DKIM-Signature: v=1;
a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=abmarquitectos.com;
s=x; h=Date:From:Message-Id:Sender:Reply-To:Subject:To:
Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID:
Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
:Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:
List-Subscribe:List-Post:List-Owner:List-Archive;
bh=6Vz2aHGFyNLtBTf9yGi/HE3IFNHwpvLh04DkcjY69c0=;
b=YhXHjPytW0sUJxsgSer+Mmh8NK
IBDuHoqQAsb2Ox3Q2fEtp3lQYx7SEiEzvOfUgzO8dsx9pa7n0nOnGck9R8zVZbjqQEXVourhjGZTA
5TbdPMBlti1o+qO4480DiQGJYF+nszamgMeNhwgePapYRUw0L8wE1cmIHgI5Fn+TnKITHuOZDiTjC
Rq/eIQqQONoDNbJrfs3jQozuZ/Kd7yParMiAeJe8WYZUpZxW751kma1z+2xmlrTgWqrT60U9HkGfD
1n7kKug+qf13A3CDbbxmgt/AleosIO4jEyHw+RX+c/hry8jrxBfmE48Z9lLvtT9vgFwh8YFVo9Q1G
AgEbd2hw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt;
c=relaxed/relaxed; d=abmarquitectos.com; s=abmarquitectos;
h=Date:From:Message-Id:Sender:
Reply-To:Subject:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:
Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id:
List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive;
bh=6Vz2aHGFyNLtBTf9yGi/HE3IFNHwpvLh04DkcjY69c0=;
b=H8em8qDC0sVv5r7Oaw9KrCXrGY
BhZUhR7naN8XxA58pfOEeE7k5rLZlDMtpsBmrQrCvYaFRqxUJjGNl0gR2ctWvNmmEDUsPMOQzSAsW
ELU0jxQDfFaRBTor/Vq6aoN8vy8tlWb6aSLBUtN5p1vYsf/PlV+MtNV/uoll526FurjxWheTYeGBg
r0QbSboEDVxMfBQ98aETqXgW4ZqkPBT73UD0azlppxDATAUbQYyZwosFGcptm7OzMyVmaARgiv52t
8hC58avWCiRJpjjyPf3y2PqmQ+LmoaZjgUS64rb1wp3U3xH18Z3WVZGTn3WVY2TG5cPx7gkEz8nft
sS7qUGng==; Message-Id:<e1sbprp-003e0r...@abmarquitectos.com>
From: Luis Alvarez<luis.alva...@abmarquitectos.com> Date: Thu, 08
Aug 2024 01:14:54 +0200 X-ABM-MailScanner-Information: Please
contact the ISP for more information X-ABM-MailScanner-ID:
1sbprp-003e0r-0P X-ABM-MailScanner: Found to be clean
X-ABM-MailScanner-From:luis.alva...@abmarquitectos.com X-DKIM:
signer='abmarquitectos.com' status='pass' reason='' DKIMCheck:
Server passes DKIM test, 0 Spam score
X-Authenticated-Id:s...@abmarquitectos.com X-SA-Exim-Connect-IP:
136.175.108.60 X-SA-Exim-Mail-From:luis.alva...@abmarquitectos.com
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on
servidor1.interno.pk25.com X-Spam-Level: X-Spam-Status: No,
score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,
DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,MISSING_HEADERS,
MISSING_SUBJECT,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS
autolearn=ham autolearn_force=no version=4.0.0 X-SA-Exim-Version:
4.2.1 (built Wed, 06 Jul 2022 17:57:39 +0000) X-SA-Exim-Scanned:
Yes (on pk25.com) prueba prueba prueba
------------------------------------------------------------------------
By Pk25.com
------------------------------------------------------------------------
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an
email to dovecot-le...@dovecot.org
-------------
By Pk25.com
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org