Re: [Dovecot] Problem with Postfix + Dovecot + MySQL + Squirrelmail
Ok, I do some changes and now I can send mails but not recieve mail. On log I get this message: Feb 22 20:02:04 localhost dovecot: deliver(te...@clubedolimite.com.br): Fatal: setgid(12(man)) failed with euid=150(vmail), gid=8(mail), egid=8(mail): Operation not permitted (This binary should probably be called with process group set to 12(man) instead of 8(mail)) Where is the problem now? Thanks! On Sun, Feb 12, 2012 at 9:33 AM, Charles Marcus cmar...@media-brokers.comwrote: On 2012-02-11 1:46 PM, Gustavo club...@gmail.com wrote: Ok, I study the wikki and the dovecot works. But when I try to send a mail using squirrel, I get this error on logs: Feb 11 18:41:55 jubileu postfix/smtpd[19522]: connect from localhost.localdomain[127.0.0.**1] Feb 11 18:41:55 jubileu postfix/smtpd[19522]: warning: xsasl_cyrus_server_get_**mechanism_list: no applicable SASL mechanisms Feb 11 18:41:55 jubileu postfix/smtpd[19522]: fatal: no SASL authentication mechanisms Sorry, but this has nothing to do with dovecot, unless your intention is to use dovecot-sasl with your postfix... it appears you are using cyrus-sasl and postfix on your smtp server, that is where your problem lies. Easiest would be to configure postfix to use dovecot-sasl: http://wiki2.dovecot.org/**HowTo/PostfixAndDovecotSASLhttp://wiki2.dovecot.org/HowTo/PostfixAndDovecotSASL -- Best regards, Charles -- Gustavo - club...@gmail.com
Re: [Dovecot] Problem with Postfix + Dovecot + MySQL + Squirrelmail
On 2012-02-11 1:46 PM, Gustavo club...@gmail.com wrote: Ok, I study the wikki and the dovecot works. But when I try to send a mail using squirrel, I get this error on logs: Feb 11 18:41:55 jubileu postfix/smtpd[19522]: connect from localhost.localdomain[127.0.0.1] Feb 11 18:41:55 jubileu postfix/smtpd[19522]: warning: xsasl_cyrus_server_get_mechanism_list: no applicable SASL mechanisms Feb 11 18:41:55 jubileu postfix/smtpd[19522]: fatal: no SASL authentication mechanisms Sorry, but this has nothing to do with dovecot, unless your intention is to use dovecot-sasl with your postfix... it appears you are using cyrus-sasl and postfix on your smtp server, that is where your problem lies. Easiest would be to configure postfix to use dovecot-sasl: http://wiki2.dovecot.org/HowTo/PostfixAndDovecotSASL -- Best regards, Charles
Re: [Dovecot] Problem with Postfix + Dovecot + MySQL + Squirrelmail
Ok, I study the wikki and the dovecot works. But when I try to send a mail using squirrel, I get this error on logs: Feb 11 18:41:55 jubileu postfix/smtpd[19522]: connect from localhost.localdomain[127.0.0.1] Feb 11 18:41:55 jubileu postfix/smtpd[19522]: warning: xsasl_cyrus_server_get_mechanism_list: no applicable SASL mechanisms Feb 11 18:41:55 jubileu postfix/smtpd[19522]: fatal: no SASL authentication mechanisms Feb 11 18:41:56 jubileu postfix/master[18383]: warning: process /usr/lib/postfix/smtpd pid 19522 exit status 1 Feb 11 18:41:56 jubileu postfix/master[18383]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling How can I fix this? My conf files seems to be ok: ## Diretorio Base ## base_dir = /var/run/dovecot/ ## Protocolos que ele ira executar ## protocols = imap imaps pop3 pop3s log_timestamp = '%Y-%m-%d %H:%M:%S ' syslog_facility = mail ## Dados do SSL ## ssl_listen = localhost ssl_cert_file = /etc/postfix/mail-cert.pem ssl_key_file = /etc/postfix/mail-key.pem ssl_parameters_regenerate = 168 verbose_ssl = no mail_location = maildir:/var/vmail/%d/%u mail_access_groups = mail mail_debug = no first_valid_uid = 150 last_valid_uid = 150 maildir_copy_with_hardlinks = yes protocol imap { } protocol pop3 { # Login executable location. login_executable = /usr/lib/dovecot/pop3-login mail_executable = /usr/lib/dovecot/pop3 pop3_uidl_format = %08Xu%08Xv } protocol lda { sendmail_path = /usr/lib/sendmail auth_socket_path = /tmp/auth-master } auth_verbose = no auth_debug = no auth default { mechanisms = plain login passdb pam { } passdb sql { args = /etc/dovecot/dovecot-sql.conf } userdb passwd { } userdb sql { args = /etc/dovecot/dovecot-sql.conf } socket listen { master { path = /tmp/auth-master mode = 0600 user = vmail group = mail } client { path = /tmp/auth-client mode = 0660 user = vmail group = mail } } } dict { } plugin { } # And Postfix conf: # SASL Authentication smtpd_sasl_auth_enable = yes smtpd_sasl2_auth_enable = yes smtpd_sasl_exceptions_networks = $mynetworks smtpd_sasl_security_options = noanonymous broken_sasl_auth_clients = yes smtpd_sasl_path = private/auth smtpd_sasl_application_name = smtpd smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination permit_mynetworks = 127.0.0.0/8, 184.22.103.88/32, 184.22.103.87/32 Thanks!!! -Mensagem Original- From: Timo Sirainen Sent: Saturday, January 28, 2012 3:51 PM To: Gustavo Cc: dovecot@dovecot.org Subject: Re: [Dovecot] Problem with Postfix + Dovecot + MySQL + Squirrelmail On 27.1.2012, at 14.32, Gustavo wrote: #service dovecot start Starting IMAP/POP3 mail server: dovecotLast died with error (see error log for more information): Auth process died too early - shutting down No need to keep guessing the problem. See error log for more information like it says. http://wiki.dovecot.org/**Logginghttp://wiki.dovecot.org/Logging -- Gustavo - club...@gmail.com
Re: [Dovecot] Problem with Postfix + Dovecot + MySQL + Squirrelmail
On 27.1.2012, at 14.32, Gustavo wrote: #service dovecot start Starting IMAP/POP3 mail server: dovecotLast died with error (see error log for more information): Auth process died too early - shutting down No need to keep guessing the problem. See error log for more information like it says. http://wiki.dovecot.org/Logging
[Dovecot] Problem with Postfix + Dovecot + MySQL + Squirrelmail
Dear friends, I try configure a webmail on my server using Postfix + Dovecot + MySQL + Squirrelmail. My system is a Debian6 and dovecot version is: #dovecot --version 1.2.15 But, when I try to access an account on squirrel I recieve this message: “ERROR Error connecting to IMAP server: localhost. 111 : Connection refused” Looking for a problem I foud this: #service dovecot start Starting IMAP/POP3 mail server: dovecotLast died with error (see error log for more information): Auth process died too early - shutting down If you have trouble with authentication failures, enable auth_debug setting. See http://wiki.dovecot.org/WhyDoesItNotWork This message goes away after the first successful login. . And the status of doveco is: #service dovecot status dovecot is not running ... failed! The other services seems to be OK: #service postfix status postfix is running. # service mysql status /usr/bin/mysqladmin Ver 8.42 Distrib 5.1.49, for debian-linux-gnu on x86_64 Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc. This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPL license Server version5.1.49-3 Protocol version10 ConnectionLocalhost via UNIX socket UNIX socket/var/run/mysqld/mysqld.sock Uptime:32 days 14 hours 23 min 39 sec Threads: 1 Questions: 6743 Slow queries: 0 Opens: 385 Flush tables: 1 Open tables: 47 Queries per second avg: 0.2. Looking at dovecot.conf I found some incosistences: On dovecot.conf: protocol lda { sendmail_path = /usr/lib/sendmail auth_socket_path = /var/run/dovecot/auth-master } socket listen { master { path = /var/run/dovecot/auth-master mode = 0600 user = vmail group = mail } client { path = /var/run/dovecot/auth-client mode = 0660 user = vmail group = mail } } But in the system I don1t found this files!!! /var/run/dovecot# ls total 20K drwxr-xr-x 3 root root 4.0K Jan 27 11:35 . drwxr-xr-x 8 root root 4.0K Jan 27 09:33 .. srw--- 1 root root 0 Jan 27 11:35 auth-worker.26163 srwxrwxrwx 1 root root 0 Jan 27 11:35 dict-server lrwxrwxrwx 1 root root 25 Jan 27 11:35 dovecot.conf - /etc/dovecot/dovecot.conf drwxr-x--- 2 root dovecot 4.0K Jan 27 11:35 login -rw--- 1 root root 43 Jan 27 11:35 master-fatal.lastlog -rw--- 1 root root 6 Jan 27 11:35 master.pid /var/run/dovecot# ls login/ total 12K drwxr-x--- 2 root dovecot 4.0K Jan 27 11:35 . drwxr-xr-x 3 root root 4.0K Jan 27 11:35 .. srw-rw 1 root dovecot 0 Jan 27 11:35 default -rw-r--r-- 2 root root 230 Jan 23 19:12 ssl-parameters.dat I think maybe that is the problem. Anyone knows how I fix that? Or what is the real problem? Thanks for any help! -- Gustavo