Thanks I will try it
--- Mohan Sundaram <mohan.tux@xxxxxxxxx> wrote:
Anandh G wrote:
I want to send alert mail from one of our server.The
sendmail version is 8.13. I just gave the relayhost
(DS) entry in the in /etc/mail/sendmail.cf to oneof
our primary mail server. When I send a mail fromcmd
line using mail command likethe
#mail -v -s "test" user@xxxxxxxxxx
The mail is sent with the MAIL FROM header as
<username@.>. It is not adding the hostname after
@. and gives the error as "Invalid hostname".mail
But if I send mail with the recipient address in
cmd, the mail is sent.server
#mail -v -s "test" -r localuser@xxxxxxxxxxxx
user@xxxxxxxxxx
How to make sendmail to add the hostname. The same
type of configuration I am running in another
that is running sendmail 8.11, which is working.Try the masquerade domain or always use domain name
settings in
sendmail.cf. See
http://www.sendmail.org/m4/features.html