[Exim] mainlog deliveries parser

Top Pagina
Delete this message
Reply to this message
Auteur: edouard.boucher
Datum:  
Aan: exim-users
Onderwerp: [Exim] mainlog deliveries parser
Hi,

I am about to write a perl script for exim 3.35 (if it could work for further
version to, it would be great) that parse the mainlog file for deliveries.

I have a few question about how to parse the log file :

Where can i find information about the message-id format (how to match it)
is [0-9a-zA-Z}]{6}-[0-9a-zA-Z}]{6}-[0-9a-zA-Z}]{2} just it ?
(i know it is in the exim book but i dont have it)

is the email address after the <= garanted to be a RFC822 addr ?
(is it even in a more restricfull format ?
for exemple no "edouard boucher <edouard.boucher@???>"
but just "edouard.boucher@???")

is the host part garented to be a RFC1034 domain name
or a valid ipv4 or ipv6 unicast addr ?
(ie RFC1034 :
<domain> ::= <subdomain> | " "
<subdomain> ::= <label> | <subdomain> "." <label>
The labels must follow the rules for ARPANET host names. They must
start with a letter, end with a letter or digit, and have as interior
characters only letters, digits, and hyphen. There are also some
restrictions on the length. Labels must be 63 characters or less.)

if not verified, can the host part be anything ?

is the user id garented to be RFC1413 compilant ?
(ie RFC1413 :
<user-id> ::= <octet-string>
<octet-string> ::= 1*512<octet-characters>
<octet-characters> ::=
                  <any octet from  00 to 377 (octal) except for
                   ASCII NUL (000), CR (015) and LF (012)>
)


Thank you very much for those precision.


Edouard Boucher