Dear DirectAdmin community,
I've just recently gone through the pain of transfering several domains from a cPanel server to a Direct Admin server and I'm just about recovering!
So far everything is going ok except some PERL scripts that I use to read email inbox content. They all ran perfectly on the old server, but on the new server the scripts fail.
Here's a typical code snippet:
my $ServerName = "mail.fineartfacts.com";
my $pop3 = Net:
OP3->new($ServerName);
die "Couldn't log on to server" unless $pop3;
print "pop3 Perl object created<br>";
my $UserName = $currentUser->get_Username()."+fineartfacts.com";
my $Password = $currentUser->get_Password();
print "Username: ",$UserName,"<br>";
my $Num_Messages = $pop3->login($UserName, $Password);
print "Num_Messages = ",$Num_Messages,"<br>";
print "Couldn't log on to server 2<br>" unless $Num_Messages;
The $pop3->login call fails but I can't understand why (it all worked perfectly on the old server). I have checked that the username and password are correct. By the way you may notice that I use a "+" character in place of the usual "@" character in the assignment of the $Username string. This is usual practice for logging on to pop3 accounts. To be sure this wasn't the issue, I just tried it with the "@" character, but it still causes the same error symptoms.
I know this is not an email-specific forum, but I'd be grateful for any leads or ideas of what to do. For example, is there some option setting in the email account setup that may be preventing the PERL script from logging in?
Hope you can help,
Dominique
I've just recently gone through the pain of transfering several domains from a cPanel server to a Direct Admin server and I'm just about recovering!
So far everything is going ok except some PERL scripts that I use to read email inbox content. They all ran perfectly on the old server, but on the new server the scripts fail.
Here's a typical code snippet:
my $ServerName = "mail.fineartfacts.com";
my $pop3 = Net:

die "Couldn't log on to server" unless $pop3;
print "pop3 Perl object created<br>";
my $UserName = $currentUser->get_Username()."+fineartfacts.com";
my $Password = $currentUser->get_Password();
print "Username: ",$UserName,"<br>";
my $Num_Messages = $pop3->login($UserName, $Password);
print "Num_Messages = ",$Num_Messages,"<br>";
print "Couldn't log on to server 2<br>" unless $Num_Messages;
The $pop3->login call fails but I can't understand why (it all worked perfectly on the old server). I have checked that the username and password are correct. By the way you may notice that I use a "+" character in place of the usual "@" character in the assignment of the $Username string. This is usual practice for logging on to pop3 accounts. To be sure this wasn't the issue, I just tried it with the "@" character, but it still causes the same error symptoms.
I know this is not an email-specific forum, but I'd be grateful for any leads or ideas of what to do. For example, is there some option setting in the email account setup that may be preventing the PERL script from logging in?
Hope you can help,
Dominique