cburn32
asked on
How do you send mail in Solaris?
I am having problems sending mail in Solaris 10. I am using the mailx command to send the mail. I have designated a smtp relay agent in the sendmail.cf file. The verified the smtp relay agent (windows server) works cause our AIX boxes use the same relay agent. I do not get any errors and the message does not show in the mailq, so I am assuming Solaris sent the message to the relay agent. I check the relay agent and I see no errors in the event viewer. I am sending it to my yahoo account so if anything I should see it in my spam folder if it is marked as spam. Any guidance is mucho appreciated!! thanks
how do you know if windows server sent it successfully?
look in the messages file (unless you're logging elsewhere) to check whether your mail was "sent ok". If so, then its over to the windows admins, otherwise...well...what was the error message?
ASKER
Here is the error message in /var/adm/messages:
Jul 9 13:40:58 DHRSun01 sendmail[13058]: [ID 702911 mail.crit] My unqualified h
ost name (DHRSun01) unknown; sleeping for retry
Jul 9 13:41:58 DHRSun01 sendmail[13058]: [ID 702911 mail.alert] unable to quali
fy my own domain name (DHRSun01) -- using short name
Jul 9 13:40:58 DHRSun01 sendmail[13058]: [ID 702911 mail.crit] My unqualified h
ost name (DHRSun01) unknown; sleeping for retry
Jul 9 13:41:58 DHRSun01 sendmail[13058]: [ID 702911 mail.alert] unable to quali
fy my own domain name (DHRSun01) -- using short name
try to add a reverse lookup entry to dns (PTR record)
ASKER
what file would that be in solaris...sorry I am a solaris newbie...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I can do nslookups now since I edited the resolv.conf. I can also do reverse lookups. I do not see any errors in the messages file stating unqualified hosts names. When I send mail now I can see the message in mailq waiting to be sent. Here is what I see in mailq
root@DHRSun01 # mailq
/var/spool/mqueue (44 requests)
-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipie nt-------- ---
n6ADFncI013709 246 Fri Jul 10 09:15 <root@DHRSun01>
(host map: lookup (DHRSun01): deferred)
<man@DHRSun01>
<cburn6580@yahoo.com>
Any other suggestions?
root@DHRSun01 # mailq
/var/spool/mqueue (44 requests)
-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipie
n6ADFncI013709 246 Fri Jul 10 09:15 <root@DHRSun01>
(host map: lookup (DHRSun01): deferred)
<man@DHRSun01>
<cburn6580@yahoo.com>
Any other suggestions?
ASKER
Thanks for everyones help. It is working now. I had to restart sendmail I can see mail in my yahoo spam folder from the Solaris box.