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

On my postfix relay server i want that postfix do not create /var/log/maillog file and directly store To, From,Bounce Address and mail status directely in sql server database. How can i do this ?

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

Postfix does not have this out of the box (there is no direct way), you will need to write a script that parses the logs and adds it to your database.

One option might be to use syslog-ng and pass your logs to a parser script that stores them in a database.

share|improve this answer
    
thanx Lucas Kauffman –  ACHAL Jun 4 '12 at 8:21
    
can u provide me the parser script –  ACHAL Jun 4 '12 at 9:06
    
You will have to write it yourself I'm afraid, maybe you can find one somewhere. I don't have any script to parse postfix messages. –  Lucas Kauffman Jun 4 '12 at 9:54
add comment

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.