Tuesday, June 12, 2012

sendmail: installation/configuration on solaris 10

Hi, 
I am running the Solaris 10 built-in sendmail. 
# svcs -l svc:/network/smtp:sendmail 
fmri svc:/network/smtp:sendmail 
name sendmail SMTP mail transfer agent 
enabled true 
state online 
next_state none 
state_time Wed Mar 17 15:53:55 2010 
logfile /var/svc/log/network-smtp:sendmail.log 
restarter svc:/system/svc/restarter:default 
contract_id 97 
dependency require_all/refresh file://localhost/etc/mail/sendmail.cf (online) 
dependency require_all/refresh file://localhost/etc/nsswitch.conf (online) 
dependency optional_all/none svc:/system/filesystem/autofs (disabled) 
dependency require_all/none svc:/system/filesystem/local (online) 
dependency require_all/none svc:/network/service (online) 
dependency require_all/refresh svc:/milestone/name-services (online) 
dependency optional_all/refresh svc:/system/identity:domain (online) 
dependency optional_all/none svc:/system/system-log (online) 

# ps -ef | grep sendmail 
root 960 1 0 15:53:55 ? 0:01 /usr/lib/sendmail -bd -q15m 
smmsp 959 1 0 15:53:55 ? 0:00 /usr/lib/sendmail -Ac -q15m 
root 1095 1030 0 22:28:44 pts/1 0:00 grep sendmail 

But it is not sendmail outgoing and is not receiving mail either. It is only sending to the local user. 
Any ideas what is wrong with my config.
Sendmail is configured to use mailhost for your domain. If this is not 
defined, it won't send mail. This either needs to be defined in DNS, and 
DNS needs to be configured, or it needs to be defined in /etc/hosts. There 
is another option, to edit sendmail.cf (see 
http://docs.sun.com/app/docs/doc/819-1634/mailadmin -43?l=en&a=view&q=sendmail.cf 

or ( 
http://docs.sun.com/app/docs/doc/819-1634/mailrefer -87?l=en&a=view&q=sendmail.cf

for more information. 

http://docs.sun.com is a good primary source to find online docs for 
Solaris.
by default sendmail is configured for local email only. Now you have to configure for sending email out of your domain. 
You will need to add dns record, domain name in sendmail configuration. 
okay thats good as what you had tried to do the try this command 

go to the shell then type disable sendmail then start your configuration up to the end

0 comments:

Post a Comment

 
Design by BABU | Dedicated to grandfather | welcome to BABU-UNIX-FORUM