Re: [Dovecot] need help

2008-05-14 Thread Gabriele Fergola
i solve the problem.
the solution is set --syncinternaldates to imapsync and all goes well.

Thank you very much Timo for your answer
workino

On Tue, May 13, 2008 at 7:40 PM, Timo Sirainen [EMAIL PROTECTED] wrote:

 On May 13, 2008, at 6:17 PM, Gabriele Fergola wrote:

  I tried to migrate from a server courier to dovecot with imapsync but i
  get
  this errore:
 
  Couldn't append msg #15 (Subject:[Registrazione]) to folder INBOX: Error
  sending command '16 APPEND INBOX (\Answered \Seen)  {3478}
  ': 16 BAD Invalid internal date.
 

 It sends  as the message's date, which clearly is broken. A default
 date could have been given by just not sending the  at all. I'd say go
 complain to imapsync people.




[Dovecot] need help

2008-05-13 Thread Gabriele Fergola
I tried to migrate from a server courier to dovecot with imapsync but i get
this errore:

Couldn't append msg #15 (Subject:[Registrazione]) to folder INBOX: Error
sending command '16 APPEND INBOX (\Answered \Seen)  {3478}
': 16 BAD Invalid internal date.


thk you in advance
Workino


[Dovecot] POP3 message not deleted

2007-09-21 Thread Gabriele Fergola
Hi,
i start today my new mail server with dovecot with about 2000 User on it.
i don't know if it's a problem or not but when a client connect in pop3 the
message keep on the server.

Sep 21 10:53:37 cnetmbox dovecot: pop3-login: Login: user=[EMAIL PROTECTED],
method=PLAIN, rip=XXX.XXX.XXX.XXX, lip=XXX.XXX.XXX.XXX
Sep 21 10:53:37 cnetmbox dovecot: POP3([EMAIL PROTECTED]):
Disconnected: Logged out top=0/0, retr=0/0, del=0/1, size=2595


Thank you for help
Workino


Re: [Dovecot] POP3 message not deleted

2007-09-21 Thread Gabriele Fergola
Ralf,
thank you in advance for your answer.

No i try it and my message is on the server and the client is not set to do
it.

my dovecot -n

# 1.0.4: /etc/dovecot//dovecot.conf
base_dir: /var/run/dovecot/
protocols: imap pop3 imaps pop3s
ssl_disable: yes
disable_plaintext_auth: no
shutdown_clients: no
login_dir: /var/run/dovecot//login
login_executable(default): /usr/local/libexec/dovecot/imap-login
login_executable(imap): /usr/local/libexec/dovecot/imap-login
login_executable(pop3): /usr/local/libexec/dovecot/pop3-login
login_greeting_capability(default): yes
login_greeting_capability(imap): yes
login_greeting_capability(pop3): no
first_valid_uid: 5000
mail_location: maildir:/mbox/%d/%u/Maildir
mail_executable(default): /usr/local/libexec/dovecot/imap
mail_executable(imap): /usr/local/libexec/dovecot/imap
mail_executable(pop3): /usr/local/libexec/dovecot/pop3
mail_plugins(default): quota imap_quota
mail_plugins(imap): quota imap_quota
mail_plugins(pop3): quota
mail_plugin_dir(default): /usr/local/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3
pop3_uidl_format(default):
pop3_uidl_format(imap):
pop3_uidl_format(pop3): %08Xu%08Xv
namespace:
  type: private
  separator: .
  prefix: INBOX.
  inbox: yes
auth default:
  passdb:
driver: pam
  passdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
  userdb:
driver: passwd
  userdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
  socket:
type: listen
master:
  path: /var/run/dovecot/auth-master
  mode: 384
  user: vmail
  group: mail
plugin:
  quota: dict: proxy::quota
dict:
  quota: mysql:/etc/dovecot/dovecot-dict-quota.conf

And in the log i can't see anything about an permission error...

Workino

On 9/21/07, Ralf Hildebrandt [EMAIL PROTECTED] wrote:

 * Gabriele Fergola [EMAIL PROTECTED]:
  Hi,
  i start today my new mail server with dovecot with about 2000 User on
 it.
  i don't know if it's a problem or not but when a client connect in pop3
 the
  message keep on the server.
 
  Sep 21 10:53:37 cnetmbox dovecot: pop3-login: Login: user=
 [EMAIL PROTECTED],
  method=PLAIN, rip=XXX.XXX.XXX.XXX, lip=XXX.XXX.XXX.XXX
  Sep 21 10:53:37 cnetmbox dovecot: POP3([EMAIL PROTECTED]):
  Disconnected: Logged out top=0/0, retr=0/0, del=0/1, size=2595

 Maybe the users uses leave mail on server

 --
 Ralf Hildebrandt ([EMAIL PROTECTED])
 [EMAIL PROTECTED]
 Postfix - Einrichtung, Betrieb und Wartung   Tel. +49 (0)30-450
 570-155
 http://www.arschkrebs.de
 How would you rate our government's incompetence?
 Typical unix response:   Unmatched .



Re: [Dovecot] POP3 message not deleted

2007-09-21 Thread Gabriele Fergola
UUPPP

Ok i admint it...
my client was configured for keep the message on the server :P

Mail.app (os X) keep the message on the server for one week...

But i don't think all other client is configure for kepp the message on the
server.

the best for everyone
Workino

On 9/21/07, Gabriele Fergola [EMAIL PROTECTED] wrote:

 Ralf,
 thank you in advance for your answer.

 No i try it and my message is on the server and the client is not set to
 do it.

 my dovecot -n

 # 1.0.4: /etc/dovecot//dovecot.conf
 base_dir: /var/run/dovecot/
 protocols: imap pop3 imaps pop3s
 ssl_disable: yes
 disable_plaintext_auth: no
 shutdown_clients: no
 login_dir: /var/run/dovecot//login
 login_executable(default): /usr/local/libexec/dovecot/imap-login
 login_executable(imap): /usr/local/libexec/dovecot/imap-login
 login_executable(pop3): /usr/local/libexec/dovecot/pop3-login
 login_greeting_capability(default): yes
 login_greeting_capability(imap): yes
 login_greeting_capability(pop3): no
 first_valid_uid: 5000
 mail_location: maildir:/mbox/%d/%u/Maildir
 mail_executable(default): /usr/local/libexec/dovecot/imap
 mail_executable(imap): /usr/local/libexec/dovecot/imap
 mail_executable(pop3): /usr/local/libexec/dovecot/pop3
 mail_plugins(default): quota imap_quota
 mail_plugins(imap): quota imap_quota
 mail_plugins(pop3): quota
 mail_plugin_dir(default): /usr/local/lib/dovecot/imap
 mail_plugin_dir(imap): /usr/local/lib/dovecot/imap
 mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3
 pop3_uidl_format(default):
 pop3_uidl_format(imap):
 pop3_uidl_format(pop3): %08Xu%08Xv
 namespace:
   type: private
   separator: .
   prefix: INBOX.
   inbox: yes
 auth default:
   passdb:
 driver: pam
   passdb:
 driver: sql
 args: /etc/dovecot/dovecot-sql.conf
   userdb:
 driver: passwd
   userdb:
 driver: sql
 args: /etc/dovecot/dovecot-sql.conf
   socket:
 type: listen
 master:
   path: /var/run/dovecot/auth-master
   mode: 384
   user: vmail
   group: mail
 plugin:
   quota: dict: proxy::quota
 dict:
   quota: mysql:/etc/dovecot/dovecot-dict-quota.conf

 And in the log i can't see anything about an permission error...

 Workino

 On 9/21/07, Ralf Hildebrandt  [EMAIL PROTECTED] wrote:
 
  * Gabriele Fergola  [EMAIL PROTECTED]:
   Hi,
   i start today my new mail server with dovecot with about 2000 User on
  it.
   i don't know if it's a problem or not but when a client connect in
  pop3 the
   message keep on the server.
  
   Sep 21 10:53:37 cnetmbox dovecot: pop3-login: Login: user=
  [EMAIL PROTECTED],
   method=PLAIN, rip=XXX.XXX.XXX.XXX, lip=XXX.XXX.XXX.XXX
   Sep 21 10:53:37 cnetmbox dovecot: POP3( [EMAIL PROTECTED]):
   Disconnected: Logged out top=0/0, retr=0/0, del=0/1, size=2595
 
  Maybe the users uses leave mail on server
 
  --
  Ralf Hildebrandt ( [EMAIL PROTECTED])
  [EMAIL PROTECTED]
  Postfix - Einrichtung, Betrieb und Wartung   Tel. +49 (0)30-450
  570-155
  http://www.arschkrebs.de
  How would you rate our government's incompetence?
  Typical unix response:   Unmatched .
 




[Dovecot] Dict-server mysql module error

2007-07-16 Thread Gabriele Fergola

hi all
when i setup plugin quota by quota = dict: mysql:/etc/quota-dict.conf i get
the folowing error:

deliver([EMAIL PROTECTED]): Unknown dict module: mysql
deliver([EMAIL PROTECTED]): dict quota: dict_init() failed

quota-dict.conf:

connect = host=localhost dbname= user= password=
table = mailbox
select_field = quota
where_field = maildir
username_field = username

dovecot.conf:
# 1.0.2: /etc/dovecot//dovecot.conf
base_dir: /var/run/dovecot/
protocols: imap pop3 imaps pop3s
ssl_disable: yes
disable_plaintext_auth: no
shutdown_clients: no
login_dir: /var/run/dovecot//login
login_executable(default): /usr/local/libexec/dovecot/imap-login
login_executable(imap): /usr/local/libexec/dovecot/imap-login
login_executable(pop3): /usr/local/libexec/dovecot/pop3-login
first_valid_uid: 5000
mail_location: maildir:/mbox/%d/%u/Maildir
mail_executable(default): /usr/local/libexec/dovecot/imap
mail_executable(imap): /usr/local/libexec/dovecot/imap
mail_executable(pop3): /usr/local/libexec/dovecot/pop3
mail_plugins(default): quota imap_quota
mail_plugins(imap): quota imap_quota
mail_plugins(pop3): quota
mail_plugin_dir(default): /usr/local/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3
pop3_uidl_format(default):
pop3_uidl_format(imap):
pop3_uidl_format(pop3): %08Xu%08Xv
auth default:
 passdb:
   driver: pam
 passdb:
   driver: sql
   args: /etc/dovecot-sql.conf
 userdb:
   driver: passwd
 userdb:
   driver: sql
   args: /etc/dovecot-sql.conf
 socket:
   type: listen
   master:
 path: /var/run/dovecot/auth-master
 mode: 384
 user: vmail
 group: mail
plugin:
 quota: dict:storage=10240:messages=1000 mysql:/etc/dovecot-dict-quota.conf
 quota_warning: storage=80% /usr/local/bin/quota_warning.sh 80
dict:
 quota: mysql:/etc/dovecot-dict-quota.conf

i applied the patch for quota warning message by nicolas.

thank you in advance
Workino


Re: [Dovecot] User unknown in local recipient table? Dovecot LDA/Postfix

2007-06-08 Thread Gabriele Fergola

Hi Yu,
from your configuration i can't find the entry for mailbox maps.

Postfix check if the recipient exist with mailbox maps.
i think for solve your problem u need only set mailbox_maps= or
virtual_mailbox_maps if you use viertual domain.

This is a part of my main.cf where u can see varius parameter :

virtual_transport = dovecot
virtual_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_minimum_uid = 5000
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
virtual_mailbox_base = /home/mailbox
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
# virtual_mailbox_limit = 5120

# Additional for quota support
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps =
mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = Sorry, the user's maildir has overdrawn his
diskspace quota, please try again later.
virtual_overquota_bounce = yes
dovecot_destination_recipient_limit = 1

i use mysql for my user and domains.

Best reguards

Gabriele Fergola

P.S.: sorry for my pr english :D

On 6/7/07, Yu Chen [EMAIL PROTECTED] wrote:


This probably is a postfix problem, but I think there are lots of postfix
experts/users on this list, and have heard a lot good things about this
list, so I am just giving it a try. Thanks in advance!

I am using dovecot-1.0.0-8_56.src.rpm downloaded from atrpms.net, and
rebuilt from it(rpmrebuild ...). Postfix is 2.4.3.

I followed documents at http://wiki.dovecot.org/LDA and LDA/Postfix, and
used passwd-file (created /etc/passwd.dovecot file) both as password
Database and User database. I can send emails, but not receiving, keep
getting the User unknow error. Do I need to change the
local_recipient_map in main.cf, and if so, how?

Here are some related configuration:
###
dovecot -n
###
# /etc/dovecot.conf
log_path: /var/log/dovecot.log
ssl_ca_file: /etc/pki/dovecot/certs/ca-bundle.crt
verbose_ssl: yes
login_dir: /var/run/dovecot/login
login_executable(default): /usr/local/libexec/dovecot/imap-login
login_executable(imap): /usr/local/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
login_greeting: Dovecot ready.
verbose_proctitle: yes
first_valid_uid: 102
mail_extra_groups: mail
mail_location:
mbox:~/mail:INBOX=/var/mail/%u:INDEX=/var/mail_indexes/%d/%n
mail_debug: yes
maildir_copy_with_hardlinks: yes
mail_executable(default): /usr/local/libexec/dovecot/imap
mail_executable(imap): /usr/local/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugin_dir(default): /usr/local/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/lib64/dovecot/pop3
imap_client_workarounds(default): outlook-idle delay-newmail
imap_client_workarounds(imap): outlook-idle delay-newmail
imap_client_workarounds(pop3): outlook-idle
auth default:
   mechanisms: plain login
   executable: /usr/local/libexec/dovecot/dovecot-auth
   verbose: yes
   debug: yes
   debug_passwords: yes
   passdb:
 driver: passwd-file
 args: /etc/passwd.dovecot
   userdb:
 driver: passwd-file
 args: /etc/passwd.dovecot
   socket:
 type: listen
 client:
   path: /var/spool/postfix/private/auth
   mode: 432
   user: postfix
   group: mail
 master:
   path: /var/run/dovecot/auth-master
   mode: 384

###
postconf -n

alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
html_directory = /usr/share/doc/postfix-2.4.3-documentation/html
inet_interfaces = $myhostname, localhost
invalid_hostname_reject_code = 450
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
maps_rbl_reject_code = 450
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
myhostname = my.host.com
mynetworks = myip/24, 127.0.0.0/8
newaliases_path = /usr/bin/newaliases.postfix
non_fqdn_reject_code = 450
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.4.3-documentation/readme
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_tls_CAfile = /usr/share/ssl/certs/ca-bundle.crt
smtp_tls_cert_file = /usr/share/ssl/certs/postfix.pem
smtp_tls_key_file = /usr/share/ssl/certs/postfix.pem
smtp_tls_session_cache_database =
btree:/var/spool/postfix/smtp_tls_session_cache
smtpd_recipient_restrictions = permit_mynetworks,
permit_sasl_authenticated,permit_tls_clientcerts,
reject_unauth_destination,  check_relay_domains
smtpd_sasl_auth_enable = yes
smtpd_sasl_exceptions_networks = $mynetworks
smtpd_sasl_path = private/auth

Re: [Dovecot] [Fwd: mulitple instance run problem]

2007-06-08 Thread Gabriele Fergola

Hi Stewart,
i'm veery new and noob about doveccot so i suppose a solution or where
is the problem.
i think the problem is auth daemon

3671 ?Ss 0:00 /usr/local/sbin/dovecot
3672 ?S  0:00 dovecot-auth
5756 ?S  0:00 dovecot-auth -w
u can see dovecot start dovecot and dovecot-auth.

The realy problem u can have is with dovecot-auth because all 2 istance use
the same port(socket) for the login.

i don't know how to solve the problem in second istance but for test i
prefer use a virtual machine make with VirtualBox.

Best reguards
Gabriele Fergola



On 6/7/07, Stewart Dean [EMAIL PROTECTED] wrote:


I hour and 14 minutes later (14:59:38) the imap-login: Can't connect to
auth server at default: Connection refused messages started up again.
I am now doing a kill -7 and fully restarting the primary instance of
dovecot

Stewart Dean wrote:
 As I explained, I want to be able to run a second instance of DC
 through another port to do testing while not interrupting the users
 using the primary instance in the the regular port.  I was instructed
 to create a second config file with different listen ports and a
 separate base_dir.  I did so and invoked dc with -c pointing to
 dovecot2.conf.

 Jun  7 10:04:23 mercury mail:info dovecot: Dovecot v1.0.0 starting up

 I pointed my client at the non-SSL port, and everything worked
 fineuntil 3 hours later.  The client wasn't getting things
 through, so I checked the syslog on the dc server where I saw rapidly
 repeating errmsgs:...

 Jun  7 12:51:07 mercury mail:err|error dovecot: login: Authentication
 process 10
 89784 doesn't exist
 Jun  7 12:58:55 mercury mail:err|error dovecot: login: Authentication
 process 10
 89784 doesn't exist
 Jun  7 12:58:59 mercury mail:err|error dovecot: login: Authentication
 process 10
 89784 doesn't exist
 Jun  7 12:59:01 mercury mail:err|error dovecot: login: Authentication
 process 10
 89784 doesn't exist
 Jun  7 12:59:05 mercury mail:err|error dovecot: login: Authentication
 process 10
 89784 doesn't exist

 and many more, then..

 Jun  7 13:34:20 mercury mail:err|error dovecot: login: Authentication
 process 10
 89784 doesn't exist
 Jun  7 13:36:30 mercury mail:err|error dovecot: login: Authentication
 process 10
 89784 doesn't exist
 Jun  7 13:36:54 mercury mail:err|error dovecot: login: Authentication
 process 10
 89784 doesn't exist

 I kill the second instance.but things don't clear uprather I
 now get a different errmsgwhich must be from the primary dc
 instance, since the 2nd instance and all of its children are gone (I
 checked the ps)

 Jun  7 13:39:20 mercury mail:err|error dovecot: login: Authentication
 process 10
 89784 doesn't exist
 Jun  7 13:40:00 mercury mail:err|error dovecot: imap-login: Can't
 connect to aut
 h server at default: Connection refused
 Jun  7 13:40:06 mercury mail:err|error dovecot: imap-login: Can't
 connect to aut
 h server at default: Connection refused
 Jun  7 13:40:06 mercury mail:err|error dovecot: imap-login: Can't
 connect to aut
 h server at default: Connection refused

 Finally I do a kill -1 of the primary instance and that cleans things up

 Jun  7 13:45:46 mercury mail:warn|warning dovecot: SIGHUP received -
 reloading configuration

 Is there something I'm doing wrong?  Have other people run two
 instances without problem?  I tried starting the second instance and
 killing it immediately thereafterthat wnet OK, but it hasn't been
 3 hours yet.


--

Stewart Dean, Unix System Admin, Henderson Computer Resources
Center of Bard College, Annandale-on-Hudson, New York  12504
[EMAIL PROTECTED]  voice: 845-758-7475, fax: 845-758-7035