Seems like [`content_filter`](http://www.postfix.org/postconf.5.html#content_filter) is an attribute, not a list. If so it should be compared using string comparison

```ruby
unless postfix[:content_filter] == 'amavis:[127.0.0.1]:10024'
    # etc
end