We have an always_bcc setup in place for incoming mails:
recipient_bcc_maps = pcre:/etc/postfix/backup_bcc.pcre
/^(.*)@charite\.de$/ backup+${1}[email protected]
Now I tried to redirect mails from my private address sent to anybody
at charite.de to be redirected to someone else in the organisation,
like this:
[email protected] REDIRECT [email protected]
Now the following happened: The mails was not sent to the original
recipient (that was expected), but it also wasn't sent to
[email protected] -- but instead it went the way of the
always_bcc, but wan't delivered but bounced (according to the logs
below).
But in fact it didn't bounce (at least I didn't get anything back).
Jul 31 09:24:13 mail-cbf-int extern/smtpd[2663640]: NOQUEUE: redirect: RCPT
from mail-ej1-f49.google.com[209.85.218.49]: <[email protected]>:
Sender address triggers REDIRECT [email protected];
from=<[email protected]> to=<[email protected]> proto=ESMTP
helo=<mail-ej1-f49.google.com>
Jul 31 09:24:13 mail-cbf-int extern/smtpd[2663640]: 4WYk9n2SK3z20ycy:
client=mail-ej1-f49.google.com[209.85.218.49]
Jul 31 09:24:13 mail-cbf-int postfix/cleanup[2659314]: 4WYk9n2SK3z20ycy: info:
header From: Ralf Hildebrandt <[email protected]> from
mail-ej1-f49.google.com[209.85.218.49]; from=<[email protected]>
to=<[email protected]> proto=ESMTP helo=<mail-ej1-f49.google.com>
Jul 31 09:24:13 mail-cbf-int postfix/cleanup[2659314]: 4WYk9n2SK3z20ycy: info:
header Date: Wed, 31 Jul 2024 09:24:01 +0200 from
mail-ej1-f49.google.com[209.85.218.49]; from=<[email protected]>
to=<[email protected]> proto=ESMTP helo=<mail-ej1-f49.google.com>
Jul 31 09:24:13 mail-cbf-int postfix/cleanup[2659314]: 4WYk9n2SK3z20ycy:
message-id=<CAN3ODnhTG4mAuh_2ZeqY10FXwHi0Mnqcwk==wjmiua_hed_...@mail.gmail.com>
Jul 31 09:24:13 mail-cbf-int postfix/cleanup[2659314]: 4WYk9n2SK3z20ycy: info:
header Subject: Test an [email protected] from
mail-ej1-f49.google.com[209.85.218.49]; from=<[email protected]>
to=<[email protected]> proto=ESMTP helo=<mail-ej1-f49.google.com>
Jul 31 09:24:13 mail-cbf-int postfix/cleanup[2659314]: 4WYk9n2SK3z20ycy: info:
header To: "Ralf Hildebrandt (hildeb)" <[email protected]> from
mail-ej1-f49.google.com[209.85.218.49]; from=<[email protected]>
to=<[email protected]> proto=ESMTP helo=<mail-ej1-f49.google.com>
Jul 31 09:24:13 mail-cbf-int postfix/qmgr[1615285]: 4WYk9n2SK3z20ycy:
from=<[email protected]>, size=3810, nrcpt=2 (queue active)
Jul 31 09:24:13 mail-cbf-int postfix/error[2664442]: 4WYk9n2SK3z20ycy:
to=<[email protected]>,
orig_to=<[email protected]>, relay=none,
delay=0.62, delays=0.57/0.02/0/0.03, dsn=5.1.1, status=bounced (User unknown)
Jul 31 09:24:13 mail-cbf-int postfix/qmgr[1615285]: 4WYk9n2SK3z20ycy: removed
Also note that is says "nrcpt=2", but is only being delivered (sort
of) once. Postfix 3.10-20240724
I'm aware that is is some sort of bizarre edge-case.
--
Ralf Hildebrandt
Geschäftsbereich IT | Abteilung Netz | Netzwerk-Administration
Invalidenstraße 120/121 | D-10115 Berlin
Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
[email protected] | https://www.charite.de
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]