[Dovecot] Desperately need help ! a default dovecot.conf and/or Ubuntu 11.10 postfix/dovecot server configuration issue!

2012-03-01 Thread D Chen
When ungraded from Ubuntu 11.04 to 11.10, dovecot can't start successfully with 
lots of errors i.e.
"dovecot: doveconf: Warning: ... 'imaps' protocol is no longer necessary, 
remove it"...

At any rate, I want to setup a postfix(MTA)/dovecot(MDA) servers on Ubuntu 
11.10, by following the Postfix installation and configuration instruction in 
Ubuntu Serverguide, in "1.4 Configuring SASL" section on page 190, after run 
"sudo apt-get install dovecot-common", it requires to edit the section of "auth 
default" and the "socket listen" option...,in the /etc/dovecot/dovecot.conf 
file, BUT my /etc/dovecot/dovecot.conf (only about 4k byes) CAN'T find the 
"auth default" "socket listen" !

I also checked into the /usr/share/doc/dovecot-common/dovecot/example-config, 
there is a
dovecot.conf, it's also about 4k size, and there is no such "auth default" or 
"socket listen" words can be found ! where is the default dovecot.conf file I 
can get a copy ?

BTW, there is the dovecot.conf.ucf file (what is this for?) which's about 50k 
and has the "auth default" and "socket listen" words there ! what is supposed 
the size for the /etc/dovecot/dovecot.conf ? i'm confused!

Thx. 

[Dovecot] doveconf: Warning: Obsolete settings.... in /etc/dovecot/dovecot.conf: ...

2012-03-03 Thread D Chen
Got duplicated Warnings from the "doveconf -n" output ! Can anyone explain and 
fix them ? thx!

   admin@server:/etc/dovecot$ doveconf -n

    # 2.0.13: /etc/dovecot/dovecot.conf
    doveconf: Warning: NOTE: You can get a new clean config file with: doveconf 
-n > dovecot-new.conf
    doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:716: 
protocol managesieve {} has been replaced by protocol sieve { }
    doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:888: add 
auth_ prefix to all settings inside auth {} and remove the auth {} section 
completely
    doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:926: 
passdb pam {} has been replaced by passdb { driver=pam }
    doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:1039: 
userdb passwd {} has been replaced by userdb { driver=passwd }
    doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:1101: 
auth_user has been replaced by service auth { user }
    doveconf: Warning: NOTE: You can get a new clean config file with: doveconf 
-n > dovecot-new.conf
    doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:716: 
protocol managesieve {} has been replaced by protocol sieve { }
    doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:888: add 
auth_ prefix to all settings inside auth {} and remove the auth {} section 
completely
    doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:926: 
passdb pam {} has been replaced by passdb { driver=pam }
    doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:1039: 
userdb passwd {} has been replaced by userdb { driver=passwd }
    doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:1101: 
auth_user has been replaced by service auth { user }
    # OS: Linux 3.0.0-16-server x86_64 Ubuntu 11.10 
    log_timestamp = "%Y-%m-%d %H:%M:%S "
    mail_location = maildir:~/Maildir
    mail_privileged_group = mail
    managesieve_notify_capability = mailto
    managesieve_sieve_capability = fileinto reject envelope encoded-character 
vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy 
include variables body enotify environment mailbox date
    passdb {
      driver = pam

- Ignored:
    }
    passdb {
      driver = pam
    }
    plugin {
      sieve = ~/.dovecot.sieve
      sieve_dir = ~/sieve
    }
    protocols = imap pop3 sieve
    service auth {
      unix_listener /var/spool/postfix/private/auth-client {
        group = postfix
        mode = 0660
        user = postfix
      }
      unix_listener /var/spool/postfix/private/dovecot-auth {
        group = postfix
        mode = 0660
        user = postfix
      }
      user = root
    }
    ssl_cert =  was automatically rejected:%n%r
    }

[Dovecot] Dovecot and Outlook Express "plaintext authentication not allowed..."

2012-04-17 Thread D Chen
Server: Ubuntu 11.10 server with postfix (MTA), dovecot (MDA)
Mail client: Outlook Express in Windows XP with IMAP on port 143, SMTP on port 
25

When tried to set up a new Outlook Express mail acct, the following error 
encountered:

     Your IMAP server wishes to alert you to the following:
     plaintext authentication not allowed without SSL/TLS, but your client did 
it anyway.  If
     anyone was listening, the password was exposed.

When asked "would you like to download folders from the mail server you added?" 
then got the
following error:

The server has rejected your login.  Please verify that your user name and 
password are correct.

I re-entered several time with the correct username and password, but still 
responded the same error.

Any insights would be greatly appreciated.


Here is the message from the /var/log/mail.log:


Apr 17 01:54:17 server dovecot: imap-login: Disconnected (tried to use disabled 
plaintext auth): rip=
192.168.20.51, lip=192.168.20.100Apr 17 01:54:28 server dovecot: imap-login: 
Disconnected (tried to use disabled plaintext auth): rip=
192.168.20.51, lip=192.168.20.100

What might be wrong in my dovecot.conf file.  Below is my dovecot.conf file:

# 2.0.13: /etc/dovecot/dovecot.conf
# OS: Linux 3.0.0-16-server x86_64 Ubuntu 11.10 
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_location = maildir:~/Maildir
mail_privileged_group = mail
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character 
vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy 
include variables body enotify environment mailbox date
passdb {
  driver = pam
}
passdb {
  driver = pam
}
plugin {
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
}
protocols = imap pop3 sieve
service auth {
  unix_listener /var/spool/postfix/private/auth-client {
    group = postfix
    mode = 0660
    user = postfix
  }
  unix_listener /var/spool/postfix/private/dovecot-auth {
    group = postfix
    mode = 0660
    user = postfix
  }
  user = root
}
ssl_cert =  was automatically rejected:%n%r
}


Re: [Dovecot] Dovecot and Outlook Express "plaintext authentication not allowed..."

2012-04-17 Thread D Chen
Hi Charles,

Thanks for the response.

Per your suggestion, in Outlook Express I changed to use SSL on port 993 for 
IMAP, and port 465 for SMTP, the creation of the new account succeeded without 
error!  However, when tried to send to my yahoo mail or gmail acct,  got the 
following error: (apparently failed to send!)

"The message could not be sent because one of the recipients was rejected by 
the server.  The
rejected email address was 'dchen...@yahoo.com.'  Subject: 'test out to yahoo 
mail'
Account:'dchen192.168.20.100'
Server: 192.168.20.100
Protocol: SMTP, server response: 554 5.7.1
: client host rejected access denied, port: 465,
Secured [SSL]: Yes, server Error: 554, Error number: 0x800CCC79"

PS. in the same client PC, using Thunderbird client, IMAP and SMTP configured 
with either with SSL or without SSL, both outgoing mails were sent successfully!

Any thought?

Thx again,

Dennis



 From: Charles Marcus 
To: dovecot@dovecot.org 
Sent: Tuesday, April 17, 2012 3:26 AM
Subject: Re: [Dovecot] Dovecot and Outlook Express "plaintext authentication 
not allowed..."
 
On 2012-04-17 5:16 AM, D Chen  wrote:
> When tried to set up a new Outlook Express mail acct, the following error 
> encountered:
> 
>       Your IMAP server wishes to alert you to the following:
>       plaintext authentication not allowed without SSL/TLS, but your client 
>did it anyway.

Ummm... hello? McFly? ;)

You need to configure SSL on Outlook Express (why on gods green earth you are 
using that is beyond me), as the error plainly says. Until you do this it 
doesn't matter what you enter for a username/password.

Also, you should be using SSL on port 993, because I'm fairly certain that 
Outlook Express doesn't support STARTTLS on port 143.

And off topic but in the same vein, for postfix/SMTP relay you should be using 
the submission port (STARTTLS on port 587) for most clients, but I think 
Outlook Express again doesn't work with it, so you will need to use the 
deprecated SSL on port 465 (these two need to be enabled in postfix/master.cf - 
just uncomment the examples).

-- 
Best regards,

Charles

[Dovecot] IMAP SSL incoming test need help !

2012-04-19 Thread D Chen
Ubuntu 11.10 server with postfix/dovecot/squirrelmail configured.

Outgoing SMTP server seemed worked fine, however, the incoming IMAP with SSL on 
port 993 doesn't seem to receive any mail at all !?  Here is the mail.log 
during the test session from an external yahoo mail (dchen...@yahoo.com) to the 
internal server testmail.biokeyinc.com (dc...@testmail.biokeyinc.com)
The log did NOT show any error !  The sender showed sent mail! but no mail 
reach to the destination!
Any help would be appreciated.

Apr 19 01:20:02 testmail postfix/smtpd[4103]: connect from 
nm20-vm4.bullet.mail.ne1.yahoo.com[98.138.91.180]
Apr 19 01:20:03 testmail postfix/smtpd[4103]: 091ED200973: 
client=nm20-vm4.bullet.mail.ne1.yahoo.com[98.138.91.180]
Apr 19 01:20:03 testmail postfix/cleanup[4108]: 091ED200973: 
message-id=<32c9c558-95da-417d-8687-41abe1296...@yahoo.com>
Apr 19 01:20:03 testmail postfix/qmgr[2007]: 091ED200973: 
from=, size=2840, nrcpt=1 (queue active)
Apr 19 01:20:03 testmail postfix/smtpd[4103]: disconnect from 
nm20-vm4.bullet.mail.ne1.yahoo.com[98.138.91.180]
Apr 19 01:20:12 testmail postfix/smtpd[4113]: connect from localhost[127.0.0.1]
Apr 19 01:20:12 testmail postfix/smtpd[4113]: 33AE9200AE9: 
client=localhost[127.0.0.1]
Apr 19 01:20:12 testmail postfix/cleanup[4108]: 33AE9200AE9: 
message-id=<32c9c558-95da-417d-8687-41abe1296...@yahoo.com>
Apr 19 01:20:12 testmail postfix/qmgr[2007]: 33AE9200AE9: 
from=, size=3536, nrcpt=1 (queue active)
Apr 19 01:20:12 testmail postfix/smtpd[4113]: disconnect from 
localhost[127.0.0.1]
Apr 19 01:20:12 testmail amavis[2042]: (02042-06) Passed CLEAN, [98.138.91.180] 
[98.138.87.4]  -> , 
Message-ID: <32c9c558-95da-417d-8687-41abe1296...@yahoo.com>, mail_id: 
rqyVZiQDwSsG, Hits: -0.109, size: 2837, queued_as: 33AE9200AE9, 
dkim_id=dchen...@yahoo.com,@yahoo.com, 8647 ms
Apr 19 01:20:12 testmail postfix/smtp[4109]: 091ED200973: 
to=, relay=127.0.0.1[127.0.0.1]:10024, delay=9.5, 
delays=0.87/0.01/0/8.6, dsn=2.0.0, status=sent (250 2.0.0 from 
MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 33AE9200AE9)
Apr 19 01:20:12 testmail postfix/qmgr[2007]: 091ED200973: removed
Apr 19 01:20:12 testmail postfix/local[4114]: 33AE9200AE9: 
to=, relay=local, delay=0.18, 
delays=0.1/0/0/0.07, dsn=2.0.0, status=sent (delivered to command: procmail -a 
"$EXTENSION")
Apr 19 01:20:12 testmail postfix/qmgr[2007]: 33AE9200AE9: removed
Apr 19 01:21:30 testmail dovecot: imap-login: Login: user=, 
method=PLAIN, rip=63.195.90.22, lip=192.168.20.100, mpid=4122, TLS
Apr 19 01:23:13 testmail dovecot: imap(dchen): Disconnected: Disconnected in 
IDLE bytes=99/708
Apr 19 01:23:23 testmail postfix/anvil[4105]: statistics: max connection rate 
1/60s for (smtp:98.138.91.180) at Apr 19 01:20:02
Apr 19 01:23:23 testmail postfix/anvil[4105]: statistics: max connection count 
1 for (smtp:98.138.91.180) at Apr 19 01:20:02
Apr 19 01:23:23 testmail postfix/anvil[4105]: statistics: max cache size 1 at 
Apr 19 01:20:02