LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Help with Slackware and Sendmail (https://www.linuxquestions.org/questions/linux-software-2/help-with-slackware-and-sendmail-126548/)

asterix_hax0r 12-17-2003 01:54 AM

Help with Slackware and Sendmail
 
I have Slackware 9.0 installed, and I'm trying to get sendmail and a pop3 server setup with my domain name. I have researched quite a bit, but havent got much out of it. I know that I need to edit something in the sendmail.mc file which I do not have. If someone could help me out it would be gladly appreciated.

benjithegreat98 12-17-2003 08:20 AM

You do have it. That is, if you installed everything. I am running slack9.1 and it is located in /usr/share/sendmail/cf/cf/.

I copied the sendmail-slackware.mc file to /etc/mail and renamed it to sendmail.mc. After that you need to edit the path to the cf.m4 file. mine originally said

include(`../m4/cf.m4')

so I changed it to

include(`/usr/share/sendmail/cf/m4/cf.m4')

And I was happy.

asterix_hax0r 12-17-2003 09:03 AM

Well I found a file named generic-linux.mc, but there is no sendmail-slackware.mc. I have Slackware 9.0.

benjithegreat98 12-17-2003 09:20 AM

hmm. I just looked at that file and it is pretty bare. Have you ever heard of swaret? It is a program that will upgrade packages for you for slackware (kind of like up2date or apt, I believe). You can download and install it and tell it to upgrade the sendmail packages. You will have to change a setting in the /etc/swaret.conf, but it is pretty well documented. Tell it to upgrade for slack9.1 and the do swaret --upgrade sendmail (I think that would be the proper command). After that you can change it back to slack9.0 and use swaret to keep your system current.

Plus it will get you to the current version of sendmail which I believe does have some security fixes that you need. If that was too involved you can look for someone else's sendmail.mc on the net and create your own. It will need to be edited, probably.

Or if you want to be 133t you can edit your sendmail.cf file, but I wouldn't recomend it.

asterix_hax0r 12-17-2003 09:32 AM

I dont have swaret either.....

benjithegreat98 12-17-2003 09:38 AM

http://www.swaret.org/ download and install it

http://www.swaret.org/?menu=downloads
and get v1.6.0. Its a good program and its worth it just to keep your system up to date.

asterix_hax0r 12-17-2003 06:14 PM

Ok... well that helped quite a bit, thanks. I still have a problem though, I have read throgh tons of documentations and still can't seem to get sendmail and a pop3 server running quite right. What I want to get done is have my own mail server, and people can connect to it from their windows outlook express client, and I want their login names to be the login names they have on my server, aka. their linux account is bob and their pass is cats, then their user is bob, and their pass is cats, plus their e-mail addy would be bob@blacklighthosting.com. I know this is asking a little much on these forums, but if anyone has the time to help, please write back asap.

asterix_hax0r 12-17-2003 08:35 PM

No one knows?

asterix_hax0r 12-17-2003 10:50 PM

cmon people, post lol.

pcca 12-17-2003 11:26 PM

Have you check out the /etc/inetd.conf...
make sure the port for your smtp and pop3 is unmark and running

benjithegreat98 12-18-2003 08:13 AM

What exactly is not functioning as intended. Can you simply not log in using a pop client? Do you know if it will send/recieve mail? If the mail client can't log in then you need to do as pcca said and check that file and then type /etc/rc.d/rc.inetd restart

asterix_hax0r 12-18-2003 09:05 AM

There is nothing about the smtp service in inetd.conf.

benjithegreat98 12-18-2003 10:11 AM

that's ok. If you want to test if smtp is running correctly type (preferably from another *nix box
telnet 10.1.1.1 25 (where 10.1.1.1 is the box running sendmail)

after that type (you may not be able to see what you are typeing if from windows but you are typing)

helo benji.com
mail from:<joe.blow@yahoo.com>
rcpt to:<you@blacklighthosting.com>
data
this is a test of the emergency broadcast system
.


If you get it in your box the smtp is working. If you have turned pop on then you should get it in you outlook inbox after you recieve you messages.

asterix_hax0r 12-18-2003 04:39 PM

Hmmm, I beleive I was able to telnet into it before... I'm not able to now though.

benjithegreat98 12-18-2003 04:48 PM

Ok you also need to check your access file (/etc/mail/access).

It should have your IP address and OK

10.1.1.1 OK
or
10.1 OK

after that type (from /etc/mail)

makemap hash access < access

No need to restart sendmail. Now you can try to telnet again. Hopelfully that's all it is.


All times are GMT -5. The time now is 02:08 PM.