Re: [Dovecot] Dovecot SASL Postfix

2009-04-02 Thread kosov...@web.de
Hey

Timo Sirainen schrieb:
> On Fri, 2009-04-03 at 01:28 +0200, kosov...@web.de wrote:
>> dovecot: 2009-04-03 01:04:38 Error: auth(default):
>> bind(/var/spool/postifx/private/auth)
>> failed: No such file or directory
> 
> postfix, not postifx.
> 
Now I must position myself in the corner and be ashamed really. Services
run without problems. Tomorrow I go sometimes to the oculist.


Many thanks
Silvio


[Dovecot] Dovecot SASL Postfix

2009-04-02 Thread kosov...@web.de
Hello,

I try to bring Postfix + Dovecot + SASL in the running. Unfortunately, this
has not succeeded to me, only the Pop3 daemon runs without problems.

/var/log/dovecot.log
dovecot: 2009-04-03 01:04:38 Error: auth(default):
bind(/var/spool/postifx/private/auth)
failed: No such file or directory
dovecot: 2009-04-03 01:04:38 Fatal: auth(default):
net_listen_unix(/var/spool/postifx/private/auth) failed: No such file or
directory
dovecot: 2009-04-03 01:04:38 Fatal: Auth process died too early - shutting
down

/var/log/mail.log
Apr  3 01:08:38 server1 postfix/master[14627]: daemon started -- version
2.5.5, configuration /etc/postfix
Apr  3 01:09:07 server1 postfix/smtpd[14650]: warning: SASL: Connect to
private/auth failed: No such file or directory
Apr  3 01:09:07 server1 postfix/smtpd[14650]: fatal: no SASL authentication
mechanisms
Apr  3 01:09:08 server1 postfix/master[14627]: warning: process
/usr/lib/postfix/smtpd pid 14650 exit status 1
Apr  3 01:09:08 server1 postfix/master[14627]: warning:
/usr/lib/postfix/smtpd: bad command startup -- throttling

-

postconf -n
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
home_mailbox = maildir/
mailbox_size_limit = 0
mydestination = $myhostname, mail.silvio-siefke.de, server1.silviosiefke.de
myhostname = server1.silviosiefke.de
recipient_delimiter = +
smtp_sasl_auth_enable = no
smtpd_recipient_restrictions =
reject_non_fqdn_sender  
reject_non_fqdn_recipient
reject_invalid_helo_hostname
reject_non_fqdn_helo_hostname
permit_sasl_authenticated
permit_mynetworks
reject_unauth_destination
reject_unlisted_recipient
reject_rbl_client zen.spamhaus.org  
reject_rbl_client dul.dnsbl.sorbs.net
reject_rbl_client bl.spamcop.net
check_policy_service inet:127.0.0.1:10031
reject_unknown_sender_domain
smtpd_sasl_auth_enable = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_maps = mysql:/etc/postfix/mysql/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:1001
virtual_mailbox_base = /usr/local/virtual
virtual_mailbox_domains =
mysql:/etc/postfix/mysql/mysql_virtual_domains_maps.cf
virtual_mailbox_limit = 5120
virtual_mailbox_maps = mysql:/etc/postfix/mysql/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 1001
virtual_transport = virtual
virtual_uid_maps = static:1004

-

/usr/local/etc/dovecot.conf
base_dir = /var/run/dovecot/
log_path = /var/log/dovecot.log
info_log_path = /var/log/dovecot-info.log
log_timestamp = "%b %d %H:%M:%S "
ssl_disable = yes
auth_verbose=yes
auth_debug=yes
auth_debug_passwords=yes
mail_debug=yes

protocols = pop3 imap
disable_plaintext_auth = no
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_location = maildir:/usr/local/virtual/%d/%n
mail_access_groups = virtual
first_valid_uid = 1004
first_valid_gid = 1005
protocol imap {
}

protocol pop3 {
pop3_uidl_format = %08Xu%08Xv
}
auth default {
mechanisms = plain login digest-md5
passdb sql {
args = /usr/local/etc/dovecot-sql.conf
}
userdb sql {
args = /usr/local/etc/dovecot-sql.conf
}

user = root

socket listen {
client {
path = /var/spool/postifx/private/auth
mode = 0660
user = postfix
group = postfix
}
}
}


Has someone a Idea?



Greetings
Silvio


Re: [Dovecot] Courier

2009-04-01 Thread kosov...@web.de
Hello,

Timo Sirainen schrieb:
> On Mar 31, 2009, at 7:58 AM, kosov...@web.de wrote:
> 
>> log_path = /var/log/dovecot.log
>> info_log_path = /var/log/dovecot-info.log
> ..
>> Log:
> 
> This looks like it's only the dovecot-info.log.
> 
>> dovecot: 2009-03-31 13:50:16 Info: POP3(webmas...@silviosiefke.de):
>> Couldn't open INBOX top=0/0, retr=0/0, del=0/0, size=0
> 
> The real error message should have been written to dovecot.log. Is there
> anything in there?
> 
> What Dovecot version?
> 
> 

Thanks the system is running. Had someone a good Howto for Postfix and
Sasl. The Howto on the Dovecot website, is not running. Dovecot or Postfix
find not the /var/spool/postfix/private/auth. No such file or Directory.



Greeting
Silvio


[Dovecot] Courier

2009-03-31 Thread kosov...@web.de
Hello,


For months I have the following configuration in run.
Postfix with Mysql and Postfixadmin, Courier Imap + Pop

I get a new server and, therefore, would like to change on Dovecot.
The installation has also clapped without problems and the configuration
has run so far also without defects. If I liked to call away the emails, I
always get the announcement Internal Login failure.

/usr/local/etc/dovecot.conf
log_path = /var/log/dovecot.log
info_log_path = /var/log/dovecot-info.log
log_timestamp = "%b %d %H:%M:%S "
ssl_disable = yes
auth_verbose=yes
auth_debug=yes
auth_debug_passwords=yes
mail_debug=yes

protocols = imap imaps pop3 pop3s
disable_plaintext_auth = no
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_location = maildir:/usr/local/virtual/%d/%n
mail_access_groups = virtual
first_valid_uid = 1004
first_valid_gid = 1005
protocol imap {
}

protocol pop3 {
pop3_uidl_format = %08Xu%08Xv
}
auth default {
mechanisms = digest-md5 plain
passdb sql {
args = /usr/local/etc/dovecot-sql.conf
}
userdb sql {
args = /usr/local/etc/dovecot-sql.conf
}
user = root
}

/usr/local/etc/dovecot-sql.conf
driver = mysql
connect = dbname=postfix user=postfix host=localhost password=
default_pass_scheme = PLAIN
password_query = SELECT password FROM mailbox WHERE username = '%u'
user_query = SELECT maildir, 106 AS uid, 106 AS gid FROM mailbox WHERE
username = '%u'


server1:/etc/init.d# ls -l /usr/local/virtual
insgesamt 8
drwx--S--- 5 virtual virtual 4096 26. Aug 2008  silviosiefke.de
drwx--S--- 3 virtual virtual 4096 25. Aug 2008  silvio-siefke.de

server1:/etc/init.d# ls -l /usr/local/virtual/silviosiefke.de
insgesamt 12
drwx--S--- 15 virtual virtual 4096  4. Feb 13:37 info
drwx--S--- 12 virtual virtual 4096 13. Dez 11:56 listen
drwx--S--- 12 virtual virtual 4096 13. Dez 11:55 webmaster

server1:/etc/init.d# ls -l /usr/local/virtual/silviosiefke.de/webmaster
insgesamt 76
drwx--S--- 2 virtual virtual  4096  8. Dez 16:26 courierimaphieracl
-rw-r--r-- 1 virtual virtual   175 31. Mär 11:30 courierpop3dsizelist
drwx--S--- 2 virtual virtual 28672 31. Mär 11:30 cur
drwx--S--- 2 virtual virtual 20480 31. Mär 11:30 new
drwx--S--- 2 virtual virtual  4096 13. Dez 11:55 sqwebmail-curcache
-rw--- 1 virtual virtual 1 13. Dez 11:55 sqwebmail-curcache.nfshack
-rw--- 1 virtual virtual 7  8. Dez 16:26 sqwebmail-sentstamp
-rw--- 1 virtual virtual 1 13. Dez 11:55 sqwebmail-timestamp
drwx--S--- 2 virtual virtual  4096 31. Mär 11:30 tmp


Log:
dovecot: 2009-03-31 13:50:16 Info: auth(default): client in: AUTH   1
PLAIN   service=pop3lip=212.43.81.97rip=78.50.83.149
lport=110   rport=2740  resp=
dovecot: 2009-03-31 13:50:16 Info: auth(default): client out: CONT  1   
dovecot: 2009-03-31 13:50:16 Info: auth(default): client in: CONT   1
gklshjksdhshghsgslgls
dovecot: 2009-03-31 13:50:16 Info: auth-worker(default):
sql(webmas...@silviosiefke.de,78.50.83.149): query: SELECT password FROM
mailbox WHERE username = 'webmas...@silviosiefke.de'
dovecot: 2009-03-31 13:50:16 Info: auth(default): client out: OK1
user=webmas...@silviosiefke.de
dovecot: 2009-03-31 13:50:16 Info: auth(default): master in: REQUEST2   
20275   1
dovecot: 2009-03-31 13:50:16 Info: auth-worker(default):
sql(webmas...@silviosiefke.de,78.50.83.149): SELECT maildir, 1000 AS uid,
1000 AS gid FROM mailbox WHERE username = 'webmas...@silviosiefke.de'
dovecot: 2009-03-31 13:50:16 Info: auth(default): master out: USER  2
webmas...@silviosiefke.de   maildir=silviosiefke.de/webmaster/  
uid=1000gid=1000
dovecot: 2009-03-31 13:50:16 Info: pop3-login: Login:
user=, method=PLAIN, rip=78.50.83.149,
lip=212.43.81.97
dovecot: 2009-03-31 13:50:16 Info: POP3(webmas...@silviosiefke.de):
Effective uid=1000, gid=1000, home=
dovecot: 2009-03-31 13:50:16 Info: POP3(webmas...@silviosiefke.de):
maildir: data=/usr/local/virtual/silviosiefke.de/webmaster
dovecot: 2009-03-31 13:50:16 Info: POP3(webmas...@silviosiefke.de):
maildir++: root=/usr/local/virtual/silviosiefke.de/webmaster, index=,
control=, inbox=/usr/local/virtual/silviosiefke.de/webmaster
dovecot: 2009-03-31 13:50:16 Info: POP3(webmas...@silviosiefke.de):
Couldn't open INBOX top=0/0, retr=0/0, del=0/0, size=0


Does somebody have an idea what it can lie with?



Greeting
Silvio Siefke
www.silviosiefke.de