amavisd-new, read_hash and problem with a dot in localpart of emailaddress

Kuehler Guido guido.kuehler at
Tue Jan 1 17:52:30 CET 2013

Amavisd-New Version: 1:2.6.5-0ubuntu3.2

We must blacklist and whitelist sender-email-adresses and not complete domains, additional we must use different blacklists
and whitelists based on our different recipient-domains.

So we have read the Documentation and have our amavis.conf extended with the $per_recip_blacklist_lookup_tables section.

$per_recip_blacklist_sender_lookup_tables = {
'' => read_hash('/etc/amavis/conf.d/blacklist_itp')

All is ok when we in the external file define email-adresses how name at<mailto:name at> or
but when we define an email-address with firstname.lastname at<mailto:firstname.lastname at> (in the Example
guido.kuehler at<mailto:guido.kuehler at>) we receive the followed error.

Stopping amavisd: amavisd-new.
Starting amavisd: Array found where operator expected at /etc/amavis/conf.d/blacklist_itp line 2, at end of line
Error in config file "/etc/amavis/conf.d/blacklist_itp": syntax error at /etc/amavis/conf.d/blacklist_itp line 2, near "kuehler at steinel"
So we change our entry in the external File to enclose the complete Email-Address with a  ' sign or a " sign.


'guido.kuehler at'<mailto:'guido.kuehler at'> => 1,


We can now start amavis without any error and see a successfull match from Amavis for the recipient-domain but amavis have
now no match for the defined sender-emailaddress when the sender-address is also 100% identical in an ckecked email.

The Problem exist only when a dot exist in the localpart of the emailaddress and when entryies with read_hash reads from an
external file.

I hope any one can give us an tip to resolve this Problem, we have looked very very long around in different
How-Tos, Documentations and have tested amyn variants but with no successfull solution.

Best Regards
Guido Kuehler

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the amavis-users mailing list