Sendmail Script don't deliver mails

Hi,

i've got a problem with a sendmail script, which sends HTML mails. Some mail will rejected by the mail server, because the fqdn doesn't exist.

Where can i set the sender-domainname by sendmail?

My mail server say: "Sender address rejected: Domain not found;", which is correct because of the wrong sender domain.

Thanks
Sven

What output you get with :

/usr/sbin/sendmail -d0 -bt </dev/null

?

You can set the sender address by "-f". That is:

eval $MTA -f "$4" "$3"

Hey,

the "-f" parameter made the different.

Thank you very much!!