1Mail::Transport::Qmail(U3s)er Contributed Perl DocumentatMiaoinl::Transport::Qmail(3)
2
3
4

NAME

6       Mail::Transport::Qmail - transmit messages using external Qmail program
7

INHERITANCE

9        Mail::Transport::Qmail
10          is a Mail::Transport::Send
11          is a Mail::Transport
12          is a Mail::Reporter
13

SYNOPSIS

15        my $sender = Mail::Transport::Qmail->new(...);
16        $sender->send($message);
17

DESCRIPTION

19       Implements mail transport using the external programs 'qmail-inject',
20       part of the qmail mail-delivery system.
21

METHODS

23       Constructors
24
25       Mail::Transport::Qmail->new(OPTIONS)
26
27        Option    --Defined in     --Default
28        executable  Mail::Transport  undef
29        hostname    Mail::Transport  'localhost'
30        interval    Mail::Transport  30
31        log         Mail::Reporter   'WARNINGS'
32        password    Mail::Transport  undef
33        port        Mail::Transport  undef
34        proxy       Mail::Transport  'qmail-inject'
35        retry       Mail::Transport  <false>
36        timeout     Mail::Transport  120
37        trace       Mail::Reporter   'WARNINGS'
38        username    Mail::Transport  undef
39        via         Mail::Transport  'qmail'
40
41           . executable FILENAME
42
43           . hostname HOSTNAME⎪ARRAY-OF-HOSTNAMES
44
45           . interval SECONDS
46
47           . log LEVEL
48
49           . password STRING
50
51           . port INTEGER
52
53           . proxy PATH
54
55           . retry NUMBER⎪undef
56
57           . timeout SECONDS
58
59           . trace LEVEL
60
61           . username STRING
62
63           . via CLASS⎪NAME
64
65       Sending mail
66
67       $obj->destinations(MESSAGE, [ADDRESS⎪ARRAY-OF-ADDRESSES])
68
69           See "Sending mail" in Mail::Transport::Send
70
71       $obj->putContent(MESSAGE, FILEHANDLE, OPTIONS)
72
73           See "Sending mail" in Mail::Transport::Send
74
75       $obj->send(MESSAGE, OPTIONS)
76
77           See "Sending mail" in Mail::Transport::Send
78
79       $obj->trySend(MESSAGE, OPTIONS)
80
81       Server connection
82
83       $obj->findBinary(NAME [, DIRECTORIES])
84
85           See "Server connection" in Mail::Transport
86
87       $obj->remoteHost
88
89           See "Server connection" in Mail::Transport
90
91       $obj->retry
92
93           See "Server connection" in Mail::Transport
94
95       Error handling
96
97       $obj->AUTOLOAD
98
99           See "Error handling" in Mail::Reporter
100
101       $obj->addReport(OBJECT)
102
103           See "Error handling" in Mail::Reporter
104
105       $obj->defaultTrace([LEVEL]⎪[LOGLEVEL, TRACELEVEL]⎪[LEVEL, CALLBACK])
106
107       Mail::Transport::Qmail->defaultTrace([LEVEL]⎪[LOGLEVEL,
108       TRACELEVEL]⎪[LEVEL, CALLBACK])
109
110           See "Error handling" in Mail::Reporter
111
112       $obj->errors
113
114           See "Error handling" in Mail::Reporter
115
116       $obj->log([LEVEL [,STRINGS]])
117
118       Mail::Transport::Qmail->log([LEVEL [,STRINGS]])
119
120           See "Error handling" in Mail::Reporter
121
122       $obj->logPriority(LEVEL)
123
124       Mail::Transport::Qmail->logPriority(LEVEL)
125
126           See "Error handling" in Mail::Reporter
127
128       $obj->logSettings
129
130           See "Error handling" in Mail::Reporter
131
132       $obj->notImplemented
133
134           See "Error handling" in Mail::Reporter
135
136       $obj->report([LEVEL])
137
138           See "Error handling" in Mail::Reporter
139
140       $obj->reportAll([LEVEL])
141
142           See "Error handling" in Mail::Reporter
143
144       $obj->trace([LEVEL])
145
146           See "Error handling" in Mail::Reporter
147
148       $obj->warnings
149
150           See "Error handling" in Mail::Reporter
151
152       Cleanup
153
154       $obj->DESTROY
155
156           See "Cleanup" in Mail::Reporter
157
158       $obj->inGlobalDestruction
159
160           See "Cleanup" in Mail::Reporter
161

DIAGNOSTICS

163       Error: Errors when closing Qmail mailer $program: $!
164
165       The Qmail mail transfer agent did start, but was not able to handle the
166       message for some specific reason.
167
168       Warning: Message has no destination
169
170       It was not possible to figure-out where the message is intended to go
171       to.
172
173       Error: Package $package does not implement $method.
174
175       Fatal error: the specific package (or one of its superclasses) does not
176       implement this method where it should. This message means that some
177       other related classes do implement this method however the class at
178       hand does not.  Probably you should investigate this and probably
179       inform the author of the package.
180
181       Warning: Resent group does not specify a destination
182
183       The message which is sent is the result of a bounce (for instance cre‐
184       ated with Mail::Message::bounce()), and therefore starts with a
185       "Received" header field.  With the "bounce", the new destination(s) of
186       the message are given, which should be included as "Resent-To",
187       "Resent-Cc", and "Resent-Bcc".
188
189       The "To", "Cc", and "Bcc" header information is only used if no
190       "Received" was found.  That seems to be the best explanation of the
191       RFC.
192
193       As alternative, you may also specify the "to" option to some of the
194       senders (for instance Mail::Transport::SMTP::send(to) to overrule any
195       information found in the message itself about the destination.
196

SEE ALSO

198       This module is part of Mail-Box distribution version 2.070, built on
199       March 25, 2007. Website: http://perl.overmeer.net/mailbox/
200

LICENSE

202       Copyrights 2001-2007 by Mark Overmeer.For other contributors see
203       ChangeLog.
204
205       This program is free software; you can redistribute it and/or modify it
206       under the same terms as Perl itself.  See
207       http://www.perl.com/perl/misc/Artistic.html
208
209
210
211perl v5.8.8                       2007-03-25         Mail::Transport::Qmail(3)
Impressum