|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
appending footer
From: Anne Ramey (anner
blast.com)
Date: Wed Oct 12 2005 - 16:16:28 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I'd like to use postfix to append a footer to certain mails. I can
choose the mails with some simple header checks, but after that, I'm not
sure how to append the footer. I'm guessing I can send the mails to a
filter, which actually uses altermime to add the footer. The
header-checks section of the FILTER_README is rather short and I think
I'm missing a couple of things:
Can my filter program be a simple altermime call and nothing else? I'm
guessing it actually has to be embedded in a script like in
http://www.postfix.org/FILTER_README.html#dynamic_filter
And
How does mail filtered like this:
main.cf:
header_checks = pcre:/path/to/file
/path/to/file:
/^Reply-To: blah blah/ FILTER dfilt:
get re-injected into postfix?
Also, is there a better/easier way to append a message onto outgoing
messages?
Postfix 2.2.3 on redhat ES3
postconf -n
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
header_checks = regexp:/etc/postfix/header_checks
html_directory = /etc/postfix/htmls
inet_interfaces = all
local_recipient_maps = $alias_maps unix:passwd.byname
mail_owner = postfix
mailbox_command = /usr/bin/procmail -a "$EXTENSION" -d "$USER"
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
message_size_limit = 13312000
mydestination = $myhostname, localhost.$mydomain, $mydomain, ncees.emji.net
mydomain = ncees.org
myhostname = mail.ncees.org
mynetworks = $config_directory/relay-domains
mynetworks_style = host
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /etc/postfix/README_FILES
sample_directory = /etc/postfix/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_recipient_restrictions = permit_mynetworks,
permit_sasl_authenticated, reject
smtpd_sasl_auth_enable = yes
transport_maps = mysql:/etc/postfix/transport.cf
unknown_local_recipient_reject_code = 450
virtual_alias_maps = mysql:/etc/postfix/virtual.cf
Anne
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]