1834379 Members
2195 Online
110066 Solutions
New Discussion

Re: Sendmail installing

 
Jennifer Lam
Advisor

Sendmail installing

Hello all:
My question regarding on sendmail from mail client to mail server.
After configuring NFS server and client, I install send mail into a mail server and mail client. I have the problem:
- Mail server sends messages/mail to mail client, but the mail client can not send mail to either mail server or client. when I try the command 'sendmail abc' (abc is a user name )Mail client send the error massage:
"no local mailer defined: no such file or directory
can't chdir(): no such file or directory".
Does anyone have any idea to the problem.
Thank you.
regards
Jennifer Lam,



6 REPLIES 6
Roger Baptiste
Honored Contributor

Re: Sendmail installing

Jennifer,

Check the following:



At the Mailserver end, make
sure the sendmail daemon is running:
ps -ef |grep sendmail
if not running:
check /etc/rc.config.d/mailservs and confirm the
SENDMAIL_SERVER parameter
is set to 1.
start sendmail daemon by:
/sbin/init.d/sendmail start

On the mail client (from which you want to send mail)
- edit /etc/mail/sendmail.cf file and change
the DS entry in the file
to DS.domain

eg: DSjupiter.hp.com


Then, test the mail connection
by sending a test mail from
the client system:
sendmail -vt mailid
test
. <-(just the dot in the line)

This will show you the progress of the mail connection and status.

ANy problems, pls post the output of the sendmail -vt test.

HTH
raj
Take it easy.
Uday_S_Ankolekar
Honored Contributor

Re: Sendmail installing

Hi,

If the sendmail daemon is running then, (ps -ef grep sendmail)

vi the /etc/mail.sendmail.cf file. add your mail server name infront of DS entry (You can look for this entry by doing /^DS within vi editor)
save the sendmail.cf file
start sendmail file by /sbin/init/sendmail stop followed by /etc/mail/sendmail start

-Goodluck,

-USA..
Good Luck..
Hartmut Lang
Trusted Contributor

Re: Sendmail installing

Check. if sendmail has access to /var/mail/abc.

For me it looks like sendmails, wants to deliver the mail lokaly (append to the file /var/mail/abc).

May this is not possible because of your NFS configuration.
Jennifer Lam
Advisor

Re: Sendmail installing

Hello All,
I try all the answers, but I still do not get any luck yet. Please help
Uday - don't undersatnd /etc/mail start
/etc/mail is a directory

FYI- Currently, the /var/mail directory on my mailserver is mountable (and is mounted) to the /var/mail directory on my client system.

Thanks for your help.

Jennifer.
Sanjay_6
Honored Contributor

Re: Sendmail installing

Hi Jennifer,

Try this,

# cp /etc/newconfig/sendmail.cf /usr/lib/sendmail.cf

Now restart the networking. But you can try by restarting the sendmail daemon only first,

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

Hope this helps.

Regds
Jennifer Lam
Advisor

Re: Sendmail installing

hello All,
I have my client reinstall sendmail.Now my mailserver and client are working fine.
Thanks for help.

Regards,
Jennifer Lam.