After a recent server failure, I reinstalled the OS (NetBSD) which
came with a slightly newer version of Postfix than I had been
running.  Now some of my procmail delivery rules no longer work
because they relied on the "Delivered-To" field in the header to know
which subaddress had been delivered to.  But the new version doesn't
seem to have the final delivery address in that field in the header,
but rather has the original address.

I.e. I have a forwarding such as:
    root: MAP=Admin-aliases
in the alises file.  Before the upgrade, the value in "Delivered-To"
would have been "MAP=Admin-aliases", but now it shows "root".  I could
probably work around it as is, but hopefully there's a better
option...  I thought about two, and after looking at documentation for
eaither, without success, but could easily have missed it (my brain is
starting to hurt from tracking down all the little fiddly things that
need to be tweaked on the new server).


First, is there a way to get back the old semantics?  Second is there
another way to get the final delivery address ("MAP=Admin-aliases" in
the example) to procmail so that it can be used for a rule?

Many thanks for any suggestions on what to do or even just where to look.

        -MAP

postconf -n
alias_database = hash:/etc/postfix/aliases, hash:/etc/postfix/anti-nuisance
alias_maps = hash:/etc/postfix/aliases, hash:/etc/postfix/anti-nuisance
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
html_directory = /usr/share/doc/html/postfix
inet_interfaces = $myhostname, localhost
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
myhostname = Mail.MAP-NE.com
mynetworks = 69.25.196.192/28, 69.25.196.0/26, 198.49.108.0/24, 127.0.0.0/8
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/examples/postfix
recipient_delimiter = =
sample_directory = /usr/share/examples/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtpd_banner = $myhostname ESMTP $mail_name bugs/complaints to [EMAIL PROTECTED]
unknown_local_recipient_reject_code = 550

Reply via email to