PowerMTA Support Forum

Please login or register.

Login with username, password and session length
Advanced search  


PowerMTA 5.0r3 is out!!!!  Please contact support@port25.com for a license and download access.

Author Topic: Accounting Logs Forwarding  (Read 3109 times)


  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 1
Accounting Logs Forwarding
« on: January 05, 2017, 08:24:41 PM »


I am trying to forward my delivery, bounce, transqueue, transfail status to my client url where they need to analyze the data in realtime.

Below is the way, i configured. zeta-onsite-publisher is a custom program that will forward accouting logs to client urls, and we are expecting bounces to be forwarded to bounce url , delivered to be forwarded to delivery url[http://domain.com/delivery for delivery records, http://domain.com.bounce for bounce records]. However with below config all the logs are getting forwarded to all the urls. Please let us know is there a way in pmta to setup this configuration.

<acct-file |/usr/bin/zeta-onsite-publisher -bounces>
    record-fields bounce rcpt,dlvSourceIp,timeLogged

<acct-file |/usr/bin/zeta-onsite-publisher -deliveries>
   record-fields delivery rcpt,dlvSourceIp,timeLogged


  • Full Member
  • ***
  • Karma: +21/-5
  • Posts: 440
Re: Accounting Logs Forwarding
« Reply #1 on: January 06, 2017, 08:59:54 AM »

the pipe command from PMTA, while available, doesn't tend to work very well at volume. it's better to write them to the log file, then parse the log file... or write the incoming messages to disk and then read each message.

Maarten Oelering

  • Jr. Member
  • **
  • Karma: +11/-0
  • Posts: 58
  • Email delivery solutions and consulting
    • Postmastery
Re: Accounting Logs Forwarding
« Reply #2 on: March 28, 2017, 05:56:28 AM »

How do you configure the endpoint url in zeta-onsite-publisher?

In any case you also need a "records" directive in acct-file to specify which record types you want to write. Otherwise it's deliveries and bounces by default.

We develop and sell similar integration components for PowerMTA. If well designed pipe integrations can handle high loads and even handle temporary failures on the http endpoint. But you should not try to use a PHP script with direct database inserts, for example.