Loading ...
Sorry, an error occurred while loading the content.
 

Re: Postfix+cyrus+procmail problem

Expand Messages
  • Andrzej Adam Filip
    ... Is anything reported by (cyrus-)deliver in the log file? Most likley the log file entries will provide more hints. -- [pl2en: Andrew] Andrzej Adam Filip :
    Message 1 of 3 , Sep 1 3:22 AM
      Vasile C <v.cristescu@...> writes:

      > Hello,
      >
      > I`m trying to set up a mail server using postfix , cyrus-imap and procmail .
      > Everything works fine without procmail ... I have mnade the following
      > configuration :
      >
      > /usr/local/etc/procmailrc :
      >
      > LOGFILE=/var/log/procmail
      > VERBOSE=yes
      > HOME=$USER
      >
      > :0fiw
      > |spamc
      > :0:
      > * ^X-Spam-Level:\*\*\*\*\*\*\*\*\*\*\*\*
      > /dev/null
      >
      > :0w
      > |/usr/local/cyrus/bin/deliver -e $USER -m user/$USER
      >
      > /usr/local/postfix/master.cf:
      >
      > procmail unix - n n - - pipe
      > user=cyrus argv=/usr/local/bin/procmail -m /usr/local/etc/procmailrc
      > USER=${user} EXTENSION=${extension}
      >
      > /usr/local/etc/postfix/main.cf:
      >
      > mailbox_command = /usr/local/bin/procmail -a "$EXTENSION"
      > mailbox_transport = procmail
      >
      > But when I try to send an email I get this error:
      >
      > Executing "/usr/local/cyrus/bin/deliver,-e,-m,user/" procmail: Program
      > failure (65) of "/usr/local/cyrus/bin/deliver" procmail:
      > Assigning "LASTFOLDER=/usr/local/cyrus/bin/deliver -e -m user/" Subject:
      > Undelivered Mail Returned to Sender Folder: **Bounced** 3366 )
      > Sep 1 08:36:42 newbsd postfix/qmgr[1814]: E74D16D792: removed
      >
      > Any ideas ?

      Is anything reported by (cyrus-)deliver in the log file?
      Most likley the log file entries will provide more hints.

      --
      [pl2en: Andrew] Andrzej Adam Filip : anfi@... : anfi@...
    • Kai F├╝rstenberg
      ... BTW: What s the -e option for? I don t have any -e option in my cyrus deliver command. Are you sure you don t want to use the -a option? ... You don t need
      Message 2 of 3 , Sep 1 3:33 AM
        Vasile C wrote:
        > Hello,
        >
        > I`m trying to set up a mail server using postfix , cyrus-imap and procmail .
        > Everything works fine without procmail ... I have mnade the following
        > configuration :
        >
        > /usr/local/etc/procmailrc :
        >
        > LOGFILE=/var/log/procmail
        > VERBOSE=yes
        > HOME=$USER
        >
        > :0fiw
        > |spamc
        > :0:
        > * ^X-Spam-Level:\*\*\*\*\*\*\*\*\*\*\*\*
        > /dev/null
        >
        > :0w
        > |/usr/local/cyrus/bin/deliver -e $USER -m user/$USER
        >
        try this:

        :0w
        |/usr/local/cyrus/bin/deliver -e $USER -m user.$USER

        BTW: What's the -e option for? I don't have any -e option in my cyrus
        deliver command. Are you sure you don't want to use the -a option?

        > /usr/local/postfix/master.cf:
        >
        > procmail unix - n n - - pipe
        > user=cyrus argv=/usr/local/bin/procmail -m /usr/local/etc/procmailrc
        > USER=${user} EXTENSION=${extension}
        >
        > /usr/local/etc/postfix/main.cf:
        >
        > mailbox_command = /usr/local/bin/procmail -a "$EXTENSION"
        >
        You don't need to specify this ^^^^.

        > mailbox_transport = procmail
        >
        > But when I try to send an email I get this error:
        >
        > Executing "/usr/local/cyrus/bin/deliver,-e,-m,user/" procmail: Program
        > failure (65) of "/usr/local/cyrus/bin/deliver" procmail:
        > Assigning "LASTFOLDER=/usr/local/cyrus/bin/deliver -e -m user/" Subject:
        > Undelivered Mail Returned to Sender Folder: **Bounced** 3366 )
        > Sep 1 08:36:42 newbsd postfix/qmgr[1814]: E74D16D792: removed
        >

        Regards
        Kai
      Your message has been successfully submitted and would be delivered to recipients shortly.