Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sendmail setup for virtual hosting 1

Status
Not open for further replies.

zorrinn

Programmer
Jun 12, 2002
7
CA
I have a LAN with 4 PCs and one Linux box. All of them are connected to the internet thru a Linksys hub. We are about 3 developers working from the PCs connecting to the Linux server using VNC (x-windows).

We have a website for our company (Eg: We want to setup our mail system, to get all the mails coming to our account in the XXXX.com domain. And then sort it out depending on the user to whom it has come, and send it locally to the respective users.

In short, if we have our local linux users to be user1, user2 and user3, then if someone sends an email to user1@XXXX.com, our Linux mail system should collect all the mails and distribute the mails to the respective users locally, in this case user1 and so on. The same goes with sending mail to the external world.

OR

Right now the emails that come to that XXXX.com with any username is forwarded to a netzero account. Can I do a pop to that netzero account every few minutes and get the emails, and then sort it locally and send it to the respective users ?

If someone could renderme some help in this regard, I would really appreciate it, since I am new to setting up these kind of complicated stuff.

Thanks in advance.
 
Set up sendmail as an smtp server. This way, you will use it just like you do an isp mail account. Since you are not familiar with setting up a mail server, I suggest you go to and download WebMin. It will be well woth your time. Rather than me telling you every file you have to configure and then how to compile them so sendmail can use them, this will give you a GUI which will make a lot of stuff self explanitory. You will also need a pop3 server. Qpopper is a good one and can be down loaded from You can configure it to run as a daemon or stand alone server. Other than that, there is not much to configure with a pop3 server. Let me know if you have trouble setting these up. Once you have your dns "MX" record pointing to your server, sendmail will pass it to procmail. If you don't have any recipes for procmail to use, the mail will be store on the server in /var/spool/mail/username. Where username is a file with the name of a user on your system. Users will setup their mail clients (Outlook or whatever) just like they would for their isp account only they would use your server name for both smtp and pop servers. They would use the same user name and password they do to log onto you system. When they check their e-mail, qpopper will pop the file on the server and send it to the client. It is a text file containing all the user's mail but once it reaches the client, it will be broken down into seperate e-mails. Let me know if I misunderstood what you want to do. I do that from time to time. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top