Home » Debian, Featured, Linux, Newbie, Shell

Content-filter and unsolicited bulk e-mail

16 March 2010 2 Comments

After an Amavis upgraded my e-mail system started to have a strange behavior. A lot of emails sent internally from one user to another stopped with the following message:

——– Original Message ——–
Subject: Considered UNSOLICITED BULK EMAIL, apparently from youis considered local.
Date: Tue, 13 Mar 2010 00:13:39 +0200 (EET)
From: Content-filter at xxx13.randombugs.com To:

A message from to:
-> yyy@randombugs.com

was considered unsolicited bulk e-mail (UBE).

Our internal reference code for your message is 00311-13/npX-RCahiLdc

The message carried your return address, so it was either a genuine mail
from you, or a sender address was faked and your e-mail address abused
by third party, in which case we apologize for undesired notification.

[… bla bla …]

Delivery of the email was stopped!

Because the error e-mail is coming from my Content-Filter I started to look on Amavis configuration, because something has been changed in that part.
After some digging in Amavis configuration I just added

@local_domains_maps = ( read_hash("/etc/amavis/local_domains") );

in /etc/amavis/conf.d/50-user.

I also create local_domains file and add my domains 1 per line, like in the following example:


If you have MX subdomains you can add them in the following way


Now just restart the Amavis.

All virtual domains, what you have on your machine, should be declared as local domains, because Amavis consider this domains recipients as external and not local.


  • Mike said:

    Thanks for this one!! Running an old Ubuntu 6.06 mail server and it had recently done an Amavis upgrade. This solved my “Unsolicited Mail” problem from root on the mailserver itself.


  • Muzi said:

    i see this solution is for Open source, how do i fix the same problem on microsoft if i may ask

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.