Operating System - HP-UX
1748047 Members
4551 Online
108757 Solutions
New Discussion

Re: Sendmail configuration - not able to send email

 
masthan_1
Advisor

Sendmail configuration - not able to send email

Dear friends,

 

I have configured sendmail in my hpux 11.31 server but i am not able to send any email. need your expert help on this.

I believe i correctly configured this. Below is the error i am receiving while sending email.

 

h19sys1 #swlist -l product | grep -i sendmail
Sendmail C.8.13.3.5 Mail Transfer Protocol daemons and utilities

 

there is only two entries in sendmail.cw file as below

localhost

h19sys1 ----> this is server's host name.

 

I have modified the DS value. and put for Dj as "mailhost" -- this is the same alias i have put in /etc/hosts file against the IP of my relay server.

 

I am sending mail like below format:

h19sys1 #mailx -s "Test Message" kmydheen.c@stc.com.sa < /dev/null
Null message body; hope that's ok

 

the error "unable to qualify my own domain name should be a completed one?....

no DNS in my setup of HPUX.

DW<myrelayserver>

#Dj$w.Foo.COM
Dj$w.mailhost

 

Jun 20 22:11:32 h19sys1 sendmail[1539]: unable to qualify my own domain name (h19sys1) -- using short name
Jun 20 22:11:32 h19sys1 sendmail[1539]: be sure to set domain name in Dj macro in sendmail.cf
Jun 20 22:11:32 h19sys1 sendmail[1539]: alias database /etc/mail/aliases rebuilt by kathar
Jun 20 22:11:32 h19sys1 sendmail[1539]: /etc/mail/aliases: 7 aliases, longest 9 bytes, 88 bytes total
Jun 20 22:11:32 h19sys1 /sbin/init.d/sendmail[1521]: /etc/mail/aliases: 7 aliases, longest 9 bytes, 88 bytes total
Jun 20 22:11:32 h19sys1 sm-mta[1541]: unable to qualify my own domain name (h19sys1) -- using short name
Jun 20 22:11:32 h19sys1 sm-mta[1541]: be sure to set domain name in Dj macro in sendmail.cf
Jun 20 22:11:32 h19sys1 sm-mta[1542]: starting daemon (@(#)Sendmail version 8.13.3 - Revision 1.004:: HP-UX11.31 - 03rd February,2010): SMTP+queueing@00:30:00
Jun 20 22:11:32 h19sys1 /sbin/init.d/sendmail[1521]: /etc/mail/submit.cf is missing
Jun 20 22:11:32 h19sys1 /sbin/init.d/sendmail[1521]: Sendmail client not started
Jun 20 22:11:32 h19sys1 sm-mta[1543]: q5KIgQqK001051: to=ainms@xyz.com, delay=00:29:06, mailer=relay, pri=210134, relay=172.20.69.194, dsn=4.4.3, stat=Transient parse error -- message queued for future delivery
Jun 20 22:11:32 h19sys1 sm-mta[1543]: q5KIhFt8001056: to=kmydheen.c@stc.com.sa, delay=00:28:17, mailer=relay, pri=210142, relay=172.20.69.194, dsn=4.4.3, stat=Transient parse error -- message queued for future delivery
Jun 20 22:11:32 h19sys1 sm-mta[1543]: q5KIpJAA001171: to=kmydheen.c@stc.com.sa, delay=00:20:13, mailer=relay, pri=210142, relay=172.20.69.194, dsn=4.4.3, stat=Transient parse error -- message queued for future delivery
Jun 20 22:30:18 h19sys1 sendmail[1979]: unable to qualify my own domain name (h19sys1) -- using short name
Jun 20 22:30:18 h19sys1 sendmail[1979]: be sure to set domain name in Dj macro in sendmail.cf
Jun 20 22:30:18 h19sys1 sendmail[1979]: q5KJUIx2001979: to=kmydheen.c@stc.com.sa, delay=00:00:00, mailer=relay, pri=0, relay=172.20.69.194, dsn=4.4.3, stat=Transient parse error -- message queued for future delivery
Jun 20 22:30:18 h19sys1 sendmail[1979]: q5KJUIx2001979: from=kathar, size=142, class="0", nrcpts=1, msgid=<201206201930.q5KJUIx2001979@h19sys1.mailhost>, relay=root@localhost
Jun 20 22:30:18 h19sys1 sendmail[1979]: q5KJUIx2001979: to=kmydheen.c@stc.com.sa, delay=00:00:00, mailer=relay, pri=30142, dsn=4.4.3, stat=queued
h19sys1 #

 

5 REPLIES 5
Dennis Handly
Acclaimed Contributor

Re: Sendmail configuration - not able to send email

>Dj$w.mailhost

 

The comments in sendmail.cf indicate this must look like a FQDN.  So ".mailhost" isn't valid.

Possibly ".stc.com.sa"?

masthan_1
Advisor

Re: Sendmail configuration - not able to send email

Hi,

 

thanks for your response.

I have added the entry in /etc/hosts file with ip-address and alias name stc.com.sa. when checked the mail-q, it was having some unsent emails, i have cleared them. Now sendmail is working fine. Thanks for your inputs.

/etc/rc.config.d/mailservers -- for sendmail server entry should be "1"

/etc/mail/sendmail.cw -- that host entry & entry as "localhost" must be present
/etc/mail/sendmail.cf -- DS<ipaddress of mailserver>
/etc/hosts -- in this file, ip address of domain-server (as we have not configured resolv.conf), mailserver ip address and hostname

for example:

172.20.69.194 mailhost mailhost

10.32.4.3 stc.com.sa

 

/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

 

Regards,

Masthan

raghuveerkalyan
Visitor

Re: Sendmail configuration - not able to send email

 

 

I am unable to sedn mail using ,mailx afetr restarting the send mail

 

kindly help me

Dennis Handly
Acclaimed Contributor

Re: sendmail configuration - not able to send email

>I am unable to send mail using mailx after restarting sendmail

 

What do the sendmail logs show?  /var/adm/syslog/mail.log

Bill Hassell
Honored Contributor

Re: Sendmail configuration - not able to send email

Use sendmail -v to test, not mailx, like this:

 

sendmail -v kmydheen.c@stc.com.sa < /etc/profile

 

This will show why the transfer is failing.

 

NOTE: Most large companies block sending email out to the open internet, and if you did not use DM and C{M} to masquerade your internal machine's real name, the destination will treat the incoming message as junk and drop the message. If you are blocked, you'll need to get your company to setup a relay to the outside.



Bill Hassell, sysadmin