Content-filter and unsolicited bulk e-mail
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.comTo: A message from
to:
-> yyy@randombugs.comwas 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:
domain.com
domain2.com
If you have MX subdomains you can add them in the following way
domain.com
.domain.com
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.





















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.
mike
Leave your response!