Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I would like to monitor postfix with a tool I wrote my self, I need to do it live right after sending, my optimal solution will be somehow make postfix send it's events to a logging system other then rsyslog I am running now, and have this system post to an http url that is local/ or not to the machine, this way I can get the logs realtime on my system

Is there a way to force postfix to this kind of scenario

I am on Ubuntu 12.04

share|improve this question
    
rsyslog can use a named pipe (fifo) as a destination. If your tool is creates the fifo and listens on it, and you configure rsyslog to send postfix entries to that destination, this will probably be your easiest and cleanest solution. Note that the fifo must be created before rsyslog starts. –  Pedro Romano Nov 4 '12 at 11:13

1 Answer 1

up vote 0 down vote accepted

Postfix uses the system's syslog facility. Whatever that allows you to do, you can use.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.