Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SOMETHING IS WRONG WITH MY SENDMAIL CONFIGURATION 1

Status
Not open for further replies.

defash

ISP
Feb 1, 2002
5
NG
I need help on my sendmail, I am new to linux ,I have succeeded in configuring samba and dns, but my sendmail is not working.
I edited /etc/sendmail.cf file and change #SMTP daemon option.
(DaemonPortOptions=Port=smtp,Addr=217.87.39.134,Name=MTA).
I restart with /etc/init.d/sendmail restart which is ok.
I also edited /etc/mail/local-host-names,then add my domain.I restart with /etc/init.d/sendmail restart which is ok.I edited /etc/mail/access file and run the command make access.db after saving the file.
I also configure the POP3 which works, I confirmed by telnetting into the port(110)

My problem is whenever I telnet into my smtp port(25) or telnet localhost 25 it gives connection refused.Also if I look into my netsat -nl, I cant see port 25 map to my ip address(there is no port 25 at all). Pls help me out.
 
I can't help you with sendmail, being a qmail user... I would guess that your SMTP daemon isn't even running. However I would warn you against posting your IP address or host name or actually anything that can identify your network in a public forum. Especially with a post like:

SOMETHING IS WRONG WITH MY SENDMAIL CONFIGURATION

it can make you a target.
 
Thanks for the advice(meekrob),actually this is not my ip address, I just formulated it to complete my illustration.
Please how do I know if my SMTP daemon is working?whenever I checked with netstat - nl, my smtp port is always missing.
 
I'm glad you didn't actually post your IP. Have you seen this howto?:


If you are not too invested in sendmail you might want to consider qmail. In my opinion it is easier to maintain, and more importantly was designed with security in mind. You will probably have to compile it from scratch, but your reward will be a fuller knowledge of the email system you are using. Also the online book "Life with qmail" walks you through every step. If you compare and I think you will find a lot more documentation on the qmail site. Either way, good luck!
 
OK ... step 1 - look in the process table 'ps -ef | grep -i sendmail'. Is sendmail one of the processes running? If not, then we nede to start it.

You should find scripts in /etc/init.d (probable location depending on distro). There should be one called simply 'sendmail'. You can start with /etc/init.d/sendmail start. You may need to create an a symlink to start sendmail automatically when your system boots, this should be in /etc/rc3.d, and be a symlink to the start script like S78sendmail.

HTH.
 
Thank you all.I finally got it ,I discovered that my smtp port is not set on.I am sorry for my carelessness.I can now telnet into my smtp port and POP3 port.
The new problem now is how do I send and receive mails.
 
It's probably time to create a new thread then. Be as specific as possible, try to solve only one problem at a time (per thread)! Also don't forget to thank the people that help by clicking where it says:

Click here to mark this post as a helpful or expert post!

to give a little positive feedback.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top