Misc Links
Forum Archive
News Archive
File DB



Latest Forum Topics
wow 56 k modems are
Posted by Red Squirrel
on Oct 14 2013, 11:52:23 pm

I Need A Program
Posted by rovingcowboy
on Sep 23 2013, 5:37:59 pm

having trouble witn lan
Posted by rovingcowboy
on Sep 23 2013, 5:40:56 pm

new problem for me
Posted by rovingcowboy
on Sep 23 2013, 5:54:09 pm

RBC Royal Bank
Posted by Red Squirrel
on Aug 13 2013, 6:48:08 pm


Setting up an email gateway
A good way to filter spam and viruses
By Red Squirrel

First, here is what you need in order for this to work:

  • A linux server that connects to your LAN (same router as other workstations)
  • Samba (you don't NEED this but it's best since you can set a hostname for the server)
  • Fetchmail - this is the heart of the setup
  • you probably need other mail server tools so just install whatever comes with the distro to be safe. In this article I'm using Red Hat 8.0
  • The obvious (pop3 email accounts, Ethernet cable, router etc...)
  • webmin - download it at http://www.webmin.com.

    Download the webmin rpm and go to the server to install it. I wish all linux programs were rpms, those go so smooth to install, usually, but sometimes there's nasty dependencies and you end up having to download a few hundred files…. But that does not happen with webmin. It just installs.

    To access it you simply type in your browser http://hostnameofserver:10000 and to login you use root as username and your root password.

    Webmin itself is very straightforward and beets trying to figure out what files you have to edit and what the syntax is, since I know I would have been lost without it. In this article I won't really cover setting up smtp since that is a tricky one and I don't even remember everything I did, but I know I had to go to the /etc/mail/ directory and edit a few files (access was one of them) to allow relay for my workstation IPs. Then I had to type "make" in the same folder for it to process the new configurations, then type "service sendmail restart". But it could not have been that easy. Allot of linux stuff requires fooling around with files until it works, and you loose track of everything! That's what happened to me.

    Setting up the local accounts
    When your workstations check the server, they are actually checking local email accounts and not even going online, since it's the server's job to go online to fetch the mail. So in webmin or in the console, create linux users and put them in the group "mail", I use email_redsquirrel for my red squirrel at iceteks dot com account, email_webmaster and so on.

    If you're doing this through the console, you use these commands:

    Adduser email_user -g mail
    Passwd email_user
    [enter a password]

    In your email client, enter the info corresponding to this, so for the pop3 server you would put the hostname or IP of the server, and then enter the username and password. For smtp you would put the server if you have the smtp server going, if not keep whatever you already got.

    Now, in webmin, go to the "servers" section, then click on "fetchmail mail retrieval".

    You should see an empty list, and at the bottom there's an option for "add new server". Click on that and you will get this screen: (click to enlarge)

    webmin - Click to see all

    Lot of stuff you can just leave default, the rest is straightforward. For server name, you put mail.yourdomain.com. The default protocol should be set to pop3. For the other section, put your remote user name and password in the appropriate fields, this is the username and password of your email account (ex: your isp's). For local server, you put the user account you created, so email_user in this case. That's it! The rest should just be kept to default. Submit the information.

    Send yourself a test email and then type "fetchmail" in the console, you should see that it has mail to download, then check with your email client to see if it gets the mail. It's good to wait about 30 to 60 seconds before checking, when doing tests like this, as the email may get caught on a busy line/server on the internet and what not. It's not always instant, which I learned when testing this.

    You might be thinking of how ennoying it will be that you always have to do a fetchmail, but not to worry, there's a way to make the server check automatically. Go on to the next page to find out.

    Next Page
    30411 Hits Pages: [1] [2] [3] [4] 2 Comments

    Latest comments (newest first)
    Posted by Red Squirrel on December 12rd 2004 (01:54)
    Yes you need a pop or imap server for it to work and it has to use mboxes. (you can configure it to use maildirs but I've tried and failed at it, but I know it can be done)

    I use the one that came with red hat. I forget the name, and the name is not mentioned even once in the program or documentation.

    Posted by loskinski on December 12rd 2004 (01:40)
    I have been trying to get this working on my own server here at my house. But did you have to install a pop server? because i am unable to connect to that machine with any of my email clients. any help would be greatly appreciated



    View all comments
    Post comment

    Top Articles Latest Articles
    - What are .bin files for? (669062 reads)
    - Text searching in linux with grep (161180 reads)
    - Big Brother and Ndisuio.sys (150471 reads)
    - PSP User's Guide (139547 reads)
    - SPFDisk (Special Fdisk) Partition Manager (117240 reads)
    - How to Use MDADM Linux Raid (188 reads)
    - What is Cloud Computing? (1225 reads)
    - Dynamic Forum Signatures (version 2) (8769 reads)
    - Successfully Hacking your iPhone or iTouch (18714 reads)
    - Ultima Online Newbie Guide (35906 reads)
  • corner image

    This site best viewed in a W3C standard browser at 800*600 or higher
    Site design by Red Squirrel | Contact
    © Copyright 2020 Ryan Auclair/IceTeks, All rights reserved