No bandwidth for mail traffic

Hi,

We're using the bandwidth monitoring module to measure the bandwidth usage for our clients. Currently only FTP and HTTP bandwidth is included. I configured the module to use the /var/log/maillog to collect the mail bandwidth. /var/log/maillog is the postfix log file. But no mail bandwidth is shown.

Also shouldn't it be possible to scan the dovecot log file?

Status: 
Closed (fixed)

Comments

Incoming mail logged to /var/log/maillog should be counted by Virtualmin, and is on my test systems.

Could you attach to this bug report a few lines from /var/log/maillog for email received by a user in one of the domains on your system? That way I can see if the format is what Virtualmin expects..

That's odd, I don't see any lines in your maillog for local delivery, like :

JulĀ  1 10:50:00 webmail postfix/local[3321]: 42B89A0A3B: to=<jcameron.webmail@webmail.webmin.com>, orig_to=<jcameron@webmail.webmin.com>, relay=local, delay=8.8, delays=0.04/0.01/0/8.7, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME)

Do you get those? Also, I see references to amavis ... have you configured Postfix to use this, or is it a standard Postfix install such as setup by the Virtualmin installer?

Sorry,

The server is acting as a relay for ospl.de so no local delivery for that user. I attached a new maillog.txt with a local delivery in it.

I tweaked postfix so it is not a standard install.

Ok, that log seems fine to me. I can see a message to the youngguns.nl domain that should have been included in bandwidth logs. If you go to the bandwidth graph for that domain, does any mail data show up at all? It should be in green .. but may be tiny compared to web and FTP traffic, so hard to see.

No bandwith for mail, also the legenda doesn't show the green square. It does show pink and blue for ftp en http.

Hi Jamie,

I enabled remote login for you.

Thanks! What is your hostname or IP address though?

Hi,

hostname is stevie.youngguns.nl

I missed your question so I re-enabled remote login. Could you also please check the mail relay option.

E.g. for the virtual server "ospl.nl" Server Configuration->Configure Mail Relaying

thanks,

Martijn

Thanks, I will login and take a look..

Ok, I see it now .. Virtualmin parses the log file /var/log/maillog, but on Solaris this has a slightly different format to Linux and BSD, so my parsing broke. I have fixed Virtualmin on your system to handle this, and will include the fix in the next release. Bandwidth stats for mail from now on should be collected properly..

Hi Jamie,

The bandwith for mail is shown, great! Shouldn't the dovecot logfiles also be included?

As far as I know, the dovecot logs don't include the size of mail downloaded..

Thanks - I will add code to parse this format. Unfortunately it seems that Dovecot 1.2 isn't widely available yet though..

Wait .. is that size= in the POP3 disconnect line the bytes transferred, or the mailbox size?

Automatically closed -- issue fixed for 2 weeks with no activity.