Ticket #271 (closed defect: fixed)
[PATCH] Add support for Mac OSX to amavisd-maia
| Reported by: | rjl | Owned by: | rjl |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.0.1 |
| Component: | amavisd-maia | Version: | 1.0.0 |
| Severity: | normal | Keywords: | mac osx |
| Cc: |
Description
The amavisd-maia application needs a few of the fixes that were introduced in amavisd-new 2.2.1, plus a couple of additional tweaks as suggested by Dale Walsh. Dale has supplied a refernce patch for this purpose (against amavisd-new 2.2.1), which is attached to this ticket.
Note that this patch also includes some minor enhancements in terms of code to add more mail headers to processed e-mail, and taking advantage of these requires some additions to the amavisd.conf.dist file as well. These header enhancements are optional, and should really be handled in a separate enhancement ticket, but anyone making use of the attached patch needs to know they're in there.
Changes for the amavisd.conf.dist file:
# Add MTA-Interface header field to mail?
# $X_HEADER_TAG = 'X-Virus-Scanned'; # (old default: 'X-Virus-Scanned')
# $X_HEADER_TAG = 'MTA-Interface'; # (new default: 'MTA-Interface')
# Set to empty to add no header field # (dflt "$myproduct_name- $myversion_id ($myversion_date) at $mydomain")
# $X_HEADER_LINE = "$myproduct_name at $mydomain";
# $X_HEADER_LINE = "by $myproduct_name using ClamAV at $mydomain";
# $X_HEADER_LINE = "$myproduct_name $myversion_id ($myversion_date) at $mydomain";
# Add X-Virus-Scanned header field to mail?
# $X_VIRUS_TAG = 'X-Virus-Scanned'; # (default: 'X-Virus-Scanned')
# Set to empty to add no header field # (dflt "using ClamAV at $mydomain")
$X_VIRUS_LINE = "using Clamav 0.88 (2006-01-09) at $mydomain";
# Add X-Spam-Scanned header field to mail?
# $X_SPAM_TAG = 'X-Spam-Scanned'; # (default: 'X-Spam-Scanned')
# Set to empty to add no header field # (dflt "using SpamAssassin at $mydomain")
eval {require Mail::SpamAssassin}; $using_sa_version = Mail::SpamAssassin::Version();
$X_SPAM_LINE = "using SpamAssassin $using_sa_version ($Mail::SpamAssassin::SUB_VERSION) at $myhostname";
#$remove_existing_mta_headers = 0; # leave existing X-Virus-Scanned alone
$remove_existing_mta_headers= 1; # remove existing headers
# (defaults to false)
#$remove_existing_virus_headers = 0; # leave existing X-Virus-Scanned alone
#$remove_existing_virus_headers= 1; # remove existing headers
# (defaults to true)
#$remove_existing_spam_headers = 0; # leave existing X-Spam* headers alone
#$remove_existing_spam_headers = 1; # remove existing spam headers if
# spam scanning is enabled (default)

