Re: [Dovecot] TLS / Dovecot / POP3

2009-02-22 Thread Timo Sirainen

On Feb 22, 2009, at 2:52 AM, John Espiro wrote:


In Thunderbird, I have the email server setup to:
- Port 110
- TLS

Here's my question:

If I change  protocols = pop3s pop3 to  protocols = pop3s I can no
longer connect to my mail server via Thunderbird unless I setup
Thunderbird to use SSL.

Am I doing something wrong?


Everything is working then as it should, so I guess you're confused  
about what TLS, SSL and pop3s means. Maybe http://wiki.dovecot.org/SSL  
helps understanding them (just replace imap/imaps with pop3/pop3s).




Re: [Dovecot] Cant Receive Email from dovecot pop -typos corrected....

2009-02-22 Thread Linux Advocate

It works ! Thanx everybody. Got my sanity back... 
Thanx Timo.



- Original Message 
 From: Linux Advocate linuxhous...@yahoo.com
 To: Dovecot Mailing List dovecot@dovecot.org
 Sent: Sunday, February 22, 2009 3:29:01 PM
 Subject: Re: [Dovecot] Cant Receive Email from dovecot pop -typos 
 corrected
 
 
 A. Timo, with mail debug=yes , the log is as below...
 
 
 Feb 22 13:21:53 fwgw dovecot: auth(default): client in: AUTH1   PLAIN 
  
 service=POP3lip=:::60.54.174.146rip=:::192.168.10.96 
 resp=
 Feb 22 13:21:53 fwgw dovecot: auth-worker(default): 
 sql(fi...@mesara.biz,:::192.168.10.96): query: SELECT password FROM 
 mailbox 
 WHERE username = 'fi...@mesara.biz'
 Feb 22 13:21:53 fwgw dovecot: auth(default): client out: OK 1  
 user=fi...@mesara.biz
 Feb 22 13:21:53 fwgw dovecot: auth(default): master in: REQUEST 1   20628 
  
 1
 Feb 22 13:21:53 fwgw dovecot: auth-worker(default): 
 sql(fi...@mesara.biz,:::192.168.10.96): SELECT maildir, 89 AS uid, 89 AS 
 gid 
 FROM mailbox WHERE username = 'fi...@mesara.biz'
 Feb 22 13:21:53 fwgw dovecot: auth(default): master out: USER   1  
 fi...@mesara.bizmaildir=fi...@mesara.biz/   uid=89  gid=89
 Feb 22 13:21:53 fwgw dovecot: pop3-login: Login: user=, 
 method=PLAIN, rip=:::192.168.10.96, lip=:::60.54.174.146
 Feb 22 13:21:53 fwgw dovecot: POP3(fi...@mesara.biz): Effective uid=89, gid=89
 Feb 22 13:21:53 fwgw dovecot: POP3(fi...@mesara.biz): maildir: 
 data=/home/vmail/mesara.biz/fizan
 Feb 22 13:21:53 fwgw dovecot: POP3(fi...@mesara.biz): maildir: 
 root=/home/vmail/mesara.biz/fizan, 
 index=/home/vmail/mesara.biz/haifizan,control=, inbox=
 Feb 22 13:21:53 fwgw dovecot: POP3(fi...@mesara.biz): Disconnected: Logged 
 out 
 top=0/0, retr=0/0, del=0/0, size=0
 
 B. The /etc/dovecot-mysql.conf file ; ( copied from 
 http://www.campworld.net/thewiki/pmwiki.php/LinuxServersCentOS/Cent5VirtMailServer)
  ( similar syntax for the 
 user_query shown in other sites as well, such as opensuse howto... )
  ( also in 
 postfixadmin2.3's 
 dovecot.txt file)
 ...
 
 driver = mysql
 connect = host=localhost dbname=postfix user=postfix password=kasdf
 default_pass_scheme = PLAIN
 password_query = SELECT password FROM mailbox WHERE username = '%u'
 user_query = SELECT maildir, 89 AS uid, 89 AS gid FROM mailbox WHERE username 
 = 
 '%u'
 
 In dovecot.conf, my default_mail_env = maildir:/home/vmail/%d/%n, So from the 
 log , i can see that dovecot is accesing the right area ( yes? )
 .
 .
 .
 BUT
 .
 .
 When i go to /home/vmail, i can see that the test emails i sent are going to 
 folder  fi...@mesara.biz  instead of  mesara.biz/fizan
 
 [r...@fwgw ]# cd /home/vmail
 [r...@fwgw vmail]# ls -l
 total 16
 drwx-- 5 postfix postfix 4096 Feb 21 18:49 fi...@meswara.biz
 drwx-- 3 postfix postfix 4096 Feb 21 21:07 mesara.biz
 
 I guess the culprit is the settings in postfixadmin's config.inc.php
 
 // Mailboxes
 // If you want to store the mailboxes per domain set this to 'YES'.
 // Examples:
 //   YES: /usr/local/virtual/domain.tld/usern...@domain.tld
 //   NO:  /usr/local/virtual/usern...@domain.tld
 
 $CONF['domain_path'] = 'NO';
 
 // If you don't want to have the domain in your mailbox set this to 'NO'.
 // Examples:
 //   YES: /usr/local/virtual/domain.tld/usern...@domain.tld
 //   NO:  /usr/local/virtual/domain.tld/username
 // Note: If $CONF['domain_path'] is set to NO, this setting will be forced to 
 YES.
 
 $CONF['domain_in_mailbox'] = 'YES';
 
 I am gonna try to set the first to YES  and the second to NO and will report 
 back to the list.
 
 Also, timo , i am hopeless at sql statements and i am not able to fully 
 understand the sql statement that u have given. Sorry. I am hoping to either 
 
 1. make postfix/ LDA  store emails at /home/vmail/mesara.biz/username
 
 OR
 
 2. make imap read emails from /home/vmail/usern...@mesara.biz
 
 Comments/help  most welcome.
 
 
 
 
 - Original Message 
  From: Timo Sirainen 
  Subject: Re: [Dovecot] Cant Receive Email from dovecot pop -typos 
 corrected
  
  On Sat, 2009-02-21 at 05:28 -0800, Linux Advocate wrote:
   A. Still can't retrieve mail. the mailliog shows.
  
  Set mail_debug=yes. It'll show where Dovecot is looking for the mail.
  
   Feb 21 21:16:23 fwgw dovecot: auth-worker(default): 
  sql(fi...@mesara.biz,:::60.50.250.8): SELECT maildir, 89 AS uid, 89 AS 
  gid 
 
  FROM mailb   ox WHERE username = 'fi...@mesara.biz'
  
  The maildir doesn't do anything. Dovecot doesn't look for maildir
  field.
  
   Feb 21 21:16:23 

Re: [Dovecot] dovecot auth

2009-02-22 Thread ben
Hi,

tried %Lu, dovecot seems to still strip of the domain part before
looking it up in dovecot.passwd... :


dovecot.passwd :
---
t...@testdomain.com:{plain}test123.:8:12::/opt/storage/mbox/bb107608::

-
dovecot -n

# OS: Linux 2.6.24.5-smp i686 Slackware 12.1.0 
base_dir: /var/run/dovecot/
log_path: /var/log/dovecot/log
protocols: pop3
ssl_disable: yes
disable_plaintext_auth: no
login_dir: /var/run/dovecot//login
login_executable: /opt/dovecot/libexec/dovecot/pop3-login
first_valid_uid: 8
first_valid_gid: 12
mail_uid: 8
mail_gid: 12
mail_location: maildir:~/Maildir
mail_executable: /opt/dovecot/libexec/dovecot/pop3
mail_plugins: quota
mail_plugin_dir: /opt/dovecot/lib/dovecot/pop3
auth default:
  mechanisms: plain login apop
  executable: /opt/dovecot/libexec/dovecot/dovecot-auth
  user: mail
  username_format: %Lu
  verbose: yes
  debug: yes
  debug_passwords: yes
  passdb:
driver: passwd-file
args: scheme=plain username_format=%
n /opt/dovecot/etc/dovecot.passwd
  userdb:
driver: passwd-file
args: username_format=%n /opt/dovecot/etc/dovecot.passwd
  socket:
type: listen
master:
  path: /var/run/dovecot/auth-master
  mode: 384
  user: mail
  group: mail


/var/log/dovecot/log   :
  
dovecot: Feb 22 09:48:22 Info: auth(default): new auth connection:
pid=25113
dovecot: Feb 22 09:48:41 Info: auth(default): client in: AUTH   1   PLAIN
service=pop3lip=195.207.136.102 rip=195.0.10.8  lport=110   
rport=35153
resp=AGJlbkBpdHV4LmJlAHRlc3QxMjMu
dovecot: Feb 22 09:48:41 Info: auth(default):
passwd-file(b...@itux.be,195.0.10.8): lookup: user=test
file=/opt/dovecot/etc/dovecot.passwd
dovecot: Feb 22 09:48:41 Info: auth(default):
passwd-file(b...@itux.be,195.0.10.8): unknown user
dovecot: Feb 22 09:48:43 Info: auth(default): client out: FAIL  1
user=t...@testdomain.com

 
  So I went on to configure the following in my dovecot.conf :
 
  auth_username_format = %...@%d
 
  restarted dovecot, but he still strips of the @ and the domainname ...
 
  LOG (sorry for f* up format) :
 
  dovecot: Feb 21 12:15:08 Info: auth(default): new auth connection:
  pid=24483
  dovecot: Feb 21 12:15:12 Info: auth(default): client in: AUTH   1   
  PLAIN
  service=pop3lip=195.207.136.102 rip=195.207.136.108 
  lport=110
  rport=36132 resp=AGJlbkBpdHV4LmJlAHRlc3QxMjMu
  dovecot: Feb 21 12:15:12 Info: auth(default):
  passwd-file(t...@testdomain.com@testdomain.com,195.207.136.108): lookup:
  user=test file=/opt/dovecot/etc/dovecot.passwd
  dovecot: Feb 21 12:15:12 Info: auth(default):
  passwd-file(t...@testdomain.com@testdomain.com,195.207.136.108): unknown
  user
  dovecot: Feb 21 12:15:14 Info: auth(default): client out: FAIL  1
  user=t...@testdomain.com
 
  Can someone enlighten me on how to config it so he looks up
  t...@testdomain.com fully ?
 
 Try:
auth_username_format = %Lu
 
 [ %Lu - %u turned to lowercase ]
 %...@%d you have used produced double domain so try it without trailing 
 @%d.
 
 URL(s):
 http://wiki.dovecot.org/MainConfig
 



[Dovecot] 1.2.beta1: expire-tool and 'mail_location' setting

2009-02-22 Thread e-frog
Hi Timo,

Trying 1.2.beta1 with expire plugin currently:
When I set mail_location = maildir:~/.maildir the expire plugin doesn't delete 
messages.

#: expire-tool --test
Info: auth input: system_user=foo
Info: auth input: uid=1000
Info: auth input: gid=1000
Info: auth input: home=/home/foo
Info: foo/Trash: no messages left

I also noticed that above command creates a new but empty directory 'mail' in 
user's home dir.


However using mail_location = maildir:~/Maildir and of course moving the 
messages to it works.

#: expire-tool --test
Info: auth input: system_user=foo
Info: auth input: uid=1000
Info: auth input: gid=1000
Info: auth input: home=/home/foo
Info: foo/Trash: seq=1 uid=4078: Expunge
  .
  .
Info: foo/Trash: seq=100 uid=4178: Expunge
Info: foo/Trash: seq=101 uid=4179: Expunge
Info: foo/Trash: timestamp 1235292536 - 1235325429

My guess is that mail_location is not respected by expire-tool for some reason 
and in second
case mailbox auto-detection makes it working?

Thanks,
e-frog

--
#: dovecot -n
# 1.2.beta1: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.27-11-server i686 Ubuntu 8.10
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imap managesieve
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(managesieve): /usr/lib/dovecot/managesieve-login
mail_privileged_group: mail
mail_location: maildir:~/.maildir
mail_debug: yes
mail_drop_priv_before_exec: yes
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(managesieve): /usr/lib/dovecot/managesieve
mail_plugins(default): quota imap_quota expire fts fts_squat
mail_plugins(imap): quota imap_quota expire fts fts_squat
mail_plugins(managesieve):
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve
auth default:
  passdb:
driver: pam
  userdb:
driver: passwd
  socket:
type: listen
client:
  path: /var/run/dovecot/auth-client
  mode: 432
  user: dovecot
  group: Debian-exim
master:
  path: /var/run/dovecot/auth-master
  mode: 384
plugin:
  quota: maildir
  quota_rule: *:storage=1GB
  quota_rule2: Trash:storage=10%%
  expire: Trash 1
  expire_dict: proxy::expiredict
  sieve: ~/.dovecot.sieve
  sieve_dir: ~/.sieve
  fts: squat
  fts_squat: partial=4 full=10
dict:
  expiredict: mysql:/etc/dovecot/dovecot-dict-sql.conf


Re: [Dovecot] dovecot auth

2009-02-22 Thread Andrzej Adam Filip
ben mail...@gigaspeeds.be wrote:

 tried %Lu, dovecot seems to still strip of the domain part before
 looking it up in dovecot.passwd... :


 dovecot.passwd :
 ---
 t...@testdomain.com:{plain}test123.:8:12::/opt/storage/mbox/bb107608::

 -
 dovecot -n

 # OS: Linux 2.6.24.5-smp i686 Slackware 12.1.0 
 [...]
 auth default:
   mechanisms: plain login apop
   executable: /opt/dovecot/libexec/dovecot/dovecot-auth
   user: mail
   username_format: %Lu
   verbose: yes
   debug: yes
   debug_passwords: yes
   passdb:
 driver: passwd-file
 args: scheme=plain username_format=%n /opt/dovecot/etc/dovecot.passwd
   userdb:
 driver: passwd-file
 args: username_format=%n /opt/dovecot/etc/dovecot.passwd
   socket:
 type: listen
 master:
   path: /var/run/dovecot/auth-master
   mode: 384
   user: mail
   group: mail
[...]

Have you tried to change username_format for passdb and userdb *TOO*?
You seem to overwrite global default in sub sections.
They both are set to %n - username with stripped domain.

URL(s):
http://wiki.dovecot.org/AuthDatabase/PasswdFile

P.S.
My experience with dovecot is limited so treat my replies as guesses
based of general email experience.

-- 
[plen: Andrew] Andrzej Adam Filip : a...@onet.eu
Never have children, only grandchildren.
  -- Gore Vidal


Re: [Dovecot] CMUSieve with virtual users

2009-02-22 Thread Guillaume Hilt


Guillaume Hilt a écrit :

Alex a écrit :

Roderick A. Anderson wrote:



Guillaume Hilt wrote:


Alex a écrit :

Guillaume HILT wrote:

Upgrade done and running, but it didn't fixed the problem :x

Alex a écrit :
I had been the same issue with 1.1.7. Try to unmask the 
1.1.10-r1 and install; it solve my issue.


Do you see anything in your log?

Nothing about sieve.


Interestingly enough there appear to be some values in the 
dovecot.conf that don't show up with (when I try in on my system) a 
dovecot -n.  I must admit I'm surprised everything _seems_ to be 
working as I've had some formatting issues in the dovecot.conf file


Anyway; specifically the lda stuff.

Here's mine slightly munged.

protocol lda {
  log_path = /var/log/dovecot/dovecot-deliver.log
  auth_socket_path = /var/run/dovecot/auth-master
  postmaster_address = postmas...@mydomain.com
  hostname = mx0.mydomain.com
  mail_plugins = cmusieve
  mail_plugin_dir = /usr/lib/dovecot/lda
}



Here's mine :

protocol lda {
 postmaster_address = postmas...@mydomain.com
 hostname = mail.mydomain.com
 mail_plugins = cmusieve
 mail_plugin_dir = /usr/lib/dovecot/lda
 log_path = /var/log/mail/dovecot-deliver.log
 info_log_path = /var/log/mail/dovecot-deliver.log
 sendmail_path = /usr/sbin/sendmail
 rejection_reason = Votre message pour %t a été rejeté:%n%r
 auth_socket_path = /var/run/dovecot/auth-master
 fsync_disable = no
}


Rod


Did you defined sieve_global_path = /etc/dovecot/sieve/default.sieve?
Remeber to change ownership to default.sieve file with your vmail 
user and group.



No, I didn't defined it.
And my .dovecot.sieve files are owned by vmail and mail, respectively 
my vmail user and group :)


The only difference I found with this current setup and my other server 
(except for the virtual user configuration on this server) is that i 
compiled dovecot without pop3d on the other one, and with it on this one 
(and since pop3 is currently used, i can't afford to remove it).


Re: [Dovecot] Which email clients support SMTP/IMAP via STDINSTDOUT of proxy command?

2009-02-22 Thread Timo Sirainen
On Sun, 2009-02-22 at 17:59 +0100, Andrzej Adam Filip wrote:
 Which email clients support SMTP/IMAP via STDINSTDOUT of proxy command?

For which OS? I know at least Evolution, mutt and pine support imap
proxy commands. No idea about SMTP.



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Which email clients support SMTP/IMAP via STDINSTDOUT of proxy command?

2009-02-22 Thread Andrzej Adam Filip
Timo Sirainen t...@iki.fi wrote:

 On Sun, 2009-02-22 at 17:59 +0100, Andrzej Adam Filip wrote:
 Which email clients support SMTP/IMAP via STDINSTDOUT of proxy command?

 For which OS? 

I am interested in clients for Linux/Unix.

 I know at least Evolution, mutt and pine support imap proxy
 commands. No idea about SMTP.

I think some of the above support sending via 'sendmail like' program
with option to set path to sendmail - it should be almost the same
except sending batches of email messages.

-- 
[plen: Andrew] Andrzej Adam Filip : a...@onet.eu
... faster BogoMIPS calculations (yes, it now boots 2 seconds faster than
it used to: we're considering changing the name from Linux to InstaBOOT
  -- Linus, in the announcement for 1.3.26


Re: [Dovecot] Update on Issues

2009-02-22 Thread Gene Steinberg

I reimaged my server, and it now has this kernel version:

Linux server.paracastworld.net 2.6.27.15

So does this one behave itself?

Peace,
Gene


[Dovecot] pine vs dovecot-zlib (mbox.gz)

2009-02-22 Thread Darabos Edvárd Konrád

Hello!

 Always reproducible pine vs dovecot-imap-mbox.gz scene has weird errors.
 - Initial message is OK: [Folder SAVE.gz opened with 211 messages 
READONLY]
 - Some mails at the end are listed correctly, others are listed with 
empty sender/size/subject (just numbering).
 - All mails have no bodies. Full header command produces total blank 
screen. Even before any error message.


Error messages appear during navigation:
[{localhost/imap/user=nil}SAVE.gz : Missing IMAP reply key: )]
[MAIL FOLDER SAVE.gz CLOSED DUE TO ACCESS ERROR]

 Seamonkey works with both mbox-es and mbox.gz-s.
 Mbox-es are working with both SeaMonkey and pine.

 Technical environment description follows...

Thanks, Nil.

PS: Tried to gzip other folder, same results.
-- 8 --

Dovecot version: 1.0.15
Linux version 2.6.26-1-amd64 (Debian 2.6.26-13) (wa...@debian.org) (gcc 
version 4.1.3 20080704 (prerelease) (Debian 4.1.2-24)) #1 SMP Sat Jan 10 
17:57:00 UTC 2009

Debian GNU/Linux 5.0 (lenny)
Filesystem: ext3
-- 8 --

~/.pinerc (all other lines are comments or equal to nothing)
smtp-server=localhost
inbox-path={localhost}INBOX
default-fcc={localhost}Sent
feature-list=enable-full-header-and-text, enable-full-header-cmd, 
enable-8bit-esmtp-negotiation, enable-8bit-nntp-posting

character-set=utf-8
folder-collections=IMAP {localhost}[]
last-time-prune-questioned=109.2
last-version-used=5.10
ssh-path=/usr/local/bin/imapd.sh
color-style=use-termdef
current-indexline-style=flip-colors
titlebar-color-style=default
normal-foreground-color=255,255,255
normal-background-color=000,000,000
meta-message-foreground-color=255,255,255
meta-message-background-color=000,000,255
index-opening-foreground-color=000,000,000
index-opening-background-color=000,255,255
-- 8 --

/usr/local/bin/imapd.sh (just tried to redirect server stderr, did not 
helped):

#!/bin/bash

/usr/lib/dovecot/imap 2 /dev/null
-- 8 --

# 1.0.15: /etc/dovecot/dovecot.conf
Warning: mail_extra_groups setting was often used insecurely so it is 
now deprecated, use mail_access_groups or mail_privileged_group instead

log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imap imaps pop3s
listen(default): localhost
listen(imap): localhost
listen(pop3): *
ssl_listen: *
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
mail_extra_groups: mail
mail_access_groups: mail
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_plugins: zlib
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
pop3_uidl_format(default):
pop3_uidl_format(imap):
pop3_uidl_format(pop3): %08Xu%08Xv
auth default:
 passdb:
   driver: pam
 userdb:
   driver: passwd
-- 8 --



Re: [Dovecot] pine vs dovecot-zlib (mbox.gz)

2009-02-22 Thread Darabos Edvárd Konrád

Important detail, sorry.
I used SeaMonkey trought IMAPS remotely from WinXP.

Darabos Edvárd Konrád írta:

Hello!
...




[Dovecot] Postfix LDA vs the Dovecot LDA + other quetions

2009-02-22 Thread Linux Advocate

Guys , 

1. What is the benefit of using Dovecot' LDA as compared to postfix's LDA? Will 
there be better performance?

And along the same vein,

2. What is the benefit of using  Dovecot's SASL as compared to Cyrus SASL? Is 
there better performance?

3. Quota Management ( Creating, enforcing, notifying ) - is it done thru 
dovecot or postfix or are both needed?



Regards,
mgomez