LinuxQuestions.org
Help answer threads with 0 replies.
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 05-27-2004, 08:04 AM   #1
johnnycash
LQ Newbie
 
Registered: Mar 2004
Posts: 12

Rep: Reputation: 0
Mail server necessary?


Hello all

Our mailserver is hosted elsewhere.
I would like to configure a local computer to fetch mail from our mailserver and filter it if any spam. Then local clients (windows 2000 and linux) can get their own mail from the from the local pc, which is also the squid server.

Would i have to configure a mailserver to suit this purpose? if so, how?
Would i configure the local server's hostname in the pop,smtp settings for the clients mail client
If i have to configure a mail server I would prefer using postfix.
 
Old 05-27-2004, 08:36 AM   #2
solnul
Member
 
Registered: Jan 2003
Distribution: Slackware
Posts: 82

Rep: Reputation: 15
Yes, you will need a POP or IMAP server mail server so your local clients can download the processed mail from it. Postfix is my favorite SMTP server too, but it's only for sending mail.

Some distros come with a configuration tool that will more or less automate the process. Otherwise, Dovecot is pretty easy to set up.

You will then need to download the mail from the remote server, and pass it through your filters. Basically, you'd have a program run regularly from a cron job (something like fetchmail or getmail), which would pipe incoming mail to procmail, which runs the filters and stores it where your outgoing mail server will find it.

If you control the remote mail server, it would probably be easier to tell it to forward mail from your address to your new server, where you'd run an SMTP server to receive it. That would eliminate the need for fetchmail.

The local clients then connect to the new server and download the filtered messages.
 
Old 05-27-2004, 08:56 AM   #3
johnnycash
LQ Newbie
 
Registered: Mar 2004
Posts: 12

Original Poster
Rep: Reputation: 0
Thank you for the quick reply.

Do you have info regarding how to setup my mailserver

i do not know much regarding the configuration


all i know is i have to change the "mydestination" and "myhostname". I have heard of fetchmail but i have no clue of where and how to set it up.

BTW I am running RH9
 
Old 05-27-2004, 10:17 AM   #4
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
hy guys,
i have redhat 8.0 with qmail. my favorite mail server is qmail. i think it is faster and more secure than others.
johnnycash, i can advise u qmail. there is a great installation guide including spamassasin and antivirus at www.qmailrocks.org

i use fetchmail to get emails from email server. i added a job for cron to run fetchmail as solnul told.
here is my cron job. it checks emails for every 5 minutes.

*/5 * * * * fetchmail -f /root/getemail

here is my /root/getemail file:

poll mail.domain.com with proto pop3
user "user1name" there with password "user1password" is "user1@local.com" here
user "user2name" there with password "usr2password" is "user2@local.com" here

u must configure local clients' email client software to use your local email server to get emails (only pop3, dont change smtp).

if u have lots of clients and your linux box is also internet gateway for local clients, u may prefer to redirect pop3 recuests which come from local net and go to real email server, to local email server:
#/sbin/iptables -t nat -A PREROUTING -s local_net/subnet -d mail.domain.com -p tcp --dport 110 -j REDIRECT --to-port 110
 
Old 05-27-2004, 10:25 AM   #5
johnnycash
LQ Newbie
 
Registered: Mar 2004
Posts: 12

Original Poster
Rep: Reputation: 0
thank you, i will attempt your suggestion and let you know how it works out

thank you again
 
  


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
Configure & Connect a Linux mail server from a windows mail clients digihall7 Linux - Networking 4 10-23-2006 12:21 PM
How to have limited mail on a linux server that support unlimited e-mail account mmh Linux - General 3 03-15-2006 06:52 AM
can we configure a Linux server with mail server,file server and web server kumarx Linux - Newbie 5 09-09-2004 06:21 AM
Postfix mail server not accepting incoming mail from the external interface rexmundi Linux - Networking 7 12-22-2003 03:41 PM
Mail Server Delimiter for alternate mail server venugopalmk Linux - Networking 2 04-29-2003 04:55 AM

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

All times are GMT -5. The time now is 03:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration