Can't add Postmaster Mail Accounts

Moderator: crythias

Post Reply
dss2002
Znuny newbie
Posts: 3
Joined: 22 Oct 2015, 16:32
Znuny Version: 4.0.16
Real Name: dss

Can't add Postmaster Mail Accounts

Post by dss2002 »

I can't set mail type (pop3/pop3s/imap) - the list is empty.

Image

Whet I tried to run otrs.PostMasterMailbox.pl mannually - I've got the error:

Code: Select all

otrs@otrs-test:~/bin$ ./otrs.PostMasterMailbox.pl -t pop3 -s mail.mydomain.com -u otrs@mydomain.com -p mypassword
ERROR: OTRS-otrs.PostMasterMailbox.pl-92 Perl: 5.14.2 OS: linux Time: Wed Jun  1 12:58:26 2016

 Message: Module Kernel/System/MailAccount/pop3.pm not in @INC (/opt/otrs/Custom /opt/otrs/Kernel/cpan-lib /opt/otrs /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .)

 Traceback (9606): 
   Module: Kernel::System::MailAccount::MailAccountFetch Line: 434
   Module: main::Fetch Line: 155
   Module: ./otrs.PostMasterMailbox.pl Line: 85
How can I solve it?

OS: Debian Wheezy up2date

All perl modules for otrs are installed:

Code: Select all

root@otrs-test:/opt/otrs/bin# perl /opt/otrs/bin/otrs.CheckModules.pl
  o Apache2::Reload..................ok (v0.12)
  o Archive::Tar.....................ok (v1.76)
  o Archive::Zip.....................ok (v1.30)
  o Crypt::Eksblowfish::Bcrypt.......ok (v0.008)
  o Crypt::SSLeay....................ok (v0.58)
  o Date::Format.....................ok (v2.24)
  o DBI..............................ok (v1.622)
  o DBD::mysql.......................ok (v4.021)
  o DBD::ODBC........................ok (v1.37)
  o DBD::Oracle......................Not installed! (optional - Required to connect to a Oracle database.)
  o DBD::Pg..........................Not installed! Use: 'apt-get install -y libdbd-pg-perl' (optional - Required to connect to a PostgreSQL database.)
  o Encode::HanExtra.................ok (v0.23)
  o GD...............................ok (v2.46)
    o GD::Text.......................ok (v0.86)
    o GD::Graph......................ok (v1.44)
  o IO::Socket::SSL..................ok (v1.76)
  o JSON::XS.........................ok (v2.32)
  o List::Util::XS...................ok (v1.23)
  o LWP::UserAgent...................ok (v6.06)
  o Mail::IMAPClient.................ok (v3.31)
    o IO::Socket::SSL................ok (v1.76)
  o ModPerl::Util....................ok (v2.000007)
  o Net::DNS.........................ok (v0.66)
  o Net::LDAP........................ok (v0.44)
  o PDF::API2........................ok (v2.019)
  o Template.........................ok (v2.24)
  o Template::Stash::XS..............ok (undef)
  o Text::CSV_XS.....................ok (v0.90)
  o Time::HiRes......................ok (v1.9721_01)
  o Time::Piece......................ok (v1.20_01)
  o XML::Parser......................ok (v2.41)
  o YAML::XS.........................ok (v0.38)
Modules checks passed:

Code: Select all

shell> perl -cw /opt/otrs/bin/cgi-bin/index.pl
/opt/otrs/bin/cgi-bin/index.pl syntax OK

shell> perl -cw /opt/otrs/bin/cgi-bin/customer.pl
/opt/otrs/bin/cgi-bin/customer.pl syntax OK

shell> perl -cw /opt/otrs/bin/otrs.PostMaster.pl
/opt/otrs/bin/otrs.PostMaster.pl syntax OK
coolmf
Znuny newbie
Posts: 37
Joined: 02 Nov 2015, 16:29
Znuny Version: 5.0.26

Re: Can't add Postmaster Mail Accounts

Post by coolmf »

It is looking for pop3.pm
Message: Module Kernel/System/MailAccount/pop3.pm not in @INC
but cant find it

Old system or new system?

If new, reinstall.

If old, check that the file exists and check file permisions.
OTRS 5.0.26 with ITSM, and FAQ module on CentOS 7 with MariaDB and Apache
Using LDAPS for customers and agents against Azure AD
dss2002
Znuny newbie
Posts: 3
Joined: 22 Oct 2015, 16:32
Znuny Version: 4.0.16
Real Name: dss

Re: Can't add Postmaster Mail Accounts

Post by dss2002 »

It is new installation, I tried to reinstall - no good.

Permissions also seems OK:

Code: Select all

root@otrs-test:~# ls -l /opt/otrs/Kernel/System/MailAccount/*
-rw-rw---- 1 otrs www-data 8924 Jan 14 03:26 /opt/otrs/Kernel/System/MailAccount/IMAP.pm
-rw-rw---- 1 otrs www-data 1781 Jan 14 03:26 /opt/otrs/Kernel/System/MailAccount/IMAPS.pm
-rw-rw---- 1 otrs www-data 9026 Jan 14 03:26 /opt/otrs/Kernel/System/MailAccount/IMAPTLS.pm
-rw-rw---- 1 otrs www-data 8388 Jan 14 03:26 /opt/otrs/Kernel/System/MailAccount/POP3.pm
-rw-rw---- 1 otrs www-data 1735 Jan 14 03:26 /opt/otrs/Kernel/System/MailAccount/POP3S.pm
-rw-rw---- 1 otrs www-data 1759 Jan 14 03:26 /opt/otrs/Kernel/System/MailAccount/POP3TLS.pm
EXG133
Znuny expert
Posts: 217
Joined: 06 Aug 2012, 18:12
Znuny Version: 3.1.7 & 4.04

Re: Can't add Postmaster Mail Accounts

Post by EXG133 »

POP3 , not pop3 8)
dss2002
Znuny newbie
Posts: 3
Joined: 22 Oct 2015, 16:32
Znuny Version: 4.0.16
Real Name: dss

Re: Can't add Postmaster Mail Accounts

Post by dss2002 »

Hmm, I tried to rename some modules to lowecase:

Code: Select all

otrs@otrs-test:~/bin$ ls -l /opt/otrs/Kernel/System/MailAccount/*
-rw-rw---- 1 otrs www-data 8924 Jan 14 03:26 /opt/otrs/Kernel/System/MailAccount/IMAP.pm
-rw-rw---- 1 otrs www-data 1781 Jan 14 03:26 /opt/otrs/Kernel/System/MailAccount/IMAPS.pm
-rw-rw---- 1 otrs www-data 9026 Jan 14 03:26 /opt/otrs/Kernel/System/MailAccount/IMAPTLS.pm
-rw-rw---- 1 otrs www-data 8388 Jan 14 03:26 /opt/otrs/Kernel/System/MailAccount/pop3.pm
-rw-r----- 1 otrs www-data 8388 Jun  3 11:54 /opt/otrs/Kernel/System/MailAccount/POP3.pm
-rw-r----- 1 otrs www-data 1735 Jun  3 11:54 /opt/otrs/Kernel/System/MailAccount/pop3S.pm
-rw-rw---- 1 otrs www-data 1735 Jan 14 03:26 /opt/otrs/Kernel/System/MailAccount/POP3S.pm
-rw-r----- 1 otrs www-data 1759 Jun  3 11:55 /opt/otrs/Kernel/System/MailAccount/pop3tls.pm
-rw-rw---- 1 otrs www-data 1759 Jan 14 03:26 /opt/otrs/Kernel/System/MailAccount/POP3TLS.pm
And the errors in using otrs.PostMasterMailbox.pl are gone:

Code: Select all

otrs@otrs-test:~/bin$ ./otrs.PostMasterMailbox.pl -t pop3 -s mail.mydomain.com -u otrs@mydomain.com -p mypassword
[Fri Jun  3 11:57:01 2016] otrs.PostMasterMailbox.pl: Possible unintended interpolation of @user in string at /opt/otrs/Kernel/System/PostMaster/NewTicket.pm line 192.
[Fri Jun  3 11:57:01 2016] otrs.PostMasterMailbox.pl: Possible unintended interpolation of @user in string at /opt/otrs/Kernel/System/PostMaster/NewTicket.pm line 198.
ERROR: OTRS-otrs.PostMasterMailbox.pl-92 Perl: 5.14.2 OS: linux Time: Fri Jun  3 11:57:01 2016

 Message: ???

 Traceback (21951): 
   Module: Kernel::System::MailAccount::MailAccountFetch Line: 434
   Module: main::Fetch Line: 155
   Module: ./otrs.PostMasterMailbox.pl Line: 85
But I can't add any Mail Account in Mail Account Management. The "Type:" ("Typ:" in german on the picture above) list is still empty.
Any ideas?
EXG133
Znuny expert
Posts: 217
Joined: 06 Aug 2012, 18:12
Znuny Version: 3.1.7 & 4.04

Re: Can't add Postmaster Mail Accounts

Post by EXG133 »

Oh I meant it the other way around:

./otrs.PostMasterMailbox.pl -t POP3 -s mail.mydomain.com -u otrs@mydomain.com -p mypassword

I'm not sure if that will fix the error you see now, but it's definitely better than copying the PM files to lowercase.
Post Reply