ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Eugene Prokopiev <prokopiev@stc.donpac.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] pop3-сервер с users/passwords/mbox names в plain text file
Date: Tue, 12 Jun 2007 00:59:32 +0400
Message-ID: <466DB7B4.9090106@stc.donpac.ru> (raw)
In-Reply-To: <466D9578.2070707@stc.donpac.ru>

Собственно, проблема не в postfix, т.к. dbmail с лукапом из mysql ведет 
себя так же (unknown user: "user"), пока не определен mailbox_transport.

Поэтому сейчас конфигурация выглядит так:

# cat /etc/postfix/main.cf

unknown_local_recipient_reject_code = 550
mailbox_transport = dovecot
local_recipient_maps = $alias_maps, cdb:$config_directory/vusers

# cat /etc/postfix/master.cf

...
dovecot   unix  -       n       n       -       -       pipe
   flags=DRhu user=mail:mail argv=/usr/lib64/dovecot/deliver -d ${recipient}

# cat /etc/dovecot/dovecot.conf

protocols = pop3
ssl_disable = yes
mail_extra_groups = mail
first_valid_uid = 8
mail_location = mbox:/mail/%u
mbox_min_index_size = 0
lock_method = fcntl
protocol pop3 {
   pop3_uidl_format = %08Xu%08Xv
}
protocol lda {
   postmaster_address = postmaster@myhost.mydomain.com
   auth_socket_path = /var/run/dovecot/auth-master
}
auth default {
   mechanisms = plain
   passdb pam {
   }
   userdb passwd {
   }
   passdb passwd-file {
     args = /etc/dovecot/dovecot.passwd
   }
   userdb static {
     args = uid=8 gid=12 home=/mail/%u
   }
   user = root
}

Теперь при отправке сообщения имеем:

Jun 12 00:42:24 myhost postfix/pickup[19448]: D084A13B7B: uid=0 from=<root>
Jun 12 00:42:24 myhost postfix/cleanup[19461]: D084A13B7B: 
message-id=<20070611204224.D084A13B7B@myhost.mydomain.com>
Jun 12 00:42:24 myhost postfix/qmgr[19449]: D084A13B7B: 
from=<root@myhost.mydomain.com>, size=306, nrcpt=1 (queue active)
Jun 12 00:42:24 myhost deliver(user@myhost.mydomain.com): 
net_connect(/var/run/dovecot/auth-master) failed: No such file or directory
Jun 12 00:42:24 myhost postfix/pipe[19464]: D084A13B7B: 
to=<user@myhost.mydomain.com>, orig_to=<user>, relay=dovecot, 
delay=0.05, delays=0.02/0/0/0.02, dsn=4.3.0, status=deferred (temporary 
failure)

Сокет /var/run/dovecot/auth-master действительно отсутствует:

# ls -l /var/run/dovecot/
total 8
srw------- 1 root root       0 Jun 12 00:39 auth-worker.19192
srwxrwxrwx 1 root root       0 Jun 12 00:39 dict-server
drwxr-x--- 2 root dovecot 4096 Jun 12 00:39 login
-rw------- 1 root root       6 Jun 12 00:39 master.pid

Хотя в конфиге он указан. Почему его нет?

-- 
С уважением, Прокопьев Евгений


  parent reply	other threads:[~2007-06-11 20:59 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-11  5:10 Eugene Prokopiev
2007-06-11  8:32 ` Konstantin A. Lepikhov
2007-06-11 10:18   ` Eugene Prokopiev
2007-06-11 10:50     ` Konstantin A. Lepikhov
2007-06-11  9:19 ` Eugene Prokopiev
2007-06-11 10:02   ` Konstantin A. Lepikhov
2007-06-11 11:22     ` Eugene Prokopiev
2007-06-11 16:14       ` Slava Dubrovskiy
2007-06-11 18:33         ` Eugene Prokopiev
2007-06-11 18:48           ` Konstantin A. Lepikhov
2007-06-11 19:38             ` Eugene Prokopiev
2007-06-11 19:49             ` Eugene Prokopiev
2007-06-11 19:52               ` Konstantin A. Lepikhov
2007-06-11 20:07                 ` Eugene Prokopiev
2007-06-11 20:11                   ` Konstantin A. Lepikhov
2007-06-11 20:28                     ` Eugene Prokopiev
2007-06-11 20:27                       ` Konstantin A. Lepikhov
2007-06-11 20:51                         ` Eugene Prokopiev
2007-06-11 18:54           ` Eugene Prokopiev
2007-06-11 18:55             ` Konstantin A. Lepikhov
2007-06-11 20:59           ` Eugene Prokopiev [this message]
2007-06-11 21:04             ` Konstantin A. Lepikhov
2007-06-12  7:20               ` Eugene Prokopiev
2007-06-12  7:35                 ` Slava Dubrovskiy
2007-06-12  7:45                   ` Eugene Prokopiev
2007-06-12  8:06                     ` Slava Dubrovskiy
2007-06-12  8:20                 ` Konstantin A. Lepikhov
2007-06-12  9:20                   ` Eugene Prokopiev
2007-06-12 10:43                     ` Eugene Prokopiev
2007-06-12  7:42               ` Eugene Prokopiev
2007-06-12  8:13                 ` Slava Dubrovskiy
2007-06-12  9:28                   ` Eugene Prokopiev
2007-06-12  9:32                     ` Slava Dubrovskiy
2007-06-12 13:38                     ` Eugene Prokopiev
2007-06-12 14:06                       ` Eugene Prokopiev
2007-06-12 14:10                         ` Konstantin A. Lepikhov
2007-06-12 14:29                           ` Eugene Prokopiev
2007-06-12 16:43                             ` Konstantin A. Lepikhov
2007-06-12 17:14                               ` Eugene Prokopiev
2007-06-12 19:27                                 ` Konstantin A. Lepikhov
2007-06-13  6:32                                   ` Eugene Prokopiev
2007-06-12 14:22                         ` Slava Dubrovskiy
2007-06-12 14:29                           ` Eugene Prokopiev
2007-11-25  3:55                         ` Aleksey Avdeev
2007-06-12 10:40   ` Slava Dubrovskiy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=466DB7B4.9090106@stc.donpac.ru \
    --to=prokopiev@stc.donpac.ru \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git