05-13-2010 04:11 AM
I have 2 servers, I configured IP and hostname in /etc/hosts on both servers.
When I test sendmail with command
$ sendmail -v email@example.com
this is test
firstname.lastname@example.org... Connecting to 22.214.171.124 via esmtp...
220 huli ESMTP Sendmail 8.11.1/8.11.1; Thu, 13 May 2010 21:00:08 +0530 (IST)
>>> EHLO hp.com
250-huli Hello email@example.com [126.96.36.199], pleased to meet you
>>> MAIL From:
>>> RCPT To:
250 2.0.0 Reset state
/home/userone/dead.letter... Saved message in /home/userone/dead.letter
Closing connection to 188.8.131.52
221 2.0.0 huli closing connection
I looked in to sendmail.cf file for smart relay. but dont know where to make changes for machine to machine messaging. Both are in same subnet.
Thanks in advance
05-13-2010 04:30 AM
error here is Relaying denied ... so can you check does your mail relay accept mails from this server ?
Also make sure you have kept fully qualified hostnames in /etc/hosts
05-13-2010 05:16 AM
I didnt unstd how do I check this ??
yes I do have fully qualified hostnames added in hosts which pings from both.
05-13-2010 05:39 AM
That is the key.
Mail relay is controlled by modifying the /etc/mail/access file and then creating a new sendmail.cf file.
See http://hpux.ws/buildmail.hpux.text for clues on how to do this.
Owner of ISN Corporation
05-14-2010 01:24 AM
I created access files and generated new cf file but now sendmail hangs when I execute.
May i know the format for access file. I only need to send mail from one machine to other machine both r in same subnet. Dont know for this what changes I need to make.
10-10-2012 09:43 AM
Relying denied means that you are not allowed to send an email on behalf of another domain.
You can't send an email saying that you are "hp.com". Edit your /etc/mail/sendmail.cf file and set an appropiate domain in it (perhaps someone used the example configuration and the domain was set to hp.com).
Search for Dj in the file and modify the line. If your domain is mycompany.com the line should look like this:
Hope this helps.