LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-09-2006, 12:02 AM   #1
chu2654
LQ Newbie
 
Registered: Nov 2006
Posts: 15

Rep: Reputation: 0
Why can't I receive mail in linux ?


Hello,
I installed openwebmail. But it can only send but not receive mail. I used ps -x | grep XXXXX and found both sendmail and postfix are running. Is that because the mail going to another mail server so I can't receive it ? How can I fix this problem ? Thanks.
 
Old 11-09-2006, 12:18 AM   #2
meetscott
Samhain Slackbuild Maintainer
 
Registered: Sep 2004
Location: Phoenix, AZ, USA
Distribution: Slackware
Posts: 411

Rep: Reputation: 43
Look up fetchmail. That can be set up with a cron job to fetch your mail every 5 minutes or so. Here's my cron entry for my e-mail:

# Fetchmail every 5 minutes
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/bin/fetchmail >> /dev/null 2>&1

And you need a .fetchmailrc file in your home directory with this line:
poll pop.yourdomain.com protocol pop3 username yourusername password yourpassword

Note, when I say "your" I mean fill in your own information here;-)
 
Old 11-09-2006, 12:51 AM   #3
chu2654
LQ Newbie
 
Registered: Nov 2006
Posts: 15

Original Poster
Rep: Reputation: 0
I can't find .fetchmailrc

I used "find / -name .fetchmailrc " but find nothing. And the command fetchmail showed "no mailservers have been specifiec". How can I fix it ? Thanks.
 
Old 11-09-2006, 12:53 AM   #4
meetscott
Samhain Slackbuild Maintainer
 
Registered: Sep 2004
Location: Phoenix, AZ, USA
Distribution: Slackware
Posts: 411

Rep: Reputation: 43
You have to create the .fetchmailrc file yourself, it doesn't already exist. This is just an example of what I do with pop3, you may have to modify it for imap for example.

Oh and you're doing the right thing by checking your configuration by typing "fetchmail" at the prompt. Notice that I pipe all output from fetchmail to null in cron. I don't keep it. It gets deleted immediately. Mail fails enough for whatever reason that I really don't want to know about it each time:-)

Last edited by meetscott; 11-09-2006 at 01:07 AM.
 
Old 11-09-2006, 03:30 AM   #5
chu2654
LQ Newbie
 
Registered: Nov 2006
Posts: 15

Original Poster
Rep: Reputation: 0
Does sendmail can send but not receive email?

Hello,
Does sendmail can send but not receive email? What packages should I install to receive email ?
 
Old 11-09-2006, 08:34 AM   #6
simonj82
LQ Newbie
 
Registered: Jun 2006
Location: Roma, Italy
Distribution: Slackware, Slamd64
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by chu2654
Hello,
Does sendmail can send but not receive email? What packages should I install to receive email ?
Sendmail only sends but don't receive mail!
You should have a POP3 server in your linux distribution like popa3d, gnu-pop3d or similar.
Otherwise you've to compile one like Courier-IMAP or similar (depending how much secure do you need)!
Bye!
 
Old 11-09-2006, 11:08 AM   #7
meetscott
Samhain Slackbuild Maintainer
 
Registered: Sep 2004
Location: Phoenix, AZ, USA
Distribution: Slackware
Posts: 411

Rep: Reputation: 43
You need to read a good book on Sendmail or Postfix. You should *not* be running 2 MTAs at the same time, unless you have some good reason. It's great that you can send mail but it sounds like you don't even know which MTA (Mail Transport Agent) you are using!

MTAs like Sendmail and Postfix, can receive mail but you have to set up MX records to forward mail to your local domain. This usually requires a lease of MX storage for your records, kind of like a domain name lease.

What I was describing with fetchmail is for grabbing your mail off of your ISP's mailbox. This is much simpler to set up and makes the system seem as though it's using mail locally. No MX records to maintain. In this case Sendmail or Postfix use what's known as a smart host, your ISP's MX records. Sendmail/Postfix forward outgoing mail to your ISP and your ISP takes care of the routing of mail.

Do not underestimate mail. It is extremely complex. People who administer mail often do nothing else. It's a full time job!

If all you want to do is send and receive mail on your Linux system, consider Kmail, Evolution, Thunderbird, or some other well established mail client. For your web based system you'll have to pursue one of the schemes I've described.
 
Old 11-09-2006, 11:01 PM   #8
chu2654
LQ Newbie
 
Registered: Nov 2006
Posts: 15

Original Poster
Rep: Reputation: 0
I installed pop3, but I still can't receive mail

hello,
I installed vm-pop3d-1.1.6-noarch.rpm, but I still can't receive mail. It doesn't matter with openwebamil. I use "pine" in linux to send mail to myself, but I still can't receive anything. What's wrong with the mail server ?
 
Old 11-09-2006, 11:11 PM   #9
chu2654
LQ Newbie
 
Registered: Nov 2006
Posts: 15

Original Poster
Rep: Reputation: 0
I can't receive email from outside the server.

I can send email to myself in the same server, but not outside the server.(ex:from yohoo). How can I fix it ?
 
Old 11-11-2006, 03:55 AM   #10
meetscott
Samhain Slackbuild Maintainer
 
Registered: Sep 2004
Location: Phoenix, AZ, USA
Distribution: Slackware
Posts: 411

Rep: Reputation: 43
You fix it be doing some of the things I've suggested. Read my previous posts and take them to heart. I hate to be a hard ass here but you have no idea how much set up is needed here. Unless you use one of the mailers I've suggested, like Kmail, Thunderbird, etc. you will have substantial set up. This is going to seem like a big task for someone who doesn't understand mail. *Not* because you can't understand it, but because it takes time to get a grasp of it.

Pine has some documentation in it for how to send mail as an "alternate role". You can start there. Go to the main menu -> S for Setup -> C for Config. Now on the page are the settings for things like sending as an alternate role.

Again, guys listen up! I'm not going to go through every possible mail scenario with you. You need a plan! Start with what you want to do and people (including me) can guide you along from there. There's nothing wrong with your mail chu2654! It needs to be configured. And that's a painful exercise, believe me.

Take some time to learn a little about e-mail by reading some how-tos and books. Maybe I should have held off and posted tomorrow. I've been working too long and it's late/early ;-)
 
  


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
Postfix, receive e-mail chartism Linux - Server 2 08-31-2006 11:23 PM
Can't receive mail SylCR Linux - Newbie 12 02-06-2004 12:17 PM
Can't receive mail with sendmail rufassa Linux - Networking 7 11-05-2003 09:30 PM
receive root mail on other pc dARkHunTEr Linux - Networking 5 10-08-2003 01:33 PM
cannot receive mail -- mail command andy18 Linux - General 1 09-09-2003 03:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:05 AM.

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