virtual domain mailbox cross contamination - Worked but I do not understand why.

Adam D emlists at gmail.com
Mon Aug 13 07:33:21 EDT 2007


Adam D wrote:
>
> Test3
>
>     main.cf:
>     virtual_transport = cyrus:unix:/var/run/cyrus/socket/lmtp
>     mailbox_transport = cyrus:unix:/var/run/cyrus/socket/lmtp
>
>     master.cf:
>     lmtp      unix  -       -       n       -       -       lmtp
>     cyrus     unix  -       -       n       -       -       lmtp
>       # flags=R user=cyrus argv=/usr/sbin/cyrdeliver -e -m ${extension}
>     ${user}
>
>     log output:
>     postfix/lmtp[10390]: AEE3B3176: to=<user at doimain2.tld>, relay=none,
>     delay=0.09, delays=0.04/0.03/0.03/0, dsn=4.4.1, status=deferred
>     (connect to host.domain2.tld[/var/run/cyrus/socket/lmtp]: Permission
>     denied)
>
>
>  ls -l /var/run/cyrus/socket/
> total 0
> srwxrwxrwx 1 root root 0 Aug 11 23:11 lmtp=
> srwxrwxrwx 1 root root 0 Aug 11 23:11 notify=
>
> I changed the owner and group to cyrus:mail but it still gives me the
> same Permission denied
>   
Wait... I thought to just try something and changed
cyrus     unix  -       -       n       -       -       lmtp

to

cyrus     unix  -       n       n       -       -       lmtp

and the mail delivered just fine to the proper INBOXes.  If I may ask
why making the unpriv to no made it work?  It was the combination of
things that made it work from all the suggestions and help.  I have
included the whole master.cf file.  I would love some help to understand
why this worked and why the other attempts did not work.

-Adam



PS:  master.cf

# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       -       -       -       smtpd
#628      inet  n       -       -       -       -       qmqpd
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       -       300     1       oqmgr
tlsmgr    unix  -       -       -       1000?   1       tlsmgr
rewrite   unix  -       -       -       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce
trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       -       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       -       -       -       smtp
        -o fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
discard   unix  -       -       -       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
#lmtp      unix  -       -       -       -       -       lmtp
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       -       -       1       anvil
scache    unix  -       -       -       -       1       scache


maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}


# The Cyrus deliver program has changed incompatibly, multiple times.
#cyrus     unix  -       n       n       -       -       pipe
cyrus     unix  -       n       n       -       -       lmtp
#  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail
($recipient)
#  flags=R user=cyrus argv=/usr/sbin/cyrdeliver -e -m ${extension} ${user}
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender
$recipient
scalemail-backend unix  -       n       n       -       2       pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store
${nexthop} ${user} ${extension}
 



More information about the Info-cyrus mailing list