postfix leitet emails nicht richtig an cyrus weiter (bounced

Postfix, QMail, Sendmail, Dovecot, Cyrus, Courier, Anti-Spam
gi7moǃ
Posts: 35
Joined: 2003-12-02 08:16

postfix leitet emails nicht richtig an cyrus weiter (bounced

Post by gi7moǃ » 2004-08-16 12:55

mein postfix leitet die emails leider nicht richtig an cyrus weiter, der from=<> ist nach procmail leer und somit wird die mail gebounced.....

hier meine configs und logs
main.cf

Code: Select all

alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
defer_transports =
disable_dns_lookups = no
inet_interfaces = all
mail_owner = postfix
mail_spool_directory = /var/mail
mailbox_command = /usr/bin/procmail -t -f -a $EXTENSION
mailbox_tranport = cyrus
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains =
masquerade_exceptions = root
mydestination = $myhostname, localhost.$mydomain
myhostname = h2234.serverkompetenz.net
mydomain =c-lan-ev.net
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/packages/postfix/README_FILES
relayhost =
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /usr/share/doc/packages/postfix/samples
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,check_relay_domains
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = hash:/etc/postfix/access
strict_rfc821_envelopes = no
transport_maps = hash:/etc/postfix/transport
virtual_maps = hash:/etc/postfix/virtual, hash:/etc/postfix/confixx_virtualUsers, hash:/etc/postfix/confixx_localDomain
master.cf

Code: Select all

smtp      inet  n       -       n       -       -       smtpd -o content_filter=procmail:filter
pickup    fifo  n       -       n       60      1       pickup
cleanup   unix  n       -       n       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
rewrite   unix  -       -       n       -       -       trivial-rewrite
bounce    unix  -       -       n       -       0       bounce
defer     unix  -       -       n       -       0       bounce
flush     unix  n       -       n       1000?   0       flush
smtp      unix  -       -       n       -       -       smtp
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
cyrus     unix  -       n       n       -       -       pipe


cyrus   unix    -       n       n       -       -       pipe
        flags= user=cyrus argv=/usr/lib/cyrus/bin/deliver -r ${sender} -m ${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=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
vscan     unix  -       n       n       -       10       pipe
  user=vscan argv=/usr/sbin/amavis ${sender} ${recipient}
procmail  unix  -       n       n       -       -       pipe
  flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient}
/var/log/mail

Code: Select all

Aug 16 12:33:14 h2234 postfix/smtpd[18700]: connect from smtpout.mac.com[17.250.248.45]
Aug 16 12:33:15 h2234 postfix/smtpd[18700]: 29B904DC134: client=smtpout.mac.com[17.250.248.45]
Aug 16 12:33:15 h2234 postfix/cleanup[18701]: 29B904DC134: message-id=<A61A9152-EF6F-11D8-A060-0003930C6CE6@mac.com>
Aug 16 12:33:15 h2234 postfix/qmgr[18696]: 29B904DC134: from=<XXX@mac.com>, size=1241, nrcpt=1 (queue active)
Aug 16 12:33:15 h2234 postfix/smtpd[18700]: disconnect from smtpout.mac.com[17.250.248.45]
Aug 16 12:33:17 h2234 postfix/local[18703]: 29B904DC134: to=<web8p2@h2234.serverkompetenz.net>, relay=local, delay=2, status=sent ("|/usr/bin/procmail -t -f -a $EXTENSION")
Aug 16 12:33:18 h2234 postfix/pickup[18695]: DE3514DC135: uid=787 from=<>
Aug 16 12:33:18 h2234 postfix/cleanup[18701]: DE3514DC135: message-id=<A61A9152-EF6F-11D8-A060-0003930C6CE6@mac.com>
Aug 16 12:33:18 h2234 postfix/qmgr[18696]: DE3514DC135: from=<>, size=1582, nrcpt=1 (queue active)
Aug 16 12:33:18 h2234 postfix/local[18703]: DE3514DC135: to=<web8p2@h2234.serverkompetenz.net>, relay=local, delay=1, status=bounced (mail forwarding loop for web8p2@h2234.serverkompetenz.net)

Roger Wilco
Administrator
Administrator
Posts: 6001
Joined: 2004-05-23 12:53

Re: postfix leitet emails nicht richtig an cyrus weiter (bounced

Post by Roger Wilco » 2004-08-16 18:26

Die Weitergabe der Mails muss bei deiner Konfiguration von procmail aus erfolgen, da mailbox_command zuerst abgearbeitet wird. Somit entsteht eine Schleife (siehe Logfiles) und die Mails werden nicht an cyrus weitergereicht.

gi7moǃ
Posts: 35
Joined: 2003-12-02 08:16

Re: postfix leitet emails nicht richtig an cyrus weiter (bounced

Post by gi7moǃ » 2004-08-16 18:28

gut, das hatte ich auch schon ausprobiert das mit procmail zu machen...
aber da hat sich mein postfix noch mehr auf die nase gelegt.