[Ilugc] Sendmail Problem

  • From: anandhg02@xxxxxxxxx (Anandh G)
  • Date: Mon Oct 23 12:35:39 2006

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 relay
host
(DS) entry in the in /etc/mail/sendmail.cf to one
of
our primary mail server. When I send a mail from
cmd
line using mail command like 
#mail -v -s "test" user@xxxxxxxxxx 
The mail is sent with the MAIL FROM header as
<username@.>. It is not adding the hostname after
the
@. and gives the error as "Invalid hostname".
But if I send mail with the recipient address in
mail
cmd, the mail is sent.
#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
server
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

Regards,
Anandh G

Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download 
Now! http://messenger.yahoo.com/download.php

Other related posts: