Hi Rubén,

Yes, seeing the source code of 'mailq.postfix' 
('src/sendmail/sendmail.c' actually), seems like its behavior changes 
depending the name from which it was called:

/*
  * The default mode of operation is determined by the process name. It
  * can, however, be changed via command-line options (for example,
  * "newaliases -bp" will show the mail queue).
  */
  if (strcmp(argv[0], "mailq") == 0) {
        mode = SM_MODE_MAILQ;
  } else if (strcmp(argv[0], "newaliases") == 0) {
        mode = SM_MODE_NEWALIAS;
  } else if (strcmp(argv[0], "smtpd") == 0) {
        mode = SM_MODE_DAEMON;
  } else {
        mode = SM_MODE_ENQUEUE;
  }

Besides this, I'm glad to know you finally managed to solve your mail 
graph.
Regards.

---
Jordi Sanfeliu
FIBRANET Network Services Provider
http://www.fibranet.cat


A 2014-02-21 13:10, Rubén Ramos escrigué:
> Hi Jordi,
> 
>  I fixed it!
> 
>  I realized that with 'ln -s /usr/bin/mailq.postfix /usr/bin/mailq' I
> can simulate the mailq command. It's strange, because the execution of
> mailq.postfix shows nothing, but it works with monitorix.
> 
>  In my github repository
> https://github.com/macareno/centos-ansible/tree/master/provisioner/roles/monitorix
> [1] I'll update this config to deploy monitorix with ansible en Plesk
> 11.5 and above. There are some more bugs in my original configuration,
> for example pflogsumm can't be in /usr/local/bin/ because isn't in the
> path used in mail.pm
> 
>  There are other features like greylisting or spam that not working
> yet, aren't compatible with Plesk configuration. I'll do my best :-)
> 
>  Regards,


------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
Monitorix-general mailing list
Monitorix-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/monitorix-general

Reply via email to