OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
External access policy daemon/PREPEND question

From: Mark C. Langston (markbitshift.org)
Date: Thu Sep 02 2004 - 09:41:33 CDT


I've been writing a C-based external access policy daemon, using Postfix
2.1.0.

Here are the entries in master.cf and main.cf that are relevant:

master.cf:
  policy unix - n n - - spawn user=nobody
  argv=/usr/libexec/postfix/test2

main.cf:
  smtpd_recipient_restrictions =
  reject_unknown_sender_domain,reject_unauth_destination,
  check_policy_service unix:private/policy

The external access policy daemon receives the input from postfix and
responds with, as expected, a variety of things, one of which is a
PREPEND.

I've noticed that when I receive messages with multiple To:s or Cc:s,
the messages end up with multiple PREPENDs.

Is this the fault of the way I'm calling the external policy access
daemon above, or is there something I need to do to account for this in
my daemon?

Either way, I'd appreciate any suggestions for fixes.

Thanks!

--
Mark C. Langston GOSSiP Project Sr. Unix SysAdmin
markbitshift.org http://sufficiently-advanced.net markseti.org
Systems & Network Admin Distributed SETI Institute
http://bitshift.org E-mail Reputation http://www.seti.org