LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-13-2004, 09:43 AM   #1
elderain
LQ Newbie
 
Registered: Mar 2004
Location: Ohio
Posts: 16

Rep: Reputation: 0
Question Mail server problems


Hello,

I am trying to setup a mail server and I seem to be having some problems. I am using Postfix and it seems to be running just fine. My problem is that I CAN send emails out of the box, like to hotmail, but I cannot receive them. I am basically using the default settings for postfix, except for a few changes in /etc/hosts and /var/spool/postfix/etc/hosts.

Anyone have any ideas?

Thank you,
 
Old 03-13-2004, 10:15 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Error messages?
 
Old 03-13-2004, 10:36 AM   #3
elderain
LQ Newbie
 
Registered: Mar 2004
Location: Ohio
Posts: 16

Original Poster
Rep: Reputation: 0
I don't believe so. I do eventually get one back from hotmail saying that the message could not be delivered.
 
Old 03-13-2004, 12:02 PM   #4
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
To save hair loss it's probably worth double-checking that the box running Postfix can be accessed from outside ('ping -a myserver.mydomain' from somewhere else).

I think that by default Postfix won't be set up to receive mail, nor to accept mail for the domain, so you'll need to edit /etc/postfix/main.cf to do this.
 
Old 03-13-2004, 01:16 PM   #5
elderain
LQ Newbie
 
Registered: Mar 2004
Location: Ohio
Posts: 16

Original Poster
Rep: Reputation: 0
I tried pinging my server from an outside source and it pinged just fine.
I also tried sending a local email to one of the other users on my system and apparently local emails both send and receive. I checked out the main.cf file and I think that all of the default stuff should work. Is there anything that I definitely need to change?

Does Postfix send and receive emails or does it use other programs to do some of the work? If so, maybe it's the program that handles fetching outside emails coming in?

Thank you.
 
Old 03-13-2004, 01:35 PM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Thats what I mean.. usually the returned mail you get back that your trying to send will have detailed info on why it couldn't be delivered.
 
Old 03-13-2004, 02:00 PM   #7
nevrgood
LQ Newbie
 
Registered: Mar 2004
Location: Bloomington, IL
Distribution: Suse 8.0
Posts: 10

Rep: Reputation: 0
I setup postfix about two years ago and I had to add a few lines to the main.cf file for smtp authentication, that will allow you send email from outside your subnet. I don't know for sure if that's the problem your having, but in case it is you can find lots of how to info on the net. Check out this link..

http://postfix.state-of-mind.de/patr...ilclients.html
 
Old 03-14-2004, 09:24 AM   #8
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
As trickykid says, the error message will probably indicate exactly where things are going wrong, so perhaps you could post some of the text.

Postfix can handle the whole process, but if you are using your distro's default configuration it's probably locked down to some extent; e.g. to deliver mail from foreign systems to local spools may require 'inet_interfaces' to be edited in main.cf, and 'mydestination' for Postfix to accept mail for the domain itself.
 
Old 03-14-2004, 10:15 AM   #9
elderain
LQ Newbie
 
Registered: Mar 2004
Location: Ohio
Posts: 16

Original Poster
Rep: Reputation: 0
Here is the message I receives from postmaster@hotmail:

This is an automatically generated Delivery Status Notification.
====================================
Delivery to the following recipients failed.

trent@elderainmud.com
====================================

Now in main.cf I changed my inet_interfact from...
inet_interfaces = localhost
to
inet_interfaces = $myhostname, localhost

Now I am getting the error message 'postfix: fatal: parameter inet_interfaces: no local interface found for 24.145.135.166' when I type 'postfix reload'

Any ideas?

Thanks
 
Old 03-14-2004, 10:20 AM   #10
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Try changing your main host and domain name in your configuration to elderainmud.com and or mail.elderainmud.com as I tried sending email to your address and it was returned "host unknown" almost immediately. Its either that on your server or your MX records are not setup correctly.
 
Old 03-14-2004, 10:46 AM   #11
elderain
LQ Newbie
 
Registered: Mar 2004
Location: Ohio
Posts: 16

Original Poster
Rep: Reputation: 0
Unhappy

Well, I officially give up. Thanks to everyone who helped me. I can see no reason why I can't receive emails. Again, thank you for your time.
 
Old 03-14-2004, 10:57 AM   #12
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by elderain
Well, I officially give up. Thanks to everyone who helped me. I can see no reason why I can't receive emails. Again, thank you for your time.
Already, we just started. Did you try anything I just mentioned? Oh well.. its simply at the DNS level or just a small configuration error on postfix's side.

Good luck..
 
Old 03-14-2004, 12:22 PM   #13
elderain
LQ Newbie
 
Registered: Mar 2004
Location: Ohio
Posts: 16

Original Poster
Rep: Reputation: 0
Yes, I did try what you mentioned in the last post and nothing seemed to work. I am completely new to linux so a lot of stuff that you guys say just goes over my head. I tried modifying a few things in main.cf and master.cf and nothing seemed to work at all. I checked my configuration in my Mandrake Control center and the servers Host name is set to elderainmud.com.

I checked my MX records and they are 'elderainmud.com points 1st to domain elderainmud.com' I also did a 2nd one 'mail.elderainmud.com points 2nd to domain elderainmud.com' and it didn't seem to affect anything.

Maybe if I post my main.cf file on the internet maybe one of you could point out any errors?

www.elderainmud.com/main.cf

Thank you for your help..
 
Old 03-14-2004, 01:48 PM   #14
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Shouldn't this:

#myhostname = elderainmud.com

Read like this to work:

myhostname = elderainmud.com


If you've been trying to run postfix with that current configuration and the myhostname commented, it doesn't know what its own servername is most likely.

Probably wouldn't be a bad idea to also uncomment this and put the correct value in it:

#mydomain = domain.tld
 
Old 03-14-2004, 02:37 PM   #15
elderain
LQ Newbie
 
Registered: Mar 2004
Location: Ohio
Posts: 16

Original Poster
Rep: Reputation: 0
I changed the two fields you mentioned above and did a 'postfix reload'. I then tried to send myself an email from hotmail and instantly got back an email saying 'Delivery Status Notification'
 
  


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
MY ISP DNS SERVER IP ...is creating some problems for my mail server daaku_n01 Linux - Networking 2 01-23-2006 05:09 PM
just havin` problems with my mail server logicutz Slackware 2 09-10-2005 03:38 PM
E-mail server problems ®åD\° Linux - Newbie 1 06-06-2004 08:30 PM
Mail Server problems. gboutwel Linux - Networking 3 01-30-2003 08:31 AM
My mail server have problems explorer1979 Linux - General 1 05-11-2002 12:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:12 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