Cable Modem/Qmail as a lan pop/smtp server

I'm setting up a lan with a 486 connected to a cable modem and the local hub to serve as a masquerading box and provide pop boxes for each local user.  The mail feed will come from a remotely hosted domain via smtp.  First of all, I need to get the smtp server going and allow it to deliver to local users.  Would this be considered virtual hosting since I do not have a domain on th linux machine recieving the mail?  Furthermore, what do I set the domain of the linux box to be?  And the rest of the computers on the internal network?  Then, users need to be able to recieve their mail via the pop protocol.  This doesn't seem like too much of a problem, so could anyone focus on the smtp problem?
    I can't seem to find a good source of information for qmail, so could someone point me to a good qmail step-by-step guide to such a configuration if you don't want to explain it all for me?  I'm still unsure of even the most basic configuration really.  The howto didn't seem to be too informative.(nor do the DJB or life with qmail documents)  I already know what I need, but not exactly how to get it going.  Would anyone be willing to send me their qmail configuration for me to take a look at?  Just tell me what it does and I'll adapt with information from the little documentation I've found.  Go ahead and e-mail me at jacobmj@mbay.net if you prefer.
jacobmjAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

j2Commented:
You will need a domain, else you will get tons of "relaying denied" and "sender domain must exist" when you try to send mail.
0
jacobmjAuthor Commented:
Why can't I just add the 10.0.0. network as well as the isp's smtp server to the rcpthosts file?  Qmail is made to do virtual hosting also, so couldn't it be accomplished by other means.  Also, what would the domain of the local network(masqueraded with ipchains) be?  Or, does it really matter?  Again, I need to be able to send remote mail as well as local mail.  I would prefer, for the local mail, to just be able to enter the name without any @domain.com.  Any possiblities?  Or other suggestions?  Thanks
0
j2Commented:
"I would prefer, for the local mail, to just be able to enter the name without any @domain.com" <-- Thats automatic.

"Why can't I just add the 10.0.0. network as well as the isp's smtp server to the rcpthosts file" <-- Ah, if you relay all mails via your isp's smtp it would work.
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

jacobmjAuthor Commented:
I don't understand the reason I would have to relay through the isp.  Do you know if it would cause problems to set the linux box's domain to that of the one that's being hosted by the isp?  I could just add my ip as the domain in my hosts file couldn't I?  Really, I don't mean to contradict every suggestion :)--I'm sure you've got your doubts...
0
j2Commented:
That would work too, but atleast with my ISP that would violate the licence agreement (With my ISP you are not allowed to set up your own MDA maquerading as coming from their network).
0
jacobmjAuthor Commented:
So, mail sent from local users(win98 machines) could be addressed to anyuser@isphosteddomain.com and it would never leave qmail but immediately be delivered locally?  Are you sure I'm not going to cause any problems here?  About my isp, it really isn't and isp, but rather only a hosting company.  They will send all mail recieved addressed to my domain to my smtp server.  From there, they do not care how, nor will assist me in configuring my end.  They just get the mail to any ip I give them.  Back to configuration of qmail, have you used webmin with its qmail module?  Or...is there a qmail module I can get for linuxconf.  Either way, I see no reason for doing things from the CL if I can avoid it.  A major factor is that of it not just being me doing the configuration(adding users...).  Or, if I do have to use a CL, could you point me to a good step-by-step site for configuring qmail-smtp and qmail-popd?
0
jacobmjAuthor Commented:
Adjusted points to 100
0
j2Commented:
SOrry, i dont use Qmail, i was talking MDA in general here, but sendmail / qmail / whaetver-you.want-mail basically have the same prerequisites.


"So, mail sent from local users(win98 machines) could be addressed to anyuser@isphosteddomain.com " 

nO, Mail sent to "usera" will be deleivered to usera on the machine on which the MDA is running. If you send to

usera@anywhere.something  then anywhere.something _must_ be a resolvable domain.
0
jacobmjAuthor Commented:
OK, I think that'd be good since anything that would go to the hosted domain would end up in the same place, so I can just deal with it there.  Do I have to worry about the domain on the other NIC(private network)?  I don't see it as making any difference to the mail coming from the isp, but then from the lan it would matter wouldn't it?  There's a whole 'nother can of worms...  And each windows machine?  I would assume the domain for them doesn't matter.
0
jacobmjAuthor Commented:
OK, I think that'd be good since anything that would go to the hosted domain would end up in the same place, so I can just deal with it there.  Do I have to worry about the domain on the other NIC(private network)?  I don't see it as making any difference to the mail coming from the isp, but then from the lan it would matter wouldn't it?  There's a whole 'nother can of worms...  And each windows machine?  I would assume the domain for them doesn't matter.
0
jacobmjAuthor Commented:
This is from a different message I just posted.  If I can get it working, I'll give(award, thank with, lui donne, ...) anyone the 100pts from this and the 50pts from the other if they'd like.

I've got the user's maildirs set up, and each can connect via pop as well as send via smtp, but recieved messages just seem to disappear.  The maillog lists success, but where the heck do all the messages go? In /etc/profiled/qmail.csh(and qmail.sh), I've changed the env var MAIL to $HOME/Maildir and deleted the env var MAIL from /etc/profile.  The messages do not remain in the /var/spool/mail nor the /var/spool/mqueue directories.    Also, lastly, I have changed /etc/rc.d/init.d/qmail wherever it said Mailbox to Maildir.  I really am kind of presed for time in getting this last glitch eliminated, so could someone offer any ideas of what I might have set wrong(or have yet to set)?


The URL of the message is:  http://lc.experts-exchange.com/bin/Q.10263938
0
ping0621Commented:
I did the same thing at home.
All the computers on the LAN have domain  .home.be
I have a DNS running at my server with forward lookups.
There is one user sysbot that fetch all mail from the remote mailserver with fetchmail and deliver the mail to the local users with procmail.
The local users use the server as incomming and outgoing mailserver.
Every quarter the pending outgoing mail is forwarded to the relay of my ISP.


0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.