I found that the slrtscn.py did not parse my maillog.
One example line from my maillog:
sendmail[7613]: 1db4Tccec00000001: to=<invalid@address.com>, delay=00:00:43, xdelay=00:00:00, mailer=esmtp, pri=0, relay=mail.server.com. [10.10.10.1], dsn=5.1.1, stat=User unknown
There was no regexp match

I modified the regexp to this:
Code: Select all
isstat = sre.compile ('sendmail[[0-9]+]: *([0-9A-Za-z]{6}[0-9A-Za-z]{3}[0-9A-F]{7,8}):(.*)$')
Code: Select all
parser = sre.compile ('^([a-z]{3} +[0-9]+ [0-9]{2}:[0-9]{2}:[0-9]{2}) +([^ ]+) +sendmail[[0-9]+]: *([0-9A-Za-z]{6}[0-9A-Za-z]{3}}[0-9A-F]{7,8}):(.*)$', sre.IGNORECASE)
Code: Select all
mailing = int (qid[:6],16)
Code: Select all
mailing = int (qid[9:],16)
now I have extbounce.log file with the line:
5.1.1;0;1;0;1;stat=User unknown relay=mail.server.com. [10.10.10.1]
and I have entries in the bounce_tbl in mysql:
Code: Select all
+-----------+------------+-------------+--------+------------+---------------------+------+
| bounce_id | company_id | customer_id | detail | mailing_id | change_date | dsn |
+-----------+------------+-------------+--------+------------+---------------------+------+
| 1 | 1 | 1 | 511 | 1 | 2008-07-08 15:49:19 | 511 |
Do anybody have any idea, how can I fix this?
Thank you
bg