I had this problem, I think that I added the host name to
/etc/mail/access , then rebuilt the access.db and restarted sendmail.
Bill
Benoit des Ligneris wrote:
> Hello,
>
> Well, I've got a problem whem sanitizing emails in-transit with anomy.
>
> I did many tests with an alternate name so that I changed the name of
> the server while treating the mail, something like
>
> R$*<@courrier-test.baba.com>$* $#procmail
> $@/etc/anomy.rc $:$1<@courrier.baba.com.>$2
>
> And all works fine !
>
> However, now that I'm satisfied with anomy and I would like to use it in
> production so I changed the MX for courrier so that it point to the
> email gateway and the recipe to :
>
> R$*<@courrier.baba.com>$* $#procmail
> $@/etc/anomy.rc $:$1<@courrier.baba.com.>$2
>
> However, I have an error becaus the DNS says that the mail loops back to
> myself because sendmail use the MX record for the host.
>
> I tried _several_ solution :
> FEATURE(nodns) but it is no more supported
> (sendmail 8.11.6)
>
> The I tried to trick sendmail by using /etc/hosts file :
> define(`HOSTS_FILE',`/etc/hosts')
> where I added the IP and name of courrier.baba.com
>
> I played with mailertable, made another mailer (*anomy*) and so on
> but when I did so the same problem arise : infinite loop or DNS error.
>
> I think I misunderstood something more or less fundamental !
>
> Any help more than welcome.
>
> Thanks by advance,
>
> Ben
>