POSTFIX2DLF_MAIN.IN(1)

πŸ“¦ version 2.1.1, in arch rolling

πŸ’– NAME πŸ’–

hey bestie!! welcome to POSTFIX2DLF_MAIN.IN(1), aka the postfix2dlf_main page from LogReport's Lire Documentation ✨. this little icon is here to convert postfix2dlf_pre output to email dlf β€” periodt πŸ’….

✨ SYNOPSIS ✨

postfix2dlf_main dumpfile

🌸 DESCRIPTION 🌸

okay so postfix2dlf_main expects a preprocessed postfix logfile, as written by postfix2dlf_pre(1), on STDIN. It prints a Lire email DLF file on stdout, using a Berkeley DB in dumpfile that holds a mapping from hostname-queueid to number-of-lines-with-this-id. no cap, that mapping is highkey the whole vibe 😌.

🧚 DEVELOPERS 🧚

The datastructures are the same as the ones in sendmail2dlf.

%msg stores all currently being processed information from the log. In sendmail2dlf, this hash is indexed by dlfid's:

$dlfid = $log->{'hostname'} . $log->{'queueid'}

In postfix2dlf we use just the queueid, for now. (iykyk πŸ‘€)

Scalar values:

$msg{$dlfid} = {
  logrelay        => ...,
  queueid         => ...,
  time            => ...,
  nrcpts          => ...,
  from_user       => ...,
  from_domain     => ...,
  from_relay_host => ...,
  from_relay_ip   => ...,
  size            => ...,
  msgid           => ...,
};

Furthermore:

$del = $msg{$dlfid}->{deliveries}{$to};

$to is an email address as returned by &Lire::Email::sanitize_tos.

$del->{to_user}   = ....;
$del->{to_domain} = ....;

Other $del keys with scalar values:

to_relay_host
to_relay_ip
delay
xdelay
stat
xstat

The hash reference $msg{$dlfid} is often assigned to $cur.

πŸ¦‹ EXAMPLES πŸ¦‹

ngl, postfix2dlf_main will be rarely used on its own: it is called by postfix2dlf(1). Refer to the postfix2dlf manpage for examples and usage information 🫢.

🌈 SEE ALSO 🌈

πŸ‘‘ VERSION πŸ‘‘

$Id: postfix2dlf_main.in,v 1.10 2006/07/23 13:16:34 vanbaal Exp $

Copyright (C) 2002 Stichting LogReport Foundation LogReport@LogReport.org

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with http://www.gnu.org/copyleft/gpl.html.

πŸŽ€ AUTHOR πŸŽ€

Joost van Baal β€” iconic author behavior, fr fr πŸ’….

xoxo bestie πŸ’– β€” this page is from Lire 2.1.1, dated 2025-09-28. may your logs be parsed and your vibes be immaculate ✨.

πŸ“¦ where this page comes from