OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Help with Postfix-Procmail-Cyrus

pguylugmontevideo.com.uy
Date: Tue Aug 03 2004 - 10:43:55 CDT


Sorry for post again, but is very important for me, and I think it's not ver
hard to fix.

I'm using Cyrus, Postfix and Procmail, have some local users and the most
belongs to a sasldb base; everything work Ok but when I send a mail to some
alias I get the message back whith the error "Data format error".
I'm posting the files main.cf and master.cf, and I don't know where I can have a
more detailed log, the only I have is /var/log/syslog but the only thing its
said is:

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

Aug 3 12:39:17 correo-debian cyrus/lmtpd[8909]: accepted connection
Aug 3 12:39:17 correo-debian cyrus/lmtpd[8909]: lmtp connection preauth'd as
postman
Aug 3 12:39:17 correo-debian postfix/pipe[8903]: 0AF9517B4D6:
to=<computosdomain.net>, relay=procmail, delay=8, status=bounced (data format
error. Command output: procmail: Couldn't read "/home/computos/.procmailrc"
procmail: Program failure (65) of "/usr/sbin/cyrdeliver" )
Aug 3 12:39:17 correo-debian postfix/cleanup[8892]: 7A7B417B4A3:
message-id=<20040803153917.7A7B417B4A3mail.domain.net>
Aug 3 12:39:17 correo-debian postfix/qmgr[8893]: 7A7B417B4A3: from=<>,
size=3551, nrcpt=1 (queue active)
Aug 3 12:39:17 correo-debian postfix/qmgr[8893]: 0AF9517B4D6: removed

###########################################
(computos is an alias from /etc/postfix/aliases)

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

biff = no

append_dot_mydomain = no

local_recipient_maps =

mail_name = postfix
mail_owner = postfix

always_bcc = enviadosdomain.net
myhostname = mail.domain.net

alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases

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_command = /usr/bin/procmail -t -a "$EXTENSION"
#mailbox_command = procmail
mailbox_size_limit = 0
recipient_delimiter = +
mailbox_transport = cyrus

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 -t -m USER=${user}
EXTENSION=${extension} /etc/procmailrc
###########################################

------------------------------------------------------------
0909 2468 El acceso telefonico a Internet del Portal
Hay 3 maneras de cambiarte
http://www.montevideo.com.uy/0909