LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-19-2003, 11:43 AM   #1
enigmaweb
LQ Newbie
 
Registered: Aug 2003
Posts: 20

Rep: Reputation: 0
Unhappy POP3 Is Killing Me


OK, I have been reading like crazy and I'm having a lot of roadblocks getting my POP3 Server up and running. After experimenting and (failing) to get QPopper working, I decided to stick with the built in POP3 daemon in Red Hat Linux 9, ipop3d. So now, I have the service running and I am able to authenticate users however they never have any mail...

Here is basically how my domain(s) are setup... Cox has apparently blocked Port 53, 25, and 80 (I believe that's the right one) to prevent people from running DNS Servers, SMTP Relays, and Web Servers. I am using zoneedit.com to get around the DNS blocking and 8081 as my WWW Port to get around the web server block. My mail server is mail.enigmawebware.com and my (local) hostname = Prometheus.

[b]My question is[b] why is it that when I send an email message to ceo@enigmawebware.com when ceo is a local user on my Red Hat machine (/sbin/nologin) why isn't the message forwarded to /var/spool/mail/ceo ? I have been playing with Fetchmail via Webmin to try to fix this with no success. In fact, I don't even know if the messages are being sent to my server successfuly (I assume they are as they aren't bouncing??). I have also tried setting up PostFix but I am VERY confused as to what I should be using as configuration parameters for $mydomain $myhostname, cannocial mapping, and/or virtual servers?

Can anyone help explain the best way to receive inbound mail on Port 110 (POP3) using one of these methods (or a method built into RH)?

Any help is MUCH appreciated!!!!
 
Old 08-19-2003, 01:04 PM   #2
enigmaweb
LQ Newbie
 
Registered: Aug 2003
Posts: 20

Original Poster
Rep: Reputation: 0
Unhappy Please Don't Let My Thread Die

If anyone has any suggestions please post I am a but I try very hard not to post unless I'm REALLY stumped...
 
Old 08-19-2003, 01:19 PM   #3
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
Check /var/log/maillog to see what's happening

What domain name does it think it's receiving mail for?

In your access file did you allow relaying using enigmawebware.com ? Just wondering if there's a conflict in what domain it thinks it's handling mail for.
 
Old 08-19-2003, 01:38 PM   #4
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Arch
Posts: 1,374

Rep: Reputation: 47
I remember setting pop3 was touch, the problem may actually be in your smtp (sendmail)config
 
Old 08-19-2003, 01:42 PM   #5
enigmaweb
LQ Newbie
 
Registered: Aug 2003
Posts: 20

Original Poster
Rep: Reputation: 0
Smile Thanks For The Response!

Good thought. Upon further research my server is receiving mail for localhost.localdomain - I assume it is not for enigmawebware.com by default since I am not running BIND/DNS on my server? I took a look inside my access file and there is nothing there but a bunch of comments describing the file. My root cdwriter and postfix accounts (all created/mailed to by the system) are receiving email logs from services @localhost.localdomain.

So I guess we have narrowed it down to binding my pop3 server to enigmawebware.com ... do you think you could help me with what I need to insert into my /etc/postfix/access file and/or other files in order to accomplish this?
 
Old 08-19-2003, 01:44 PM   #6
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Arch
Posts: 1,374

Rep: Reputation: 47
sorry, not familiar with your progs and configs
 
Old 08-19-2003, 01:45 PM   #7
enigmaweb
LQ Newbie
 
Registered: Aug 2003
Posts: 20

Original Poster
Rep: Reputation: 0
In Addition...

Also, I don't know if having Port 25 blocked by my cable connection is an issue. My SMTP service is running through Postfix rather than Sendmail (I believe) and if I'm not mistaken Postfix won't work unless the Sendmail service isn't running? I would assume that this should not make any difference for receiving my mail via Port 110 using POP3 but I guess I could be wrong. Just wanted to throw the extra info out there in case it helps I will deal with SMTP later lol
 
Old 08-19-2003, 02:39 PM   #8
Electric_Blue
Member
 
Registered: Aug 2003
Distribution: RedHat
Posts: 35

Rep: Reputation: 15
Postfix is it's own complete daemon, and will run without sendmail running. It is a tricky bugger to set up right imo, but it works flawlessly once it's up and going.

I could tell you how to set it up to relay only to other domains, but I've never had it collect local mail for users so I'm hoping to learn something on this thread as well. Plus, your port situation makes this uhhh....interesting

I also use DNS to resolve these names in my config, you may have to use IP#'s if you do not have an updated DNS somewhere that knows your machine's information. Not sure on this.

Here's what a few of what your configs may look like.

main.cf
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
myhostname = machinename.enigmawebware.com
mydomain = enigmawebware.com
myorigin = $myhostname
append_at_myorigin = yes
mydestination = $myhostname, localhost.$mydomain
transport_maps = hash:/etc/postfix/transport.map
mynetworks = 127.0.0.0/8, 192.168.1.1/24
relay_domains = $mynetworks, hash:/etc/postfix/transport.map
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases

# Some paths to my spamlist files and
# RBL stuff past here, not real important for you right now.

I don't think you will need to mess with aliases, master.cf, transport.map, or any of the other configs, but maybe someone who uses Postfix for local collection will have a better idea on this. I didn't see anything relevant.

virtual.map
root root@localhost
postmaster postmaster@enigmawebware.com
enigmawebware.com mail.enigmawebware.com

Once you have these set up run these commands:
postmap /etc/postfix/main.cf
postmap /etc/postfix/virtual.map
postfix restart

You may also need to hash the rest of the files in here like aliases, transport.map an the others. Postfix reads the hashed versions of these files, anytime you make a change to these files you must rehash them with the postmap command.

When you start the daemon you should start watching /var/log/maillog for startup errors and messages. I usually tail this file with tail -f /var/log/maillog command.
 
Old 08-19-2003, 03:06 PM   #9
enigmaweb
LQ Newbie
 
Registered: Aug 2003
Posts: 20

Original Poster
Rep: Reputation: 0
Arrow In The Process...

I'm working on doing these configuration changes to try and get this working. My port blocking situation is definitely interesting, though a pain in the ass. I can't wait until I get SpeakEasy in 6 months! In the meantime I have to deal with it.

The only problem I see with your configuration suggestions is that CoX has also blocked inbound NetBIOS ports 137-139. So I can't use Prometheus.enigmawebware.com or I get "Cannot Find Server" (obviously). I can setup zoneedit.com to forward Prometheus.enigmawebware.com to my IP address, and then my Smoothwall will automatically forward that port traffic to my server using Virtual Server. I am wondering if this will accomplish the same thing or is postfix very picky about having a host NAME?

I have seen a lot of threads similar to this on LinuxQuestions.org and I would like to finally have a definitive answer for all of you going through the same thing as me Please help out and post your suggestions and I will contribute what I can as well!
 
Old 08-19-2003, 03:12 PM   #10
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
If you're still sticking with sendmail you'll have to tell it explicitly it's recieving for enigmawebware.com, doesn't matter you don't have dns setup if it's for local stuff

I can only tell you how to do it editing sendmail.cf manually, which is not the recommended way to do but if someone else what's to pipe in.

in sendmail.cf there's a line

#Dj$w.Foo.COM

delete the # and change it to

Djenigmawebware.com

and check that it isn't only listening on 127.0.0.1

should be something like

#SMTP daemon options
O DaemonPortOptions=Port=smtp,Addr=ip_address_of_machine, Name =MTA

or

O DaemonPortOptions=Port=smtp, Addr=0.0.0.0, Name=MTA

in access file can add something like

127.0.0.1 RELAY
192.168.1.0/24 RELAY

changing the IP's for your LAN

This should work for local mail
 
Old 08-19-2003, 03:16 PM   #11
Electric_Blue
Member
 
Registered: Aug 2003
Distribution: RedHat
Posts: 35

Rep: Reputation: 15
As far as I know it does need a host name.
If you ping either prometheus or prometheus.enigmawebware.com from your linux box does it find the machine?

In otherwords, does it know what it's name is. If it does not, then add an entry to your /etc/hosts

hosts
127.0.0.1 localhost.localdomain localhost
192.168.1.xxx prometheus.enigmawebware.com prometheus

and do:
service network restart

As for the port situation; all that sounds like it is going to be handled outside of the daemon. It should happily communicate on 25 and 110 to forwarded packets from your network, and vice versa.
 
Old 08-19-2003, 03:18 PM   #12
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
And oops, postfix, but the principle remains
 
Old 08-19-2003, 03:35 PM   #13
enigmaweb
LQ Newbie
 
Registered: Aug 2003
Posts: 20

Original Poster
Rep: Reputation: 0
Making Progress... Kindof

OK, I have made all of the configuration changes that you suggested Electric Blue. Thanks for your help. I did have to add Prometheus.enigmawebware.com to /etc/hosts and I can now ping that address and no longer get the "Prometheus is not a FQDN" in /var/log/maillog. However, when I send an email to ceo@enigmawebware.com from a different machine, I am still not receiving the message on my server, and it's still not bouncing.

Is there something more I need to specify for $mydestination? Also, if it helps, I noticed that all of my users' mail files (other than cdwriter, root, and postfix (system created)) have a size of 0. Nothing is in them whatsoever.

Thanks for your continued assistance!
 
Old 08-19-2003, 03:44 PM   #14
Electric_Blue
Member
 
Registered: Aug 2003
Distribution: RedHat
Posts: 35

Rep: Reputation: 15
Ok, on that other machine, does it know where prometheus is at? Can you ping it from there?

Now prometheus knows where itself is at, but none of your other machines may know. Try to send an email from one of those boxes using the IP# of prometheus as the smtp and pop3 server. That should get you some activity in /var/log/maillog. At least then you can further debug it from there.

You will most likely need to set up DNS in the future so the rest of the world will know what IP# to send requests that ask for mail.prometheus.com. But in the meantime, you can test it locally with the IP#.

See if you get some activity in your log with that.
 
Old 08-19-2003, 03:51 PM   #15
enigmaweb
LQ Newbie
 
Registered: Aug 2003
Posts: 20

Original Poster
Rep: Reputation: 0
Arrow Hehe ever more complex...

OK, right now I am at work SSHing into my server, so naturally I can't truly ping the NetBIOS name "prometheus" from here, but I can on my home LAN. I just added a DNS Entry to Zoneedit.com for Prometheus.enigmawebware.com which forwards to my Cable IP. I also set Prometheus.enigmawebware.com up with a Mail MX Entry (secondary). My primary is mail.enigmawebware.com but based on the configuration changes we just did I thought that it should be Prometheus.enigmawebware.com ???

You can also ping Prometheus.enigmawebware.com from the net... Right now I am just trying to send an email from work to a @enigmawebware.com address and have it deposit into /var/spool/mail/user -- yet that's still not happening....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
killing fsck grgoffe Linux - General 14 12-02-2007 01:41 PM
This is killing me UncleEricB Linux - Networking 2 02-01-2005 09:41 PM
killing X jabberwock486 Linux - Newbie 7 09-10-2003 11:59 AM
killing artsd JunLitsu Linux - Software 2 05-02-2003 12:57 AM
Killing X ? sp0t Linux - Newbie 7 08-17-2002 07:53 AM

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

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