Hi Sendmail community,
I have a necessity to supress expansion of CNAME record as domain portion of email address. Example:
domain.com IN CNAME
ghs.some.other.domain.net.
As a result, when I am sending out using
ema...@domain.com as from field, my MTA rewrites it through canonify ruleset (Canonify2 ruleset) to
ema...@ghs.some.other.domain.net.
Need to supress that action.
After readings of sendmail book 4-th edition, no default mechanisms were found.
I have composed interim hack using additional class and addition into Canonify2 ruleset:
# file containing names of hosts,which should not be canonicalized at Canonify2 by $[ $]
F{skipcanonify}/etc/mail/skipcanonify
SCanonofy2=96
.....
# Domains, which are present in skipcanonify will not be canonified on purpose
R$* $| $* < @ $={skipcanonify} > $* $: $2 < @ $3 > $4
.....
cat /etc/mail/skipcanonify
domain.com
Still, it would be nice to know if there is some built in solution?
Would you please advise?