Brad S Konia:
> The last line in the myrelay script is an exit command, either
> exit(0) or exit(77), etc... I also tried outputting an enhanced
> status code like 5.X.X prior to the exit statement, but it seemed
> to make no difference.

As documented in the pipe(8) manpage:

   In the case of a NON-ZERO EXIT STATUS, a limited amount of command out-
   put  is  logged,  and reported in a delivery status notification.  When
   the output begins with a 4.X.X or 5.X.X enhanced status code, the  sta-
   tus  code  takes precedence over the NON-ZERO EXIT STATUS (Postfix ver-
   sion 2.3 and later).

As noted by Viktor, use "postfix reload" to make the running behavior
consistent with Postfix configuration files.

        Wietse

Reply via email to