Has anyone created a sendmail.cf using the AIX supplied m4 includes.
I've had a bit of a hack, but haven't managed to created anything like
the standard /etc/mail/sendmail.cf from them.

I though I just needed a list of the m4 macros from the header

awk '$3 ~ "\.m4" {gsub(",v","");print $3}$2 ~"\.m4" {gsub("\@\\(\#\
\)","");print $2}' /etc/mail/sendmail.cf

and some trolling around shows these .m4 files

-rw-r--r-- 1 root system 1309 09 Jul 2004 /usr/samples/
tcpip/sendmail/feature/genericstable.m4
-rw-r--r-- 1 root system 1298 09 Jul 2004 /usr/samples/
tcpip/sendmail/feature/mailertable.m4
-rw-r--r-- 1 root system 1306 09 Jul 2004 /usr/samples/
tcpip/sendmail/feature/virtusertable.m4
-rw-r--r-- 1 root system 1294 09 Jul 2004 /usr/samples/
tcpip/sendmail/feature/domaintable.m4
-rw-r--r-- 1 root system 1145 09 Jul 2004 /usr/samples/
tcpip/sendmail/feature/allmasquerade.m4
-rw-r--r-- 1 root system 1005 09 Jul 2004 /usr/samples/
tcpip/sendmail/feature/promiscuous_relay.m4
-rw-r--r-- 1 root system 1495 09 Jul 2004 /usr/samples/
tcpip/sendmail/feature/accept_unresolvable_domains.m4
-rw-r--r-- 1 root system 1040 09 Jul 2004 /usr/samples/
tcpip/sendmail/feature/accept_unqualified_senders.m4
-rw-r--r-- 1 root system 1581 09 Jul 2004 /usr/samples/
tcpip/sendmail/domain/generic.m4
-rw-r--r-- 1 root system 1418 09 Jul 2004 /usr/samples/
tcpip/sendmail/feature/redirect.m4
-rw-r--r-- 1 root system 1346 09 Jul 2004 /usr/samples/
tcpip/sendmail/feature/use_cw_file.m4
-rw-r--r-- 1 root system 78672 09 Jul 2004 /usr/samples/
tcpip/sendmail/m4/proto.m4
-rw-r--r-- 1 root system 3776 09 Jul 2004 /usr/samples/
tcpip/sendmail/mailer/local.m4
-rw-r--r-- 1 root system 5697 09 Jul 2004 /usr/samples/
tcpip/sendmail/mailer/smtp.m4
-rw-r--r-- 1 root system 5985 09 Jul 2004 /usr/samples/
tcpip/sendmail/mailer/uucp.m4
-rw-r--r-- 1 root system 2543 09 Jul 2004 /usr/samples/
tcpip/sendmail/mailer/mail11.m4

I also found these instructions
cd /usr/samples/tcpip/sendmail/cf
m4 ../m4/cf.m4 aixsample.mc > $HOME/sendmail.cf

but a diff between the 2 shows they're not very similar?

The whole idea is to allow NIM to auto-create the desired sendmail.cf
with a different DS and Dw, so the next version of sendmail doesn't
require an edit of the file.