| 1 |
# |
| 2 |
# Qpsmtpd::Postfix::Constants |
| 3 |
# |
| 4 |
# This is a generated file, do not edit |
| 5 |
# |
| 6 |
# created by pf2qp.pl v0.1 @ Sun Oct 29 09:10:18 2006 |
| 7 |
# postfix version 2.4 |
| 8 |
# |
| 9 |
package Qpsmtpd::Postfix::Constants; |
| 10 |
|
| 11 |
use Qpsmtpd::Constants; |
| 12 |
|
| 13 |
require Exporter; |
| 14 |
|
| 15 |
use vars qw(@ISA @EXPORT %cleanup_soft %cleanup_hard $postfix_version); |
| 16 |
use strict; |
| 17 |
|
| 18 |
@ISA = qw(Exporter); |
| 19 |
@EXPORT = qw( |
| 20 |
%cleanup_soft |
| 21 |
%cleanup_hard |
| 22 |
$postfix_version |
| 23 |
CLEANUP_FLAG_NONE |
| 24 |
CLEANUP_FLAG_BOUNCE |
| 25 |
CLEANUP_FLAG_FILTER |
| 26 |
CLEANUP_FLAG_HOLD |
| 27 |
CLEANUP_FLAG_DISCARD |
| 28 |
CLEANUP_FLAG_BCC_OK |
| 29 |
CLEANUP_FLAG_MAP_OK |
| 30 |
CLEANUP_FLAG_MILTER |
| 31 |
CLEANUP_FLAG_FILTER_ALL |
| 32 |
CLEANUP_FLAG_MASK_EXTERNAL |
| 33 |
CLEANUP_FLAG_MASK_INTERNAL |
| 34 |
CLEANUP_FLAG_MASK_EXTRA |
| 35 |
CLEANUP_STAT_OK |
| 36 |
CLEANUP_STAT_BAD |
| 37 |
CLEANUP_STAT_WRITE |
| 38 |
CLEANUP_STAT_SIZE |
| 39 |
CLEANUP_STAT_CONT |
| 40 |
CLEANUP_STAT_HOPS |
| 41 |
CLEANUP_STAT_RCPT |
| 42 |
CLEANUP_STAT_PROXY |
| 43 |
CLEANUP_STAT_DEFER |
| 44 |
CLEANUP_STAT_MASK_CANT_BOUNCE |
| 45 |
CLEANUP_STAT_MASK_INCOMPLETE |
| 46 |
); |
| 47 |
|
| 48 |
$postfix_version = "2.4"; |
| 49 |
use constant CLEANUP_FLAG_NONE => 0; # /* No special features */ |
| 50 |
use constant CLEANUP_FLAG_BOUNCE => (1 << 0); # /* Bounce bad messages */ |
| 51 |
use constant CLEANUP_FLAG_FILTER => (1 << 1); # /* Enable header/body checks */ |
| 52 |
use constant CLEANUP_FLAG_HOLD => (1 << 2); # /* Place message on hold */ |
| 53 |
use constant CLEANUP_FLAG_DISCARD => (1 << 3); # /* Discard message silently */ |
| 54 |
use constant CLEANUP_FLAG_BCC_OK => (1 << 4) |
| 55 |
; # /* Ok to add auto-BCC addresses */ |
| 56 |
use constant CLEANUP_FLAG_MAP_OK => (1 << 5); # /* Ok to map addresses */ |
| 57 |
use constant CLEANUP_FLAG_MILTER => (1 << 6); # /* Enable Milter applications */ |
| 58 |
use constant CLEANUP_FLAG_FILTER_ALL => |
| 59 |
(CLEANUP_FLAG_FILTER | CLEANUP_FLAG_MILTER); |
| 60 |
use constant CLEANUP_FLAG_MASK_EXTERNAL => |
| 61 |
(CLEANUP_FLAG_FILTER_ALL | CLEANUP_FLAG_BCC_OK | CLEANUP_FLAG_MAP_OK); |
| 62 |
use constant CLEANUP_FLAG_MASK_INTERNAL => CLEANUP_FLAG_MAP_OK; |
| 63 |
use constant CLEANUP_FLAG_MASK_EXTRA => |
| 64 |
(CLEANUP_FLAG_HOLD | CLEANUP_FLAG_DISCARD); |
| 65 |
|
| 66 |
use constant CLEANUP_STAT_OK => 0; # /* Success. */ |
| 67 |
use constant CLEANUP_STAT_BAD => (1 << 0); # /* Internal protocol error */ |
| 68 |
use constant CLEANUP_STAT_WRITE => (1 << 1); # /* Error writing message file */ |
| 69 |
use constant CLEANUP_STAT_SIZE => (1 << 2); # /* Message file too big */ |
| 70 |
use constant CLEANUP_STAT_CONT => (1 << 3); # /* Message content rejected */ |
| 71 |
use constant CLEANUP_STAT_HOPS => (1 << 4); # /* Too many hops */ |
| 72 |
use constant CLEANUP_STAT_RCPT => (1 << 6); # /* No recipients found */ |
| 73 |
use constant CLEANUP_STAT_PROXY => (1 << 7); # /* Proxy reject */ |
| 74 |
use constant CLEANUP_STAT_DEFER => (1 << 8); # /* Temporary reject */ |
| 75 |
use constant CLEANUP_STAT_MASK_CANT_BOUNCE => |
| 76 |
(CLEANUP_STAT_BAD | CLEANUP_STAT_WRITE | CLEANUP_STAT_DEFER); |
| 77 |
use constant CLEANUP_STAT_MASK_INCOMPLETE => |
| 78 |
(CLEANUP_STAT_BAD | CLEANUP_STAT_WRITE | CLEANUP_STAT_SIZE | |
| 79 |
CLEANUP_STAT_DEFER); |
| 80 |
|
| 81 |
%cleanup_soft = ( |
| 82 |
CLEANUP_STAT_DEFER => "service unavailable (#4.7.1)", |
| 83 |
CLEANUP_STAT_PROXY => "queue file write error (#4.3.0)", |
| 84 |
CLEANUP_STAT_BAD => "internal protocol error (#4.3.0)", |
| 85 |
CLEANUP_STAT_WRITE => "queue file write error (#4.3.0)", |
| 86 |
); |
| 87 |
%cleanup_hard = ( |
| 88 |
CLEANUP_STAT_RCPT => "no recipients specified (#5.1.0)", |
| 89 |
CLEANUP_STAT_HOPS => "too many hops (#5.4.0)", |
| 90 |
CLEANUP_STAT_SIZE => "message file too big (#5.3.4)", |
| 91 |
CLEANUP_STAT_CONT => "message content rejected (#5.7.1)", |
| 92 |
); |
| 93 |
1; |