Ok, I'm out of ideas...Maybe someone here could help me. Here is my problem.
Somehow my sendmail.cf file turn into 0 byte and I can't start sendmail. So, I recreated sendmail.cf by running
m4 /etc/mail/sendmail.mc > /etc/sendmail.cf
then restart sendmail.
the new sendmail.cf fixed the problem. But, now all the outgoing email show the wrong email address. The sender address show
cojo@mail.domain.com instead of
cojo@domain.com. What am I missing on my setup? Here are my hosts and local-host-names:
hosts:
127.0.0.1 mail.domain.com mail localhost.localdomain localhost
local-host-names:
domain.com
mail.domain.com