echo '$=w' | /usr/lib/sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> cluster1
[
192.168.1.125]
localhost.localdomain
localhost
example1.comthe
example1.com is there.
The logs (/var/log/maillog) shows
Jul 18 15:38:00 cluster1 sendmail[6459]: k6IA80Op006455: to=<
ank@example1.com>, ctladdr=<
ank@example1.com> (512/513), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30776, dsn=2.0.0, stat=Sent
But the user ank is not able to receive the mails.
/etc/mail/local-host-names contains these entries
localhost
localhost.localdomain
example1.com