Scan locally generated email

Simon Brereton simon.buongiorno at gmail.com
Mon Nov 12 22:38:11 CET 2012


On 12 November 2012 10:20, Rob Sterenborg (lists) <lists at sterenborg.info> wrote:
> Hello,
>
> I'm trying to get local email scanned. Found a lot of hints to exclude local
> email from being scanned, but for some reason I can't get the opposite to
> work. (Yes, I actually want to do that.)
>
> I have:
>
> $mydomain = 'mytestdomain.tld';
> $myhostname = 'mx1.mytestdomain.tld';
>
> @local_domains_maps = (0);      # Also tried undef
> @mynetworks = qw(127.0.0.2);    # Doesn't accept (), '', undef or anything
> like that, so I just put in an unused IP address.
>
> @bypass_spam_checks_maps = (0); # Also tried undef
>
> @lookup_sql_dsn = (
> ['DBI:mysql:database={dbname};host={hostname};port={port}', '{dbuser}',
> '{dbpass}'] );
>
> $sa_tag_level_deflt = -999.0;
>
> In the database: spam_tag_level = -999
>
> In the received email I can see that the email went through Amavis, but
> there's no Amavis/SA header line telling me what score it got.
>
> Can anyone please tell me what I'm overlooking?

This is documented somewhere.  First thing you have to do is make sure
that any submission port also uses Amavis.

Then, I think you need to add this
@local_domains_acl = ( "." );

This says there are no local domains and therefore to score everything.

Simon


More information about the amavis-users mailing list