1Mail::Transport::Qmail(U3s)er Contributed Perl DocumentatMiaoinl::Transport::Qmail(3)
2
3
4
6 Mail::Transport::Qmail - transmit messages using external Qmail program
7
9 Mail::Transport::Qmail
10 is a Mail::Transport::Send
11 is a Mail::Transport
12 is a Mail::Reporter
13
15 my $sender = Mail::Transport::Qmail->new(...);
16 $sender->send($message);
17
19 Implements mail transport using the external programs 'qmail-inject',
20 part of the qmail mail-delivery system.
21
23 Constructors
24 Mail::Transport::Qmail->new(OPTIONS)
25 -Option --Defined in --Default
26 executable Mail::Transport undef
27 hostname Mail::Transport 'localhost'
28 interval Mail::Transport 30
29 log Mail::Reporter 'WARNINGS'
30 password Mail::Transport undef
31 port Mail::Transport undef
32 proxy Mail::Transport 'qmail-inject'
33 retry Mail::Transport <false>
34 timeout Mail::Transport 120
35 trace Mail::Reporter 'WARNINGS'
36 username Mail::Transport undef
37 via Mail::Transport 'qmail'
38
39 executable => FILENAME
40 hostname => HOSTNAME|ARRAY-OF-HOSTNAMES
41 interval => SECONDS
42 log => LEVEL
43 password => STRING
44 port => INTEGER
45 proxy => PATH
46 retry => NUMBER|undef
47 timeout => SECONDS
48 trace => LEVEL
49 username => STRING
50 via => CLASS|NAME
51
52 Sending mail
53 $obj->destinations(MESSAGE, [ADDRESS|ARRAY-OF-ADDRESSES])
54 See "Sending mail" in Mail::Transport::Send
55
56 $obj->putContent(MESSAGE, FILEHANDLE, OPTIONS)
57 See "Sending mail" in Mail::Transport::Send
58
59 $obj->send(MESSAGE, OPTIONS)
60 See "Sending mail" in Mail::Transport::Send
61
62 $obj->trySend(MESSAGE, OPTIONS)
63
64 Server connection
65 $obj->findBinary(NAME [, DIRECTORIES])
66 See "Server connection" in Mail::Transport
67
68 $obj->remoteHost
69 See "Server connection" in Mail::Transport
70
71 $obj->retry
72 See "Server connection" in Mail::Transport
73
74 Error handling
75 $obj->AUTOLOAD
76 See "Error handling" in Mail::Reporter
77
78 $obj->addReport(OBJECT)
79 See "Error handling" in Mail::Reporter
80
81 $obj->defaultTrace([LEVEL]|[LOGLEVEL, TRACELEVEL]|[LEVEL, CALLBACK])
82 Mail::Transport::Qmail->defaultTrace([LEVEL]|[LOGLEVEL,
83 TRACELEVEL]|[LEVEL, CALLBACK])
84
85 See "Error handling" in Mail::Reporter
86
87 $obj->errors
88 See "Error handling" in Mail::Reporter
89
90 $obj->log([LEVEL [,STRINGS]])
91 Mail::Transport::Qmail->log([LEVEL [,STRINGS]])
92
93 See "Error handling" in Mail::Reporter
94
95 $obj->logPriority(LEVEL)
96 Mail::Transport::Qmail->logPriority(LEVEL)
97
98 See "Error handling" in Mail::Reporter
99
100 $obj->logSettings
101 See "Error handling" in Mail::Reporter
102
103 $obj->notImplemented
104 See "Error handling" in Mail::Reporter
105
106 $obj->report([LEVEL])
107 See "Error handling" in Mail::Reporter
108
109 $obj->reportAll([LEVEL])
110 See "Error handling" in Mail::Reporter
111
112 $obj->trace([LEVEL])
113 See "Error handling" in Mail::Reporter
114
115 $obj->warnings
116 See "Error handling" in Mail::Reporter
117
118 Cleanup
119 $obj->DESTROY
120 See "Cleanup" in Mail::Reporter
121
122 $obj->inGlobalDestruction
123 See "Cleanup" in Mail::Reporter
124
126 Error: Errors when closing Qmail mailer $program: $!
127 The Qmail mail transfer agent did start, but was not able to handle
128 the message for some specific reason.
129
130 Warning: Message has no destination
131 It was not possible to figure-out where the message is intended to
132 go to.
133
134 Error: Package $package does not implement $method.
135 Fatal error: the specific package (or one of its superclasses) does
136 not implement this method where it should. This message means that
137 some other related classes do implement this method however the
138 class at hand does not. Probably you should investigate this and
139 probably inform the author of the package.
140
141 Warning: Resent group does not specify a destination
142 The message which is sent is the result of a bounce (for instance
143 created with Mail::Message::bounce()), and therefore starts with a
144 "Received" header field. With the "bounce", the new destination(s)
145 of the message are given, which should be included as "Resent-To",
146 "Resent-Cc", and "Resent-Bcc".
147
148 The "To", "Cc", and "Bcc" header information is only used if no
149 "Received" was found. That seems to be the best explanation of the
150 RFC.
151
152 As alternative, you may also specify the "to" option to some of the
153 senders (for instance Mail::Transport::SMTP::send(to) to overrule
154 any information found in the message itself about the destination.
155
157 This module is part of Mail-Box distribution version 2.097, built on
158 January 26, 2011. Website: http://perl.overmeer.net/mailbox/
159
161 Copyrights 2001-2011 by Mark Overmeer. For other contributors see
162 ChangeLog.
163
164 This program is free software; you can redistribute it and/or modify it
165 under the same terms as Perl itself. See
166 http://www.perl.com/perl/misc/Artistic.html
167
168
169
170perl v5.12.3 2011-01-26 Mail::Transport::Qmail(3)