Cannot Connect To E-Mail

couchboy

New member
Joined
Mar 20, 2011
Messages
1
Hey guys,

I am now setting up email accounts for one of my domains and I cannot seem to be able to connect to the server. I'm totally new at this, but I've posted an error log to give everyone some insight and hopefully a solution out of it.

Code:
Mar 20 12:49:54 localhost dovecot: imap-login: Disconnected (no auth attempts): rip=99.93.235.54, lip=69.195.131.50
Mar 20 12:49:54 localhost dovecot: pop3-login: Disconnected (no auth attempts): rip=99.93.235.54, lip=69.195.131.50
Mar 20 12:49:54 localhost dovecot: pop3-login: Disconnected (no auth attempts): rip=99.93.235.54, lip=69.195.131.50, TLS: Disconnected
Mar 20 12:49:55 localhost dovecot: pop3-login: Aborted login (no auth attempts): rip=99.93.235.54, lip=69.195.131.50
Mar 20 12:49:55 localhost dovecot: imap-login: Disconnected (no auth attempts): rip=99.93.235.54, lip=69.195.131.50, TLS: Disconnected
Mar 20 12:49:55 localhost dovecot: imap-login: Disconnected (no auth attempts): rip=99.93.235.54, lip=69.195.131.50
Mar 20 12:49:56 localhost dovecot: pop3-login: Disconnected (no auth attempts): rip=99.93.235.54, lip=69.195.131.50, TLS handshaking: Disconnected
Mar 20 12:49:56 localhost dovecot: imap-login: Disconnected (no auth attempts): rip=99.93.235.54, lip=69.195.131.50, TLS handshaking: Disconnected
Mar 20 12:49:56 localhost dovecot: imap-login: Disconnected (no auth attempts): rip=99.93.235.54, lip=69.195.131.50, TLS handshaking: SSL_accept() failed: error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol
Mar 20 12:49:56 localhost dovecot: pop3-login: Disconnected (no auth attempts): rip=99.93.235.54, lip=69.195.131.50, TLS handshaking: Disconnected
Mar 20 12:49:56 localhost dovecot: pop3-login: Disconnected (auth failed, 1 attempts): user=<articles>, method=PLAIN, rip=99.93.235.54, lip=69.195.131.50, TLS: Disconnected
Mar 20 12:49:59 localhost dovecot: auth: shadow(articles,99.93.235.54): unknown user
Mar 20 12:49:59 localhost dovecot: auth: passwd-file(articles,99.93.235.54): no passwd file: /etc/virtual//passwd
Mar 20 12:49:59 localhost dovecot: auth: shadow(articles,99.93.235.54): unknown user
Mar 20 12:49:59 localhost dovecot: auth: passwd-file(articles,99.93.235.54): no passwd file: /etc/virtual//passwd
Mar 20 12:50:01 localhost dovecot: imap-login: Disconnected (auth failed, 1 attempts): user=<articles>, method=PLAIN, rip=99.93.235.54, lip=69.195.131.50, TLS: Disconnected
Mar 20 12:50:01 localhost dovecot: imap-login: Disconnected (auth failed, 1 attempts): user=<articles>, method=PLAIN, rip=99.93.235.54, lip=69.195.131.50, TLS: Disconnected
Mar 20 12:50:42 localhost dovecot: auth: shadow([email protected],99.93.235.54): unknown user
Mar 20 12:50:42 localhost dovecot: auth: passwd([email protected],99.93.235.54): unknown user
Mar 20 12:50:42 localhost dovecot: pop3-login: Login: user=<[email protected]>, method=PLAIN, rip=99.93.235.54, lip=69.195.131.50, mpid=5764
Mar 20 12:50:42 localhost dovecot: pop3([email protected]): Error: user [email protected]: Couldn't drop privileges: User is missing UID (see mail_uid setting)
Mar 20 12:50:42 localhost dovecot: pop3([email protected]): Error: Internal error occurred. Refer to server log for more information.
Mar 20 12:52:23 localhost dovecot: auth: shadow([email protected],99.93.235.54): unknown user
Mar 20 12:52:23 localhost dovecot: auth: passwd([email protected],99.93.235.54): unknown user
Mar 20 12:52:23 localhost dovecot: pop3-login: Login: user=<[email protected]>, method=PLAIN, rip=99.93.235.54, lip=69.195.131.50, mpid=5801
Mar 20 12:52:23 localhost dovecot: pop3([email protected]): Error: user [email protected]: Couldn't drop privileges: User is missing UID (see mail_uid setting)
Mar 20 12:52:23 localhost dovecot: pop3([email protected]): Error: Internal error occurred. Refer to server log for more information.
Mar 20 12:53:52 localhost dovecot: auth: shadow([email protected],99.93.235.54): unknown user
Mar 20 12:53:52 localhost dovecot: auth: passwd([email protected],99.93.235.54): unknown user
Mar 20 12:53:52 localhost dovecot: pop3-login: Login: user=<[email protected]>, method=PLAIN, rip=99.93.235.54, lip=69.195.131.50, mpid=5815
Mar 20 12:53:52 localhost dovecot: pop3([email protected]): Error: user [email protected]: Couldn't drop privileges: User is missing UID (see mail_uid setting)
Mar 20 12:53:52 localhost dovecot: pop3([email protected]): Error: Internal error occurred. Refer to server log for more information.
Mar 20 12:54:52 localhost dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=5834, secured
Mar 20 12:54:52 localhost dovecot: auth: passwd([email protected],127.0.0.1): unknown user
Mar 20 12:54:52 localhost dovecot: auth: shadow([email protected],127.0.0.1): unknown user
Mar 20 12:54:52 localhost dovecot: imap([email protected]): Error: user [email protected]: Couldn't drop privileges: User is missing UID (see mail_uid setting)
Mar 20 12:54:52 localhost dovecot: imap([email protected]): Error: Internal error occurred. Refer to server log for more information.
Mar 20 12:55:00 localhost dovecot: auth: passwd-file(articles,127.0.0.1): no passwd file: /etc/virtual//passwd
Mar 20 12:55:00 localhost dovecot: auth: shadow(articles,127.0.0.1): unknown user
Mar 20 12:55:02 localhost dovecot: imap-login: Aborted login (auth failed, 1 attempts): user=<articles>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Mar 20 12:55:15 localhost dovecot: auth: shadow([email protected],127.0.0.1): unknown user
Mar 20 12:55:15 localhost dovecot: auth: passwd([email protected],127.0.0.1): unknown user
Mar 20 12:55:15 localhost dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=5849, secured
Mar 20 12:55:15 localhost dovecot: imap([email protected]): Error: user [email protected]: Couldn't drop privileges: User is missing UID (see mail_uid setting)
Mar 20 12:55:15 localhost dovecot: imap([email protected]): Error: Internal error occurred. Refer to server log for more information.
Mar 20 12:58:38 localhost dovecot: auth: shadow([email protected],99.93.235.54): unknown user
Mar 20 12:58:38 localhost dovecot: auth: passwd([email protected],99.93.235.54): unknown user
Mar 20 12:58:38 localhost dovecot: pop3-login: Login: user=<[email protected]>, method=PLAIN, rip=99.93.235.54, lip=69.195.131.50, mpid=5880
Mar 20 12:58:38 localhost dovecot: pop3([email protected]): Error: user [email protected]: Couldn't drop privileges: User is missing UID (see mail_uid setting)
Mar 20 12:58:38 localhost dovecot: pop3([email protected]): Error: Internal error occurred. Refer to server log for more information.

Any ideas are greatly appreciated!

Thanks
 
Did the Dovecot install come with your DirectAdmin installation? l It may be misconfigured, because none of my servers have an /etc/virtual/passwd file.

Note that // should equate the / so that shouldn't be the problem.

Jeff
 
after doing that I always have the error

no passwd file: /etc/virtual//passwd

Do you get this error for a valid email account? Or you see this error in logs?

This error might occur when somebody bruteforce your POP/IMAP server. Different thing is if you can not login with valid credentials and you get this error in logs.
 
what is the result of doing the following commands:
head /etc/exim.conf
head /etc/exim.pl

[root@alfa ~]# head /etc/exim.conf
######################################################################
# SpamBlocker.exim.conf.2.1.1-release #
# 05-Jun-2007 #
# Runtime configuration file for DirectAdmin/Exim 4.24 and above #
# Requires exim.pl dated 20-Apr-2007 17:09 or later #
######### IMPORTANT ########## IMPORTANT ########## IMPORTANT ########
# WARNING! Be sure to back up your previous exim.conf file before #
# attempting to use this exim.conf file. #
# #
# Do may not use this exim.conf Exim configuration file unless you #



[root@alfa ~]# head /etc/exim.pl
#!/usr/bin/perl

#VERSION=6

#smtpauth
#called by exim to verify if an smtp user is allowed to
#send email through the server
#possible success:
# user is in /etc/virtual/domain.com/passwd and password matches
# user is in /etc/passwd and password matches in /etc/shadow
 
That looks to be the right versions. I haven't used the 2.x version of spamblocker in quite some time, but I would guess version 6 of the exim.pl sounds about right.

But after reading, these were dovecot not exim errors, sorry. Just got enough coffee in my system now to be productive. :-)

The next thing to look at, at least for the snippit of the log I see. Compare the /etc/virtual/maniapix.com/passwd entries, the UID (3rd field) should be the UID of the domain owner. If it isn't then you need to make it that way.
 
the domain owners UID

yes, where do I find it?

After trying to send an email from a webpage module <i get the following erors in the maillog:

May 21 23:54:20 alfa dovecot: auth: shadow(news@****.net,127.0.0.1): unknown user
May 21 23:54:20 alfa dovecot: auth: passwd(news@****.net,127.0.0.1): unknown user
May 21 23:54:20 alfa dovecot: pop3-login: Login: user=<news@****.net>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=24648, secured
May 21 23:54:20 alfa dovecot: pop3(news@****.net): Connection closed top=0/0, retr=0/0, del=0/671, size=775766
 
Last edited:
yes, where do I find it?

After trying to send an email from a webpage module <i get the following erors in the maillog:

May 21 23:54:20 alfa dovecot: auth: shadow(news@****.net,127.0.0.1): unknown user
May 21 23:54:20 alfa dovecot: auth: passwd(news@****.net,127.0.0.1): unknown user
May 21 23:54:20 alfa dovecot: pop3-login: Login: user=<news@****.net>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=24648, secured
May 21 23:54:20 alfa dovecot: pop3(news@****.net): Connection closed top=0/0, retr=0/0, del=0/671, size=775766

Those messages are normal. For virtual domains, you will get that, since you see the third line showing the Login, it worked.

To check your domains, to make sure they all the correct user ids, try saving this a file on your server and run it as root. It will report any domain entries that don't have the correct user id.


Code:
#!/usr/bin/perl
use strict;
use User::pwent;

my $configbase="/etc/virtual";
my $domainfile="$configbase/domainowners";

open(DOMFILE,"<$domainfile") || die "error opening $domainfile. $!\n";
my @domfile=<DOMFILE>;
close(DOMFILE);

foreach my $domentry ( @domfile ) {
  chomp $domentry;
  $domentry =~ s/ +//g;  # strip extra spaces
  my ($domain,$owner) = split /:/,$domentry;
  my $domuid = getpwnam($owner)->uid;
  my $vdomfile = "$configbase/$domain/passwd";
  open(VDOM,"<$vdomfile")|| die "error opening $vdomfile.  $!\n";
  my @vdomfile = <VDOM>;
  close(VDOM);
  foreach my $vdomentry ( @vdomfile ) {
    my ($username,$pass,$ownuid,$owngid) = split /:/,$vdomentry;
    if($ownuid != $domuid) {
      print "Usernmae $username\@$domain is owned by $domuid but should be set to $ownuid\n";
    }
  }
}
 
Those messages are normal. For virtual domains, you will get that, since you see the third line showing the Login, it worked.

then what do the first two lines mean?

To check your domains, to make sure they all the correct user ids, try saving this a file on your server and run it as root. It will report any domain entries that don't have the correct user id.


Code:
#!/usr/bin/perl
use strict;
use User::pwent;

my $configbase="/etc/virtual";
my $domainfile="$configbase/domainowners";

open(DOMFILE,"<$domainfile") || die "error opening $domainfile. $!\n";
my @domfile=<DOMFILE>;
close(DOMFILE);

foreach my $domentry ( @domfile ) {
  chomp $domentry;
  $domentry =~ s/ +//g;  # strip extra spaces
  my ($domain,$owner) = split /:/,$domentry;
  my $domuid = getpwnam($owner)->uid;
  my $vdomfile = "$configbase/$domain/passwd";
  open(VDOM,"<$vdomfile")|| die "error opening $vdomfile.  $!\n";
  my @vdomfile = <VDOM>;
  close(VDOM);
  foreach my $vdomentry ( @vdomfile ) {
    my ($username,$pass,$ownuid,$owngid) = split /:/,$vdomentry;
    if($ownuid != $domuid) {
      print "Usernmae $username\@$domain is owned by $domuid but should be set to $ownuid\n";
    }
  }
}

I get:



[root@alfa ~]# sh checkdomainuid.sh
checkdomainuid.sh: line 2: use: command not found
checkdomainuid.sh: line 3: use: command not found
checkdomainuid.sh: line 5: my: command not found
checkdomainuid.sh: line 6: my: command not found
checkdomainuid.sh: line 8: syntax error near unexpected token `DOMFILE,"<$domain file"'
checkdomainuid.sh: line 8: `open(DOMFILE,"<$domainfile") || die "error opening $ domainfile. $!\n";'
 
If it helps:


################### Logwatch 7.3 (03/24/06) ####################
Processing Initiated: Sun May 22 04:02:02 2011
Date Range Processed: yesterday
( 2011-May-21 )
Period is day.
Detail Level of Output: 0
Type of Output: unformatted
Logfiles for Host: alfa.*****.net
##################################################################

--------------------- Dovecot Begin ------------------------

**Unmatched Entries**
dovecot: auth: passwd(news@*****.net,127.0.0.1): unknown user: 2 Time(s)
dovecot: auth: passwd(staff@*****.net,127.0.0.1): unknown user: 87 Time(s)
dovecot: auth: shadow(news@*****.net,127.0.0.1): unknown user: 2 Time(s)
dovecot: auth: shadow(staff@*****.net,127.0.0.1): unknown user: 87 Time(s)
dovecot: imap(staff@*****.net): Disconnected: Logged out bytes=317/31663: 1 Time(s)
dovecot: imap(staff@*****.net): Disconnected: Logged out bytes=317/32056: 1 Time(s)
dovecot: imap(staff@*****.net): Disconnected: Logged out bytes=85/689: 16 Time(s)
dovecot: imap(staff@*****.net): Disconnected: Logged out bytes=85/690: 68 Time(s)
dovecot: imap(staff@*****.net): Disconnected: Logged out bytes=85/691: 1 Time(s)
dovecot: pop3(news@*****.net): Connection closed top=0/0, retr=0/0, del=0/671,
size=775766: 2 Time(s)
 
Back
Top