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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Email server questions

Status
Not open for further replies.

hallm

Programmer
Jun 11, 2000
159
US
I'm wanting to implement the following:

I want our server (Red Hat 7.3) to check all of our ISP-based email addresses every few minutes then I want certain addresses to go straight to certain boxes and certain emails to go to several boxes (group emails). I'm really new to this but here is what is setup so far.

Redhat 7.3 with qmail (I had sendmail on and can go back to sendmail if needed). I've been looking though the documentation for both, also I have webmin installed and I don't see any place to key in outside email addresses. Do I need another program to pull the emails from the ISP's to begin with?

Any help would be appreciated.
 
I have the same setup at my office. I did alot of research and eventually went with a software by The software is CommuniGate PRO. Each mailbox can have its own pop accounts and you can set the system to poll when ever you want. The software is free to try and get to where you want then they have different levels of license. I have mine setup on Mandrake. It has a GUI interface and is real easy to setup and use. Also support is real easy to get to and use if needed.

Hope this helps, Richard S. McCranie
CoMatrix Southeast
richm@comatrix.com
 
This should be quite straightforward with open source apps.

Use fetchmail to pull the pop email from the various servers. Best to use a global fetchmail config rather than that for individual linux users. The fetchmail config file - fetchmailrc - assigns usernames for incoming mail from particular pop servers. The syntax for an individual pop account in fetchmailrc is similar to:

poll ispserver.com with proto POP3 user "j.doe" with password "xxxx" is john here


This will downloaded email from j.doe@ispserver.com and forward onto the user john on the linux box.


Now, all the various MTAs, like sendmail, qmail etc., there is an aliases file which can map the username for email on that machine to other usernames, groups or programs. So with the above example, john could have an alias like:


john: bob, bill, ben

or you could use a filename referencing a file containing the usernames, or redirect to a mailing list program etc.




See "man fetchmail" and "man aliases"

Note: there is a good fetchmail config tool called fetchmailconf.
 
And maybe a little cron job to tell fetchmail how often you'd like the mail collected.
0/2 8-18 * * Mon-Fri works well for me.

Oh, Is there an easy and simple way to include virus scanning of incoming email into this fetchmail handling sequence ?

ß

 
Hi,

with fetchmail, you don't need cron - just use the line:

set daemon 300

in /etc/fetchmailrc to get the fetchmail daemon to run and poll every 300 seconds.

There's also a post today (6th Feb) on using fetchmail with antivirus scanning.
 
"with fetchmail, you don't need cron - just use the line: set daemon 300"

Unless of course you seek finer control over what its doing.
Which is why I use 0/2 8-18 * * Mon-Fri in a cron job.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top