LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-30-2002, 02:45 AM   #1
ChaosX2
Member
 
Registered: Aug 2001
Location: Sacramento, CA
Distribution: Gentoo 1.4+
Posts: 195

Rep: Reputation: 30
Question How do I set up a mail server?


I am having trouble trying to figure out how to setup a mail server. Right now I am able to send mail from my server without a problem using send mail. However I have no idea how to set it up to recieve e-mail. I am using a free DNS at no-ip.com and I have setup my MX there as being ruggles.hopto.org which goes back to my server. However if I try e-mailing root@ruggles.hopto.org it doesn't get there. I am also behind a firewall and I am port forwarding ports 110 and 25. Any help on how to recieve e-mail from the outside would be great. Thanks
 
Old 05-30-2002, 11:11 AM   #2
ChaosX2
Member
 
Registered: Aug 2001
Location: Sacramento, CA
Distribution: Gentoo 1.4+
Posts: 195

Original Poster
Rep: Reputation: 30
Anyone please. I don't even know where to begin to find information about this
 
Old 05-30-2002, 11:16 AM   #3
linuxRules
Member
 
Registered: May 2002
Distribution: Rehdat 7.3
Posts: 49

Rep: Reputation: 15
You said you can send email to the outside ?

if (true) {
How did you that working ?
when I do "command | mail username@hostname.com
I get it returned.
}
thanks();
 
Old 05-30-2002, 11:21 AM   #4
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
first check that your dns server points to your server
2.) your sendmail is setup and working
3.) your pop3 server is setup and working
 
Old 05-30-2002, 01:19 PM   #5
ChaosX2
Member
 
Registered: Aug 2001
Location: Sacramento, CA
Distribution: Gentoo 1.4+
Posts: 195

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by linuxRules
You said you can send email to the outside ?

if (true) {
How did you that working ?
when I do "command | mail username@hostname.com
I get it returned.
}
thanks();
yes that is true. That part was pre-setup by my linux install. I use Pine to send the message through send mail.
 
Old 05-30-2002, 01:22 PM   #6
ChaosX2
Member
 
Registered: Aug 2001
Location: Sacramento, CA
Distribution: Gentoo 1.4+
Posts: 195

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Noerr
first check that your dns server points to your server
2.) your sendmail is setup and working
3.) your pop3 server is setup and working
1) How do I check if the dns server points to my server. If I ping ruggles.hopto.org it does bring up my internet IP.

2) send mail is up and working just fine.

3) This is the part I need help with. How do I set up the pop3 server? what program is used etc...?
 
Old 05-30-2002, 01:27 PM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well if you have sendmail running then you will have information ready and waiting for you in /var/log/maillog saying about each email being denied due to the configuration of sendmail. if your firewall is not an issue then sendmail is blatantly NOT set up fine. never assume things are working properly. check the sendmail howto if you need to sort out a suitable relaying protocol.
 
Old 05-30-2002, 01:55 PM   #8
ChaosX2
Member
 
Registered: Aug 2001
Location: Sacramento, CA
Distribution: Gentoo 1.4+
Posts: 195

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by acid_kewpie
well if you have sendmail running then you will have information ready and waiting for you in /var/log/maillog saying about each email being denied due to the configuration of sendmail. if your firewall is not an issue then sendmail is blatantly NOT set up fine. never assume things are working properly. check the sendmail howto if you need to sort out a suitable relaying protocol.
I don't know if I understand the problem I am having is not sending mail. I can send mail to anyone on or outside my network. My problem is recieving mail from the internet. I can recieve mail easily from anyone on my network. And as far as I know send mail is only for sending mail not recieving it. I need to know how to recieve it on my computer.
 
Old 05-30-2002, 02:46 PM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
no, like i said you need to check what relay method you are using. i can't remember the actual facts about sendmail off hand but you can specify relaying based on wether an email is FROM someone/somewhere, TO or FROM someone/somewhere or a load of other more complex methods. there are many other things that could be stopping you getting the solution you want, but i think this is the most common. your sendmail may well be wet up to only accept mails from your lan, and reject ones from elsewhere, even if they are addressed to the lan. so you want to check what relay method you have set up in /etc/mail/sendmail.mc and check that with the howto. Like i said tho, look at the logs first, they are there for a reason.
 
Old 05-30-2002, 03:00 PM   #10
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
acid_kewpie is right
put domains that can use your sendmail to /etc/mail/access file
put your domain name in /etc/mail/local-host-names

Sendmail sends and recieves mail. What it doesn't is deliver it to the customers (pop3 does that)
so
go to /var/spool/mail/
and check what files are there and how big they are
if your mail is there, then setup pop3 server

i personally use qpopper 4.0 which is available for free at www.eudora.com
once qpopper is compiled you have to start it up with xinetd
 
Old 05-30-2002, 03:48 PM   #11
ChaosX2
Member
 
Registered: Aug 2001
Location: Sacramento, CA
Distribution: Gentoo 1.4+
Posts: 195

Original Poster
Rep: Reputation: 30
Thanks for the feed back. I think I'll have to read through a lot of documentation on sendmail but at least I know where to go now thanks.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What do i need to set up a mail server tomed Linux - Networking 3 11-05-2004 11:06 AM
mail server set up gslater Linux - Networking 28 06-12-2004 07:48 AM
what do i need to do to set up mail server feetyouwell Linux - Software 6 02-16-2004 01:08 PM
How do I set up a Mail Server jamie_barrow Linux - Newbie 8 07-21-2003 11:56 AM
Set up Mail server kelper Linux - General 1 05-12-2003 12:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration