1833846 Members
2073 Online
110063 Solutions
New Discussion

mailx

 
Oliver Schmitz
Regular Advisor

mailx

Dear all,
I have problems using mailx. I have the line:

cat test.dat |mailx -s "test" test@test.de

Unfortunately the mailuser test@test.de does not receive any email but I find this mail in /var/mail/root on the maschine where I tried to send the mail.

Do anybody have a suggestion what the problem could be?

Thanks for some help in advance and best regards,

Oliver


Oliver Schmitz
6 REPLIES 6
RAC_1
Honored Contributor

Re: mailx

what does /var/adm/syslog/mail.log says?

Anil
There is no substitute to HARDWORK
G. Vrijhoeven
Honored Contributor

Re: mailx

Hi Oliver,

Did you configure a mail server? Like sendmail.cf or a snmp server to relay your outging mail to.

Gideon
Oliver Schmitz
Regular Advisor

Re: mailx

Thank you both for the answers. I think the mailer is not running properly.
It tries it with (/var/adm/syslog/mail.log) mailer=esmtp and says three time stat=service not available, then it sents it to the relay which is relay=root@test.de. There I can see it as mentioned before.

Obviously the mailer is not started. How can I do it and how can I check the proper functionality?

Thanks in advance again and best regards,

Oliver
Oliver Schmitz
G. Vrijhoeven
Honored Contributor

Re: mailx

Hi Oliver,

You could restart sendmail:

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

Regaeds,

Gideon
Mel Burslan
Honored Contributor

Re: mailx

first off run command :

ps -ef | grep sendmail

if you see sendmail running, try stopping it with

/sbin/init.d/sendmail stop

if it succeeds, you can restart it by

/sbin/init.d.sendmail start

after starting it,

ps -ef | grep sendmail

command should give you an output looking like this:

root 28600 1 0 Mar 23 ? 2:20 sendmail: accepting connections on port 25

but this I think is not very relevant to your problem as you are not able to send email not worried about receiving them at this point. In which case, I would look into the DS setting in your /etc/mail/sendmail.cf file.

if you do not have a line starting with letters

DS

followed by a server name or just by itself, this may be your problem.
________________________________
UNIX because I majored in cryptology...