[Ilugc] Sendmail Problem

  • From: mohan.tux@xxxxxxxxx (Mohan Sundaram)
  • Date: Mon Oct 23 10:31:57 2006

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

Mohan

Other related posts: