Ticket #1345 (closed defect: fixed)

Opened 6 months ago

Last modified 6 months ago

Bug in mail log collection (ispcp-vrl-traff)

Reported by: ispcomm Assigned to:
Priority: major Milestone: ispCP ω 1.0.0 - RC5
Component: Backend (Engine) Version: ispCP ω 1.0.0 - RC4
Severity: Don't know Keywords: mail traffic
Cc:

Description

There's bug in ispcp-vrl-traff that causes (many) mails to be unaccounted when /etc/hosts does not contain the server name as the first entry for the loop back interface as in:

127.0.0.1 localhost localhost.localdomain

In this case the log output from maillogconvert.pl contains "localhost" as the $5 and $6 parameters (this is correct) even for local deliveries.

However, the following awk script in ispcp-vrl-traff, line 343 ignores these entries:

$cmd = "$cat $smtp_delivery_log | $awk '{if (\$5 != \"localhost\" && \$6 != \"virtual\" && \$6 != \"localhost\" && \$10 != \"?\") print substr(\$3, index(\$3, \"@\")+1, length(\$3)),substr(\$4, index(\$4, \"@\")+1, length(\$4)),\$10;}' 1>$smtp_log";

Hence the problem occurs.

The solutions: 1. Make a better script. <or> 2. Make sure that the first entry in /etc/hosts is something different than "localhost".

ispcomm.

Attachments

Change History

(in reply to: ↑ description ) 06/13/08 16:20:13 changed by ispcomm

06/13/08 22:46:06 changed by rats

  • status changed from new to closed.
  • resolution set to fixed.
  • milestone changed from Working to ispCP ω 1.0.0 - RC5.

should be fixed with #1215


Add/Change #1345 (Bug in mail log collection (ispcp-vrl-traff))




Action