On Thu, 29 Nov 2001 Sharun@??? wrote:
> I need a solution to accept all mail from @yahoo.com ONLY from yahoo
> MTA's. Any ideas ?
1. Be brave and become a tester for Exim 4 (see my posting of last Monday).
This will take a little time, and you may find some bugs.
2. Then at the start of the Exim 4 configuration, write
hostlist yahoo_mtas = <list of yahoo mta IP addresses>
3. Then in the ACL you can write
deny message = yahoo senders must come from yahoo hosts
condition = ${if eq ${domain:$sender_address}{yahoo.com}{yes}{no}}
hosts = !+yahoo_mtas
However, this is sure to cause you trouble. Consider these:
1. What about mail from your backup MTAs? Solved by including them in
the list, so you have
hosts = !+yahoo_mtas : !+backup_mtas
2. What about this case:
. A message from x@??? is sent to somebody at some other
installation.
. The somebody has forwarded her mail to your site.
. You bounce the message...
There's no solution to that.
-----------------
This message has the distinction of being the first bit of Exim 4 advice
I've posted.
--
Philip Hazel University of Cambridge Computing Service,
ph10@??? Cambridge, England. Phone: +44 1223 334714.