Mike Mimic wrote:
Hi!

I have installed an Amavis system for Exim
(amavis-exim). I have configured the Amavis
and Exim and now e-mails are scanned and correctly filtered.

But there is a problem. Exim now accpets e-mail
even for non-existent users. It than scans e-mails and
than it refuses them if there is no such localpart.

This is a problem as server does unnecessary work.

And querying Exim about existance of an e-mail address
(I use Mail::CheckUser Perl module for this) now
always returns true as Exim accepts everything.

I have also MySQL users on my system.

I added this to Transports section:

amavis:
driver = pipe
command = "/usr/sbin/amavis <${sender_address}>
${pipe_addresses}"
prefix =
suffix =
check_string =
escape_string =
# for debugging change return_output to true
return_output = false
return_path_add = false
user = amavis
group = nogroup
path = "/bin:/sbin:/usr/bin:/usr/sbin"
current_directory = "/var/lib/amavis"


I added this to beginning of Directors section:

amavis_director:
condition = "${if eq
{$received_protocol}{scanned-ok} {0}{1}}"
driver = smartuser
transport = amavis
no_verify
^^^^^^^^^
might do what you want. Means that amavis_director won't be checked during the verify phase.



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Reply via email to