From: Eugene Prokopiev <prokopiev@stc.donpac.ru>
To: slava@tangramltd.com,
ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] pop3-сервер с users/passwords/mbox names в plain text file
Date: Tue, 12 Jun 2007 13:28:44 +0400
Message-ID: <466E674C.8090902@stc.donpac.ru> (raw)
In-Reply-To: <466E5596.1080203@tangramltd.com>
Slava Dubrovskiy пишет:
> Eugene Prokopiev пишет:
>
>>>... чтобы не только виртуальным
>>>пользователям письма приходили.
>>>
>>
>>Что-то я совсем не могу придумать, как им почту доставить.
>>
>># cat /etc/postfix/master.cf:
>>
>>...
>>dovecot unix - n n - - pipe
>> flags=DRhu user=mail:mail argv=/usr/lib64/dovecot/deliver -d ${recipient}
>>
>>Т.е. доставлять будет deliver от имени mail:mail, а поэтому доставлять
>>особо некуда, кроме как в /var/mail (т.е. в конфиге dovecot пишем
>>mail_location = mbox:~/mail:INBOX=/var/mail/%u), однако при:
>>
>># su - mail -s /bin/bash
>>-bash-3.1$ echo hello | /usr/lib64/dovecot/deliver -d john
>>
>>имеем:
>>
>>Jun 12 11:37:52 pbx deliver(john): setgid(502) failed: Operation not
>>permitted
>>
>>И даже при попытке доставить от рута:
>>
>># echo hello | /usr/lib64/dovecot/deliver -d john
>>
>>имеем:
>>
>>Jun 12 11:39:20 pbx deliver(john):
>>open(/var/mail/.temp.pbx.vertolexpo.ru.10301.d7b0885e7c76d2d7) failed:
>>Permission denied
>>Jun 12 11:39:20 pbx deliver(john): file_lock_dotlock() failed with mbox
>>file /var/mail/john: Permission denied
>>Jun 12 11:39:20 pbx deliver(john): msgid=: save failed to INBOX
>>
>>как быть?
>>
>>
>
> Еще нужно в dovecot.conf
> first_valid_gid = 12
> last_valid_gid = 12
>
> И еще
> user = postfix
> group = postfix
>
> в секции настройки socket listen
> А вообще там controll dovecot этим рулит
все эти настройки ни на что не влияют - я по прежнему получаю Permission
denied при попытке доставить почту системному пользователю
--
С уважением, Прокопьев Евгений
next prev parent reply other threads:[~2007-06-12 9:28 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
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 [this message]
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=466E674C.8090902@stc.donpac.ru \
--to=prokopiev@stc.donpac.ru \
--cc=slava@tangramltd.com \
--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