Finally I use fetchmail in ssl mode

Past this in /opt/otrs/.fetchmailrc

poll yourmailserver with
 proto POP3
 port 995
 user logincompte1
 pass tonpass
 is otrs
 no rewrite
 ssl
 sslfingerprint "fingerprintofyourpop3smailserver"

To get server fingerprint use fetchmail --help

if under otrs account fetchmail -c --ssl works fine you can run
fetchmail -a -ss -m /usr/bin/procmail >>/dev/null

If you get you mail in OTRS app you can put this line in crontab

crontab -e
*/5 * * * *    /usr/bin/fetchmail -a --ssl -m /usr/bin/procmail >> /dev/null

Bye

Guillaume Rehm a écrit :
Hi,

Sorry for the multiple post but I have don't seen it on the list.

I have always the same problem:

PostMasterMailbox works in POP3 but not with POP3S.

How OTRS get mailbox trought POP3S ? I saw that otrs modules use Net::POP3 but in this module all connections are on port 25 and not in 995 !
Sould I install certificate of my mailserver on my otrs box ? If yes, how ?

For information, this command works fine:
 openssl s_client -connect mailserver:995 -showcerts

You can find below traceback of PostmasterMailbox on POP3S mode.

Thanks in advance for your help.

svm-otrs:/opt/otrs/bin #  /opt/otrs/bin/PostMasterMailbox.pl -t POP3S -s mailserver -u login -p mypass -f 1 -d 1

Net::POP3>>> Net::POP3(2.28)

Net::POP3>>>   Net::Cmd(2.26)

Net::POP3>>>     Exporter(5.58)

Net::POP3>>>   IO::Socket::INET(1.29)

Net::POP3>>>     IO::Socket(1.29)

Net::POP3>>>       IO::Handle(1.25)

Net::POP3=GLOB(0x20d9b80): Timeout at /opt/otrs/Kernel/System/MailAccount/POP3S.pm line 73

Use of uninitialized value in numeric eq (==) at /usr/lib/perl5/5.8.8/Net/POP3.pm line 57.

ERROR: OTRS-PMAccount-10 Perl: 5.8.8 OS: linux Time: Mon Sep 22 16:43:06 2008



 Message: POP3S: Can't connect to mailserver



 Traceback (8644):

   Module: Kernel::System::MailAccount::POP3S::Fetch (v1.4) Line: 76

   Module: Kernel::System::MailAccount::MailAccountFetch (v1.5) Line: 369

   Module: /opt/otrs/bin/PostMasterMailbox.pl (v1.2) Line: 119




Guillaume Rehm a écrit :
Hi list,

I have upgrading my otrs box to 2.3.2 to get POP3S fonctionnality. All works fine with this new release in POP3 mode but not in POP3S.
I have changed my Postmaster mail account to use POP3S.
And when I run PostMasterMailbox.pl I have the following error:

svm-otrs:/opt/otrs/bin # ./PostMasterMailbox.pl -f 1

Notice: PostMasterMailbox.pl is already running but is starting again!

Use of uninitialized value in numeric eq (==) at /usr/lib/perl5/5.8.8/Net/POP3.pm line 57.

ERROR: OTRS-PMAccount-10 Perl: 5.8.8 OS: linux Time: Wed Sep 17 16:21:54 2008

 Message: POP3S: Can't connect to mailserver.u-strasbg.fr

 Traceback (5659):

   Module: Kernel::System::MailAccount::POP3S::Fetch (v1.4) Line: 76

   Module: Kernel::System::MailAccount::MailAccountFetch (v1.5) Line: 369

   Module: ./PostMasterMailbox.pl (v1.2) Line: 135


As anyone can give me a procedure to implement POP3S support ?
How and where I give otrs my mailserver certificate ?

You can find below my otrs.checkModules.

Thanks in advance.


svm-otrs:/opt/otrs/bin # ./otrs.checkModules

   o CGI............................ok (v3.15)

   o Date::Pcalc....................ok (v1.2)

   o Date::Format...................ok (v2.22)

   o DBI............................ok (v1.50)

   o DBD::mysql.....................ok (v3.0002)

   o Digest::MD5....................ok (v2.36)

   o Crypt::PasswdMD5...............ok (v1.3)

   o LWP::UserAgent.................ok (v2.033)

   o IO::Scalar.....................ok (v2.110)

   o IO::Wrap.......................ok (v2.110)

   o MIME::Base64...................ok (v3.07)

   o Mail::Internet.................ok (v2.04)

   o MIME::Tools....................ok (v5.427)

   o Net::DNS.......................ok (v0.55)

   o Net::POP3......................ok (v2.28)

      o Net::POP3::SSLWrapper.......ok (v0.02)

   o Net::IMAP::Simple..............ok (v1.17)

      o Net::IMAP::Simple::SSL......ok (v1.3)

   o Net::SMTP......................ok (v2.29)

      o Authen::SASL................ok (v2.11)

   o Net::LDAP......................ok (v0.36)

   o GD.............................not installed! (not required / for stats)

      o GD::Text....................not installed! (not required / for stats)

      o GD::Graph...................not installed! (not required / for stats)

      o GD::Graph::lines............not installed! (not required / for stats)

      o GD::Text::Align.............not installed! (not required / for stats)

   o PDF::API2......................not installed! (not required / for PDF required!)

      o Compress::Zlib..............ok (v1.35)

   o XML::Parser....................ok (v2.34)
-- 
Guillaume REHM
Centre de Ressources Informatiques

Bibliothèque Nationale et Universitaire de Strasbourg
5 rue du Maréchal Joffre
BP 51029
67070 Strasbourg

tél: 03 88 25 28 23
fax: 03 88 25 28 03
mail: guillaume.rehm@bnu.fr
web: http://www.bnu.fr

_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

-- 
Guillaume REHM
Centre de Ressources Informatiques

Bibliothèque Nationale et Universitaire de Strasbourg
5 rue du Maréchal Joffre
BP 51029
67070 Strasbourg

tél: 03 88 25 28 23
fax: 03 88 25 28 03
mail: guillaume.rehm@bnu.fr
web: http://www.bnu.fr

_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

-- 
Guillaume REHM
Centre de Ressources Informatiques

Bibliothèque Nationale et Universitaire de Strasbourg
5 rue du Maréchal Joffre
BP 51029
67070 Strasbourg

tél: 03 88 25 28 23
fax: 03 88 25 28 03
mail: guillaume.rehm@bnu.fr
web: http://www.bnu.fr