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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sending mail problem

Status
Not open for further replies.

rninja

Technical User
Apr 11, 2001
381
US
I am trying to set up mail on the server using sendmail and qpopper. I would like it so that my users can receive and send email from their outlook express client using their own domains hosted on my server. How do I go about setting this up? I tried telnetting locally to the box at port 25 and could not, but 110 works.

how do I get port 25 to work for remote email clients? Rninja

smlogo.gif

 
In /etc/mail/relay-domains, list all the domains you want to be able to relay through your server. You may need to check to see that sendmail reads the CR file in sendmail.mc. Then your users just enter mail.theirdomain.com (or what ever they named their mail server in their MX records) into their mail clients and they should work. Be advised, if you allow a domain to relay through your server they can send mail from home through your server to anywhere they like. Some one could get a hold of this info and send millions of e-mails all over the place so it's best to set spam controls on these domains.
 
problem is I don't have any file called relay-domains. I got the default rehat 7.2 sendmail install. I have these files:
access.db sendmail.mc virtusertable.db config.cf local-host-names
Makefile domaintable mailertable trusted-users
access domaintable.db mailertable.db virtusertable



Rninja

smlogo.gif

 
You can just create one with a text editor and set the permissions the same as the rest of the files in that dir. If you would like a GUI admin program to help you setup all your servers, WebMin is pretty nice. You can get it from . You can download the tarball or rpm versions. Good luck.
 
Well I don't want to have to resort to webmin. I actually got it to work when I telnet to localhost 25. When I try to telnet to port 25 using the domain name I haver for the server however, It gives me an error--Trying 201.8.35.3...
telnet: connect to address 201.8.35.3: Connection refused

What I am I doing whrong and how can I configure it to work with at 2 domains?

Rninja

smlogo.gif

 
Well after scouring the 'net, I found out that my version of redhat by default enters the a few lines that keep network transmission soley on the local box. You have to edit the sendmail.cf and sendmail.mc files then use m4 to recompile them. After I did that, I could send mail from other hosts. Rninja

smlogo.gif

 
You are right from 7.2 on, the default was to keep it secure by not allowing incoming e-mail or relaying. You don't have to edit sendmail.cf because when you run m4 it recreates sendmail.cf from the edited sendmail.mc. If you would like , I can e-mail you my sendmail.mc. You will need to edit any reference to the ip address to yours. We are running five domains and it is working just fine. I can e-mail from my computer in Kentucky and send it anywhere in the world and it gets relayed from the server in florida. It works just like your ISP e-mail account.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top