You are right Lora,
I've read again this thread and the trouble question is that the rcpt to is going to the same domain as the from.
I.E. anti relay works when you do somthing like that :
mail from:dddd@btc.com
rcpt to :dddd@otherdomain.com
For your, the rcpt is OK, then no anti relay mechanism is working.
I.E.
You receive an email from otherdomain to your domain (standard behavior)
mail from ddd@otherdomain.com
rcpt to:ddd@btc.com
In this case it works, by default sendmail doesn't make any check on the ip address of the sender. By the way it's possible to place any sender domain.
Some smtp products add the control with a reverse lookup of the ip address of the sender in order to test if the from sender domain is the sam e as the IP !!!
But by this way a lot of mails will be stopped because many domains doesn't registered the reverse lookup, or the sender (legal one) may use a backup line from aonther provider with of course another ip not linked with the domain !!!
I don't know how to activate it in sendmail :
See may be
FEATURE(relay_based_on_MX)
And also U.SHIVA proposal could be used...
Sorry to not give a better answer and all the time lost because I didn't read properly your first post !
hth
Benoit
Une application mal pansée aboutit à une usine à gaze (GHG)