Mailing List Archive

[Spamassassin Wiki] Update of "IntegratedInPostfixWithAmavis" by MorganJones
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Spamassassin Wiki" for change notification.

The following page has been changed by MorganJones:
http://wiki.apache.org/spamassassin/IntegratedInPostfixWithAmavis

The comment on the change is:
postfix will try to convert 'localhost' to an address (because of the [])

------------------------------------------------------------------------------
Finally, we must configure Postfix to actually use our content filter. This is done with the content_filter parameter which we add to main.cf. We configure Postfix to use our newly defined smtp-amavis service and to connect to a certain host and certain port. Obviously, the port set here must be the port amavisd-new is listening to.

{{{
- content_filter = smtp-amavis:[localhost]:10026
+ content_filter = smtp-amavis:[127.0.0.1]:10026
}}}

In this case, amavisd-new is running on the same host as Postfix, but it can be any host. With brackets surrounding the hostname, MX lookups of the hostname are suppressed. They are also necessary when specifying bare IP addresses instead of a hostname. MX records in DNS can be used to create simple load-balancing and fallback configurations.