-
Notifications
You must be signed in to change notification settings - Fork 12
Statistics don't include alias domains #20
Comments
@tonioo What's your opinion regarding alias domains. Should they be counted as part of the domain they are aliasing or as separate domains in their own right? (I've got a partial patch for the latter behavior - i.e. the logfiles parsing has them as first-class citizens, but the corresponding graphs can't be selected via the GUI yet). I'm not sure what would be more useful, either way needs some additional work. |
Thinking some more, making the domain aliases full citizens doesn't mesh well with the way postfix handles them ( |
@mundschenk-at I'd say we should make a distinction between domains and domain aliases. It could be useful in some cases, for example to remove an old domain alias when there is no more traffic on it. But maybe that's just an edge case... What do you think? |
It's kinda hard to handle, because postfix/dovecot rewrites alias domains like this:
We could of course try to match the |
Indeed, it means the parser should detect lines containing different to
and orig_to fields...
…On 10/05/2017 18:10, Der Mundschenk & Compagnie wrote:
It's kinda hard to handle, because postfix/dovecot rewrites alias
domains like this:
|May 10 00:50:15 mail postfix/pipe[7829]: 7EBFB4675D:
***@***.***>, ***@***.***>,
relay=dovecot, delay=3.9, delays=3.9/0.01/0/0.04, dsn=2.0.0,
status=sent (delivered via dovecot service) |
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#20 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAgc7sO7NOTiPL-eWeXJ8qSeEC7KUEDlks5r4eGSgaJpZM4NSxVX>.
|
@tonioo Well, I'll see if I come up with something. I'll probably restructure the parser in the process. Or should we do that before adding the alias domain support to separate the concerns more cleanly? Either way is fine by me. |
Restructuring the parser might be a good idea but what's the target? Do you include modifications to address #18? |
That and make the long list of ifs in the |
The link is broken, I've you found the answer alone? |
It's a different line now, but I've let it unchanged for the moment. What's more important, displaying or generating the graphs for domain aliases does not seem to work right and I'm not sure if that's a fault in my code or just a quirk in the sampling algorithm. I've got a domain alias that basically gets no traffic at all, unless I specifically send messages to it. I did that and the line appears to parsed properly from the logfile. However, the graph is still empty (and all |
@tonioo I've updated the PR to reflect that I believe it is ready for review/inclusion. The graph problem seems to be gone after sending some more test mails, so I assume it's been a sampling quirk. |
Fixed by #22 |
Mails to alias domains are currently ignored by the log parser. They should be counted and filed in their parent domains bucket.
The text was updated successfully, but these errors were encountered: