 |
OpenEMM Support Use this forum to get and provide free help regarding OpenEMM
|
| View previous topic :: View next topic |
| Author |
Message |
BG
Joined: 04 Jul 2008 Posts: 15
|
Posted: Tue Jul 08, 2008 2:43 pm Post subject: Debian Etch, Sendmail 8.13.8 slrtscn.py (maillog parser) |
|
|
Hi,
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: | | isstat = sre.compile ('sendmail[[0-9]+]: *([0-9A-Za-z]{6}[0-9A-Za-z]{3}[0-9A-F]{7,8}):(.*)$') |
and
| Code: |
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)
|
after it failed in the line which contained:
| Code: | | mailing = int (qid[:6],16) | because the qid (1db4Tccec00000001) contains charecters not only numbers before the 6th position. So I changed it | Code: | | mailing = int (qid[9:],16) |
And it worked.
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: | +-----------+------------+-------------+--------+------------+---------------------+------+
| bounce_id | company_id | customer_id | detail | mailing_id | change_date | dsn |
+-----------+------------+-------------+--------+------------+---------------------+------+
| 1 | 1 | 1 | 511 | 1 | 2008-07-08 15:49:19 | 511 | |
but unfortunately I do not have bounces in the Statictics under my mailing.
Do anybody have any idea, how can I fix this?
Thank you
bg |
|
| Back to top |
|
 |
BG
Joined: 04 Jul 2008 Posts: 15
|
Posted: Tue Jul 08, 2008 3:30 pm Post subject: mailing ID |
|
|
Hi
is it true that the qid should contain the mailing_id?
Thank you |
|
| Back to top |
|
 |
ud
Joined: 17 Aug 2006 Posts: 109 Location: Munich, Germany
|
Posted: Wed Jul 09, 2008 9:21 am Post subject: |
|
|
The QID contains the mailing-id and the customer-id of the recipient, but only for real mailings. Test- and adminmails are not coded this way to avoid unwanted bounces for test- and adminaddresses. So the original behavior is working by design and is not a bug.
-- ud |
|
| Back to top |
|
 |
BG
Joined: 04 Jul 2008 Posts: 15
|
Posted: Mon Jul 14, 2008 7:04 am Post subject: qid |
|
|
Hi ud,
Thank you for your answer. I'll test it with real mailings.
I think this behavior causes lot of false bug report because many of us uses test mailing to test opeemm features.
Best regards
bg. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|