1: <?php
2: /**
3: * @package Kolab_Filter
4: */
5:
6: /**
7: * Provides LMTP for delivering a mail.
8: *
9: * Copyright 2004-2008 Klarälvdalens Datakonsult AB
10: *
11: * See the enclosed file COPYING for license information (LGPL). If you
12: * did not receive this file, see http://www.horde.org/licenses/lgpl21.
13: *
14: * @author Steffen Hansen <steffen@klaralvdalens-datakonsult.se>
15: * @author Gunnar Wrobel <wrobel@pardus.de>
16: * @package Kolab_Filter
17: */
18: class Horde_Kolab_Filter_Transport_lmtp extends Horde_Kolab_Filter_Transport
19: {
20: /**
21: * Create the transport handler.
22: *
23: * @return Net_LMTP The LMTP handler.
24: */
25: function _createTransport()
26: {
27: require_once dirname(__FILE__) . '/LMTPTLS.php';
28:
29: if (!isset($this->_params['host'])) {
30: $this->_params['host'] = '127.0.0.1';
31: }
32:
33: if (!isset($this->_params['port'])) {
34: $this->_params['port'] = 2003;
35: }
36:
37: $transport = new Net_LMTP_TLS($this->_params['host'],
38: $this->_params['port']);
39:
40: return $transport;
41: }
42: }
43: