Re: [Dovecot] Using deliver with postfix

2008-09-24 Thread Rich Winkel
On Sat, Sep 20, 2008 at 05:47:26AM +0200, mouss wrote:
 
 in your case, see the Multiple UIDs section in
   http://wiki.dovecot.org/LDA
 (you need setuid...).

I'm sorry, I'm still having  trouble... 
/usr/local/libexec/dovecot/postfix/deliver -d ${USER}. Command output:
/usr/local/libexec/dovecot/postfix/deliver: Permission denied

#ls -la /usr/local/libexec/dovecot/postfix/
drwx--  2 postfix  postfix 512 Sep 24 16:07 ./
drwxr-xr-x  3 root wheel   512 Sep 24 16:07 ../
-r-sr-sr-x  1 root postfix  676396 Sep 24 16:07 deliver*

The postfix documentation says the delivery agent is run under the
recipient's ID, so I can see why there's a permissions problem.
If I don't specify -d it doesn't access auth-master, so I can
run it without setuid or permissions issues, but will there other
problems?  

Thanks!
Rich



Re: [Dovecot] Using deliver with postfix

2008-09-19 Thread Rich Winkel
Thanks for your help mouss!

On Fri, Sep 19, 2008 at 10:22:40AM +0200, mouss wrote:
 Rich Winkel wrote:
 Hi, I'm trying to set up dovecot 1.1.2 and postfix 2.5.4 on freebsd 7.0.
 I'm getting permissions problems on auth-master and I'm not sure of the
 correct settings to use.
 
 In postfix's main.cf I have
 mailbox_command=/usr/local/libexec/dovecot/deliver -d $USER
 
 In dovecot.conf I have:
 socket listen {
master {
  path = /var/run/dovecot/auth-master
  mode = 0660
  user = dovecot
  group = postfix
}
 leave the master as it was and add a client for postfix:
 client {
   path = /var/spool/postfix/private/dovecot
   mode = 0660
   user = postfix
   group = postfix
 }

I'm confused.  So deliver doesn't need access to the master socket?
Because it uses the master (not the client) in the default setup ...

Also how does this differ in terms of permissions from my current
setup?  In both cases you would have group postfix rw perms on the
socket.  And looking at the docs, I'm doubly confused!  It says mailbox_command
runs with the userid of the recipient.  So how is it supposed to access
this socket in any case?  I take it I don't want to give 666 perms to
the socket ...

Sorry for my ignorance ...

Rich



[Dovecot] Using deliver with postfix

2008-09-18 Thread Rich Winkel
Hi, I'm trying to set up dovecot 1.1.2 and postfix 2.5.4 on freebsd 7.0.
I'm getting permissions problems on auth-master and I'm not sure of the
correct settings to use.

In postfix's main.cf I have
mailbox_command=/usr/local/libexec/dovecot/deliver -d $USER

In dovecot.conf I have:
socket listen {
   master {
 path = /var/run/dovecot/auth-master
 mode = 0660
 user = dovecot
 group = postfix
   }
...

# ls -l /var/run/dovecot/auth-master
srw-rw  1 dovecot  postfix  0 Sep 18 18:26 /var/run/dovecot/auth-master=

In maillog I'm getting:
deliver(sumbuddy): Can't connect to auth server at 
/var/run/dovecot//auth-master: Permission denied
(I'm not sure where it's getting the // in the path either ...)


Also I'm confused about whether I need the postfix options:
maildrop_destination_recipient_limit=1
dovecot_destination_concurrency_limit=1
or even whether these are current options in my version of postfix (they don't
appear in main.cf.default)
Does deliver require such limits on concurrency or # of recipients?

Thanks!!
Rich



[Dovecot] mbox purge routine?

2008-07-07 Thread Rich Winkel
Can someone direct me to a unix utility for purging old messages from
mbox's?  It seems entourage isn't doing it.

Thanks,
Rich



Re: [Dovecot] Can't sync delivery mail

2007-10-29 Thread Rich Winkel
On Sat, Oct 27, 2007 at 07:08:55PM +0300, Timo Sirainen wrote:
 On Wed, 2007-10-24 at 16:27 -0500, Rich Winkel wrote:
  Dovecot 1.0.3
  Deliver is saying this on two specific emails.  Other emails to these 2
  users are going through fine.  Looking at the mail headers the only
  thing questionable I see is:
  From: AMS Publication Division@ams.org
  Is this the problem?
 
 Contents of the messages shouldn't matter. This error should never
 happen. Doesn't Dovecot log anything else? Could you try this patch and
 show me what it logs: http://hg.dovecot.org/dovecot-1.0/rev/d58f7f66faa3

It now says:
Can't sync delivery mail: BUG: Unknown internal error

A sample offending message (in sendmail mqueue format) is in:
http://www.math.missouri.edu/~rich/dovecot/bugmail.tgz

Thanks for any help!
Rich



Re: [Dovecot] thunderbird and email duplication

2007-10-17 Thread Rich Winkel
For what it's worth I had a similar problem with deliver (thunderbird was
not involved) for userids whose email aliases were mixed-case versions
of the userid (Rich vs rich).  It went away when I lowercased the alias.
Dovecot 1.0.3.

Rich



[Dovecot] deliver net_connect auth-master failed: Permission denied

2007-09-25 Thread Rich Winkel
Ok, I've ALMOST got this working ... I can run deliver as a user, but when
I try using it as the default delivery agent from sendmail, I get
deliver(userid): net_connect(/var/run/dovecot/auth-master) failed: Permission 
denied

Does deliver run as root, as the recipient's ID, sendmail's ID or
sendmail's GID?  (I'm running freebsd)

Or am I totally clueless ?? 
Here is dovecot -n:

# 1.0.3: /usr/local/etc/dovecot.conf
base_dir: /var/run/dovecot/
listen: localhost:996
ssl_disable: yes
login_dir: /var/run/dovecot/login
login_executable: /usr/local/libexec/dovecot/imap-login
login_greeting_capability: yes
first_valid_uid: 100
mail_extra_groups: mail
mail_location: 
mbox:~/mail:INBOX=/var/mail/%u:INDEX=/var/spool/dovecot_indexes/%u
lock_method: flock
mbox_read_locks: flock
mbox_write_locks: flock
auth default:
  passdb:
driver: pam
  userdb:
driver: passwd
  socket:
type: listen
client:
  path: /var/run/dovecot/auth-client
  mode: 432
master:
  path: /var/run/dovecot/auth-master
  mode: 432

Thanks!
Rich


[Dovecot] Strange error message

2007-09-22 Thread Rich Winkel
I apologise if this is a faq but I couldn't find it in the archives.

FreeBSD math 4.11-RELEASE-p26 FreeBSD 4.11-RELEASE-p26 
dovecot version 1.0.3
x86 cpu
local disk (ufs)

Trying to run deliver from user's .forward file.
sendmail configured with smrsh, forward file says:
| deliver
Imap seems to work fine, but deliver says:

deliver(rw): mbox read/write lock list settings are invalid. Lock ordering must 
be the same with both, and write locks must contain all read locks (and 
possibly more)

#dovecot -n
# 1.0.3: /usr/local/etc/dovecot.conf
base_dir: /var/run/dovecot/
listen: localhost:996
ssl_disable: yes
login_dir: /var/run/dovecot/login
login_executable: /usr/local/libexec/dovecot/imap-login
login_greeting_capability: yes
first_valid_uid: 100
mail_extra_groups: mail
mail_location: 
mbox:~/mail:INBOX=/var/mail/%u:INDEX=/var/spool/dovecot_indexes/%u
lock_method: flock
mbox_write_locks: flock
auth default:
  passdb:
driver: pam
  userdb:
driver: passwd

Any help would be much appreciated!!  

Rich