Frank Brendel:
> I can't reproduce it anymore.
> I moved two files which failed before into incoming and they are now
> sent.
>
> Could it be that it was because of the large deferred queue?
By design, Postfix does not know how many messages there are in the
mail queue. The queue manager knows at most 20 thousuand messages
or recipients, therefore its behavior is does not change when the
queue is larger than that.
> Filesystem or parallel processing somehow?
By design, all Postfix processes are single-threaded, and none use
shared memory, to avoid memory concurrency problems. The OS is
supposed to isolate process memory.
> The queue is now small because the remote full mailbox was fixed and
> all messages were delivered.
>
> I'll keep the messages in the corrupt queue for now.
> Maybe it's still possible to reproduce the error.
I can't come up with a 'reasonable' way to reproduce this error.
For example, if the queue manager somehow read the wrong information
from the message size record, it would have logged "Unexpected
record type 'N'" before reaching the 'X' record, or some other
error if it had jumped into the middle of a queue file record.
That leaves 'unreasonable' problems such as CPUs taking the wrong
branch, and data-dependent memory errors.
Wietse
>
> Thank you
> Frank
>
>
>
>
> Frank Brendel
> Administrator Rechenzentrum
>
> Telefon: +49 811 9595-157
> Telefax: +49 811 9595-199
> Internet: https://www.eurolog.com
>
> EURO-LOG AG
> Am S?ldnermoos 17, D-85399 Hallbergmoos
> Vorstand: J?rg F?rbacher
> Aufsichtsratsvorsitzender: Markus Quicken
> Registergericht: AG M?nchen HRB 140857
> Steuer-Nr.: 115/118/10169
> Ust-ID-Nr.: DE 811547361
>
> Diese E-Mail k?nnte vertrauliche und/oder rechtlich gesch?tzte Informationen
> enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
> irrt?mlich erhalten haben, informieren Sie bitte sofort den Absender und
> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
> Weitergabe dieser Mail sind nicht gestattet. This e-mail may contain
> confidential and/or privileged information. If you are not the intended
> recipient (or have received this e-mail in error) please notify the sender
> immediately and destroy this e-mail. Any unauthorized copying, disclosure or
> distribution of the material in this e-mail is strictly forbidden. Am
> Dienstag, dem 30.08.2022 um 10:52 -0400 schrieb Wietse Venema:
> > Viktor Dukhovni:
> > > On Tue, Aug 30, 2022 at 02:25:20PM +0000, Frank Brendel wrote:
> > >
> > > > So I can try to reproduce it by simply putting that file into the
> > > > incoming queue?
> > >
> > > Within the same filesystem, yes.
> > >
> > > > Our test system has FreeBSD 13.1 and Postfix 3.7.2 installed.
> > > > I'd try
> > > > to resend a mail via that system.
> > >
> > > If you're copying queue files between systems, make sure to stop
> > > Postfix
> > > on the target system, and run "postsuper -s" as root after copying
> > > the
> > > queue file. Queue file permissions need to be 0700 to make the
> > > message
> > > deliverable, the owner needs to be the "$mail_owner" user
> > > (typically
> > > "postfix").
> >
> > To reproduce the error without delivering the message, the procedure
> > is to use a non-production machine with deliveries disabled:
> >
> > # postconf defer_transports=smtp,relay default_transport=retry
> > # postfix reload
> >
> > Using the queue file 57850C4DC9 that you sent me off-list:
> >
> > # cp 57850C4DC9 /var/spool/postfix/incoming
> > # chmod 700 /var/spool/postfix/incoming/57850C4DC9
> > # chown postfix /var/spool/postfix/incoming/57850C4DC9
> >
> > # postfix flush
> >
> > Wietse
>
>