procmail
[Top] [All Lists]

Help with Postfix-Procmail-Cyrus

2004-08-05 13:05:10
Sorry for post again, but is very important for me, and I think it's


I have a problem, I think it's easy to fix, but since many weeks I'm dealing with it and nothing.


My configuration is Postfix-Procmail-SpamAssassin-Cyrus21, running on a Debian Woody. Have some local users and the rest belongs to Cyrus (sasldb). Everything is working fine but when I send a message to an alias (/etc/aliases) the mail return with the message "Data format error". I'm posting my configuration files and a log, I hope someone can help me with this......



Thanks





#######################################

main.cf ##################################



biff = no



append_dot_mydomain = no



local_recipient_maps =



mail_name = postfix

mail_owner = postfix



always_bcc = enviados(_at_)domain(_dot_)net

myhostname = mail.domain.net



alias_maps = hash:/etc/aliases

alias_database = hash:/etc/aliases

virtual_alias_maps = hash:/etc/postfix/virtual

virtual_maps = hash:/etc/postfix/virtual



mydomain = domain.net

mydestination = $myhostname, localhost.$mydomain, $mydomain, localhost

myorigin = $mydomain

relayhost = [mail.domain.org.uy]

mynetworks = 192.168.9.0/24, 127.0.0.0/8



mailbox_size_limit = 0

recipient_delimiter = +

mailbox_transport = procmail



smtpd_tls_auth_only = no

smtpd_sasl_local_domain=correo-debian



smtpd_sender_restrictions = hash:/etc/postfix/access, hash:/etc/postfix/policy_by_senders

header_checks = regexp:/etc/postfix/regexp.header

body_checks = regexp:/etc/postfix/regexp.body



smtpd_restriction_classes = may_use_external_mail, only_internal_mail

may_use_external_mail = permit

only_internal_mail = check_recipient_access hash:/etc/postfix/allowed_recipients, reject



#######################################



#######################################

master.cf  ################################



# ==========================================================================

# service type  private unpriv  chroot  wakeup  maxproc command + args

#               (yes)   (yes)   (yes)   (never) (100)

# ==========================================================================

smtp      inet  n       -       n       -       -       smtpd

  -o content_filter=spamassassin:

pickup    fifo  n       -       -       60      1       pickup

cleanup   unix  n       -       -       -       0       cleanup

qmgr      fifo  n       -       -       300     1       qmgr

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  -       -       n       -       -       smtp

  -o content_filter=spamassassin:

relay     unix  -       -       -       -       -       smtp

showq     unix  n       -       -       -       -       showq

error     unix  -       -       -       -       -       error

local     unix  -       n       n       -       -       local

virtual   unix  -       n       n       -       -       virtual

lmtp      unix  -       -       n       -       -       lmtp

anvil     unix  -       -       n       -       1       anvil



#######



maildrop  unix  -       n       n       -       -       pipe

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

cyrus     unix  -       n       n       -       -       pipe

flags=R user=cyrus argv=/usr/sbin/cyrdeliver -e -m ${extension} ${user}

uucp      unix  -       n       n       -       -       pipe

flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)

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 -d -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}

spamassassin    unix    -    n    n    -    -    pipe

user=filter argv=/usr/local/bin/sa-filter.sh -f ${sender} -- ${recipient}

procmail  unix  -       n       n      -       -       pipe

flags=R user=cyrus argv=/usr/bin/procmail -p /etc/procmailrc USER=${user} EXTENSION=${extension}



#######################################

/etc/procmailrc   ###########################



### Variables

PATH=/usr/cyrus/bin:/bin:/usr/bin:/usr/local/bin

SHELL=/bin/bash

DELIVERMAIL="/usr/sbin/cyrdeliver"

VERBOSE=yes



### Incluye los filtros de cada usuario

INCLUDERC=/home/$USER/.procmailrc





:0hfw

| /usr/bin/formail -I "From "



EXITCODE=









:0 w:cyrus.$USER.lock

| $DELIVERMAIL -a $USER -e -q -m $EXTENSION $USER

#| $IMAP



:0 w:cyrus.$USER.lock

| $DELIVERMAIL -a $USER -e -q $USER



:0 e

{

EXITCODE=$?

HOST

}



#######################################



#######################################

log   ####################################

(prueba(_at_)domain(_dot_)net is an alias from aliases)



<prueba(_at_)domain(_dot_)net>: data format error. Command output: procmail: 
[3981] Wed Aug

  4 14:10:07 2004 procmail: Assigning "INCLUDERC=/home/prueba/.procmailrc"

  procmail: Executing "/usr/bin/formail,-I,From " procmail: Assigning

  "EXITCODE=" procmail: Locking "cyrus.prueba.lock" procmail: Executing

  "/usr/sbin/cyrdeliver,-a,prueba,-e,-q,-m,prueba" procmail: [3981] Wed Aug

  4 14:10:08 2004 procmail: Program failure (65) of "/usr/sbin/cyrdeliver"

  procmail: Assigning "LASTFOLDER=/usr/sbin/cyrdeliver -a prueba -e -q -m

  prueba" procmail: Unlocking "cyrus.prueba.lock" procmail: Locking

  "cyrus.prueba.lock" procmail: Executing

  "/usr/sbin/cyrdeliver,-a,prueba,-e,-q,prueba" procmail: Program failure

  (65) of "/usr/sbin/cyrdeliver" procmail: Assigning

  "LASTFOLDER=/usr/sbin/cyrdeliver -a prueba -e -q prueba" procmail:

  Unlocking "cyrus.prueba.lock" procmail: Assigning "EXITCODE=65" procmail:

  Assigning "HOST" procmail: HOST mismatched "correo-debian"  Subject: Sale

  10   Folder: /usr/sbin/cyrdeliver -a prueba -e -q prueba       854



#######################################



____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>