1751906 Members
4812 Online
108783 Solutions
New Discussion юеВ

sendmail is not working

 
vasudha_2
Occasional Contributor

sendmail is not working

hi i am novice with sendmail, even though i have configured sendmail.mc yet i cant send mails through outlook/sendmail command. i am using linux redhat 9.0
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: sendmail is not working

Welcome to HP-UX

I do this on Linux and am attaching my file to take your sendmail.mc files and build a sendmail.cf


See attachment.

diagnostic for Linux.

sendmail -v -d8 -d38 someone@some.net
type some text

.


This will let you know what the trouble is.


mailq
shows mail build up in the output queue

sendmail -v -q
will try and process the output queue in verbose mode.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Stuart Browne
Honored Contributor

Re: sendmail is not working

Steve, that script needs to be ammended for RH9.

RH9 stores all of the sendmail stuff (except for aliases) in the '/etc/mail/' structure, including the CF files.

Also, if the configuration files have changed, a 'service sendmail restart' will remake any of the DB's or CF's as required (go 'make' :).

I guess a forced-make would be the follownig:

cd /etc/mail
newaliases
touch virtusertable access domaintable mailertable *.mc
make

Anyway.

Things to check:

netstat -ntlp | grep sendmail

What does the output of this command list? If you've correctly configured the 'mc' file, it should have a line similar to:

tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 770/sendmail

(the 770 will change depending on the PID of yoru sendmail instance).

If you've gotten this far, then you should be getting error messages, more importantly bounce messages. The details of these messages are important, please paste the contents of one here.

The most common one will probably be "Cannot relay". You will need to add your subnet's IP range to '/etc/mail/access', in the form of:

192.168.1 RELAY

Then re-make the database files (either using SEP's script, or by doing the following commands:

cd /etc/mail
make

Unless you changed the 'mc' files, a sendmail restart is not necessary.)

If not, hopefully this is enough information to help you forward a bit further.
One long-haired git at your service...
vasudha_2
Occasional Contributor

Re: sendmail is not working

Actually i am working on dial up line, how do i configure it so that my smart host(ISP) can send our message. at present my isp refuses to send any message. may be my config is incorrect?
after testing at my home I have to implement the same at a computer with fixed IP address. how will be that different?