Simon Matter wrote:
Hi
Im a newbie, and im trying to setup postfix to deliver mail to cyrus,
and i have setup this in my postfix config:
mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp
In mi maillog i get this when receiving mail:
--- maillog ---
Oct 12 13:31:28 moso postfix/lmtp[7607]: 6E60C10FC89:
to=<[EMAIL PROTECTED]>, orig_to=<[EMAIL PROTECTED]>,
relay=none, delay=12, status=deferred (connect to
/var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp]: Permission denied)
--- maillog ---
So i have a permission problem, but what is it? ls -asl
/var/lib/imap/socket/lmtp gives this:
4 srwxrwxrwx 1 root root 0 Oct 12 09:09 /var/lib/imap/socket/lmtp
So everyone should have write permissions, right?
1)
You also have to check permissions of the directories.
Here are the permissions:
8 drwxr-xr-x 26 root root 4096 Oct 12 09:10 var
8 drwxr-xr-x 29 root root 4096 Oct 13 10:32 lib
8 drwxr-x--- 14 cyrus mail 4096 Oct 13 13:09 imap
8 drwxr-x--- 2 cyrus mail 4096 Oct 12 09:09 socket
I tried a:
usermod -G mail postfix
but that didnt help, do i need write permissions for the socket dir for
the mail group also?
2)
Maybe your postfix/lmtp runs chrooted. Then you have a problem. The
easiest solution would be to disable chroot for lmtp in postfix master.cf
Its not chrooted:
#=====================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
#=====================================================================
lmtp unix - - n - - lmtp
/Søren
----
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html