[Exim] Verify local users + mail delivery

Top Page
Delete this message
Reply to this message
Author: Chris Goh
Date:  
To: 'exim-users@exim.org'
Subject: [Exim] Verify local users + mail delivery
Hi All,

There is one problem that has got me stumped.

My mail server keeps receiving some attempt of spam from the following.

2002-10-16 08:39:20 181aLO-0003QJ-00 <= <> H=omr-d09.mx.aol.com [205.188.156.77] P=esmtp S=9416 id=200210152154.RAC25368@???
2002-10-16 08:39:23 181aLT-0003Qf-00 <= <> U=amavis P=scanned-ok S=9624 id=200210152154.RAC25368@???
2002-10-16 08:39:23 181aLO-0003QJ-00 => zzaaddsss-a-s-d-a <zzaaddsss-a-s-d-a@???> D=amavis_director T=amavis
2002-10-16 08:39:23 181aLO-0003QJ-00 Completed
2002-10-16 08:39:23 181aLT-0003Qf-00 ** zzaaddsss-a-s-d-a@mydomain: unknown local-part "zzaaddsss-a-s-d-a" in domain "mydomain.com.au"

I have the following options turned on in exim.conf

headers_check_syntax
headers_sender_verify
sender_verify
receiver_verify
sender_verify_hosts_callback = *.aol.com
sender_verify_callback_domains = *.aol.com
receiver_verify_senders = *

but it still comes through.

After reading the manual, it seems the most appropriate option to use is the receiver_verify option. But from tests, that only seems to verify if the domain portion is correct. I even gone as far as to use the verify callback options. Still no go. The attempt for spam to those non-existent emails still come through.

Is there a configuration option I have missed to be able to verify local users at SMTP ? Otherwise the result is about 200-500 frozen messages generated per day.




On a totaly different note. My mail server services a few domains. I use the following director to deliver mail.

virtual:
driver = aliasfile
domains = partial2-lsearch;/etc/exim/clients/domains
# no_more
file_transport = address_file
pipe_transport = address_pipe
file = /etc/exim/clients/$domain_data
search_type = lsearch*

in the /etc/exim/clients/domains file contains lines of data of this format

*.abc.com: abc.com
*.def.com: def.com

and in the file /etc/exim/clients/abc.com would contain lines of data of this format

myalias chris
hisalias john
superman harry

So, exim will deliver superman@??? by first checking if that domain is in /etc/exim/clients/domains which then directs exim to look into /etc/exim/clients/abc.com . In abc.com the data tells superman@??? to be delivered to harry's mailbox. Likewise, superman@??? will get delivered in the same way. Although this time it will not work because def.com does not contain (lets say) an entry for the alias superman. Good, exactly how it should work.

The problem is that harry will also receive harry@??? simply because harry (even though its not an alias of any kind or even in any of the domain files) is a local user. (so this will also happen for emails addressed to harry@???) How can stop this and restrict its delivery to the example above ?

Thanks for any suggestions.

Regards

Chris G