Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    roundcube1.9.9,cyrus,postfix /usr/bin/vacation: cannot open file:

    Hi all

    I've got a strange bug with a old roundcube release(1.2):after setting up the vacation autoreply, I takes about 10mins before sending any autoresponse. during that periode, any received email is lost. so that the sender dosn't know that I'm out of office, and I lost some (import)mails.

    so, I've upgrade to 1.9.9, all works find excepting one detail. the sender get 2 mails. the first one is an "Undelivered Message", and second one is the auto response
    The mail system

    <>: cannot append message to file /usr/bin/vacation:
    cannot open file: Permission denied

    here's some log infos:

    cyrus/lmtpunix[16204]: accepted connection
    Mar 2 16:41:33 rhel-mdabackup-001 cyrus/lmtpunix[16204]: lmtp connection preauth'd as postman
    Mar 2 16:41:33 rhel-mdabackup-001 cyrus/lmtpunix[16204]: Delivered: <> to mailbox: user.thatsme
    Mar 2 16:41:33 rhel-mdabackup-001 postfix/pipe[16257]: ABB32F3700BB: to=<>, relay=procmail, delay=0.01, delays=0/0/0/0.01, dsn=2.0.0, status=sent (delivered via procmail service)
    Mar 2 16:41:33 rhel-mdabackup-001 postfix/local[16254]: ABB32F3700BB: to=<>, relay=local, delay=0.01, delays=0/0/0/0.01, dsn=2.0.0, status=sent (delivered to command: /usr/bin/vacation thatsme)
    Mar 2 17:30:30 rhel-mdabackup-001 postfix/local[17412]: 342A1F37009B: to=<>, relay=local, delay=0.02, delays=0/0/0/0.02, dsn=5.2.0, status=bounced (cannot append message to file /usr/bin/vacation: cannot open file: Permission denied)

    procmail logs: nothing intressting, it said that it send a Undelivered Message to the sender
    procmail: Locking "/var/lib/imap/.lockmail"
    procmail: Assigning "DELIVERTO=/usr/lib/cyrus-imapd/deliver"
    procmail: Assigning "USERINBOX=/usr/lib/cyrus-imapd/deliver -e -a ops2 -m user.ops2"
    procmail: Assigning "INCLUDERC=/etc/procmail/ops2.procmailrc"
    procmail: Couldn't read "/etc/procmail/ops2.procmailrc"
    procmail: No match on "^X-Spam-Flag: YES"
    procmail: Executing "/usr/lib/cyrus-imapd/deliver,-e,-a,ops2,-m,user.ops2"
    procmail: Assigning "LASTFOLDER=/usr/lib/cyrus-imapd/deliver -e -a ops2 -m user.ops2"
    Subject: Undelivered Mail Returned to Sender
    Folder: /usr/lib/cyrus-imapd/deliver -e -a ops2 -m user.ops2 3367

    and here's procmailrc

    # UMASK=007




    * ^X-Spam-Flag: YES
    | $DELIVERTO -e -a $CYRUSUSER -m user.$CYRUSUSER.Spam

    #* !^To:
    #| $DELIVERTO -e -a $CYRUSUSER -m user.$CYRUSUSER.Spam

    :0 w

    and I some lines of

    flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
    old-cyrus unix - n n - - pipe
    flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension} ${user}
    cyrus unix - n n - - pipe
    user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m ${extension} ${user}
    procmail unix - n n - - pipe
    flags=Ru user=cyrus argv=/usr/bin/procmail -t -m CYRUSUSER=${user}
    EXTENSION=${extension} /etc/procmailrc

    please help, thanks

  2. #2
    I found the solution:

    the "Forward mail to" field MUST be blanc.

    by default, roundcube put this line within ~/.forward

    \user,"|/usr/bin/vacation user"

    /usr/bin/vacation user

    on "Forward mail to", so that the .forward file get that line

    \user,"|/usr/bin/vacation user" | /usr/bin/vacation user

    of course, cyrus user which's executing the forward command do not have permission to override /usr/bin/vacation file.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts