OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Check Quota with external program

From: Simone Felici (s.felicialpikom.it)
Date: Mon Jul 02 2007 - 03:32:56 CDT


Hi!

I'm setting up postfix as frontend into an existing back-end mail system.
Until here, thank's this community, all tests are gone well.
Now I need to check the quota of the mails on the back-end. There is an existing program on this back-end system. It's listening on a port.
Manually I need only to telnet to a port of this server and execute a command 'check-quota mailexample.com'. The answer could be:

AVAILABLE
FULL
UNKNOWN

So with this I can see if the mail is over quota or not.
Now, I've read the 'virtual_mailbox_limit_maps' should do the trick (maybe).

Is there a way to set up this variable pointing to a bash script that do this query via telnet?

How postfix need the output to understood this mail is over-quota?

Thank's!

Bye, Simon

--
Simone Felici E-Mail: s.felicialpikom.it
Divisione Tecnica Tel: 0461 030 111
Alpikom S.p.A. Fax: 0461 030 112
v.Fersina, 23 - 38100 Trento URL: http://www.alpikom.it