[Postfixbuch-users] Procmail filterung und weiterleitung
Beo Banks
beo.banks at googlemail.com
Sa Mär 31 10:14:00 CEST 2012
moin zusammen,
ich hoffe hier kann mir einer helfen.
ich benötige eine weiterleitung/kopie aller nachrichten die an eine
email adresse gehen.
dafür habe ich nun procmail installiert, der das vor zarafa filtern soll.
aber irgendwie greift die regel nicht.
/etc/procmailrc
USER=$1
:0w* ^TO_Hans.Wurst at company.com
!hans.test at company.com | zarafa-dagent $USER
EXITCODE=$?
:0w
| zarafa-dagent $USER
EXITCODE=$?
----------------------------------------------------
master.cf
smtp inet n - n - - smtpd
#submission inet n - n - - smtpd
# -o smtpd_tls_security_level=encrypt
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
# -o milter_macro_daemon_name=ORIGINATING
#smtps inet n - n - - smtpd
# -o smtpd_tls_wrappermode=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
# -o milter_macro_daemon_name=ORIGINATING
#628 inet n - n - - qmqpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - n 300 1 oqmgr
tlsmgr unix - - n 1000? 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - n - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - n - - smtp
-o smtp_fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
retry unix - - n - - error
discard unix - - n - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
scache unix - - n - 1 scache
zarafa unix - n n - - pipe
flags= user=vmail argv=/usr/bin/procmail -a ${user}
----------------------------------------------------------------------------
main.cf
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
inet_interfaces = all
inet_protocols = all
mydestination = $myhostname, localhost.$mydomain, localhost
#NEW#
relayhost = [XXX.XXX.XXX.XXX]
smtpd_banner = $myhostname ESMTP
smtpd_reject_unlisted_recipient = no
myhostname = plantzarafa01
disable_dns_lookups = yes
#
unknown_local_recipient_reject_code = 550
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.6.6/samples
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
transport_maps = ldap:/etc/postfix/ldap-transport.cf,
hash:/etc/postfix/transport
virtual_mailbox_domains = plant.company.com, plantzarafa01.plant.company.com
virtual_mailbox_maps = ldap:/etc/postfix/ldap-users.cf
virtual_alias_maps = ldap:/etc/postfix/ldap-aliases.cf
virtual_transport = lmtp:127.0.0.1:2003
Mehr Informationen über die Mailingliste Postfixbuch-users