LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-24-2007, 07:08 AM   #1
nolinuxnollife
Registered User
 
Registered: Jan 2005
Location: india
Distribution: RedHat and Madrake
Posts: 55
Blog Entries: 1

Rep: Reputation: 15
AntiSPAM Mail setup


Hi ,

I have a mail server being hosted on external ISP.
I recieve a lot of spam.

Current setup

Mail Cleint (Outlook express, outlook , pine ,etc) directly authenticating to external POP Server using a username and password

Modified setup :

Mail Cleint (Outlook express, outlook , pine ,etc) authenticating to Local intranet SPAM application server which inturn checks mail at an interval and stores mail locally by logging into External POP Server

Please suggest me any server of this kind.

Thank you,
Mahen
 
Old 01-24-2007, 07:10 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,398

Rep: Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965
you want fetchmail, delivering via spamassasin with procmail i expect. simple enough.
 
Old 01-24-2007, 08:12 AM   #3
nolinuxnollife
Registered User
 
Registered: Jan 2005
Location: india
Distribution: RedHat and Madrake
Posts: 55
Blog Entries: 1

Original Poster
Rep: Reputation: 15
Thank you for the suggestion.. can you please give me some links to this configuration..?

Fetchmail while installing on RHEL4 (sorry for not reporting my distro and other computer specs) has a lot of dependencies..thats really frustrating for me like anything..(as a matter of fact , being a systems administrator I shud be happy if system gives a problem)..but this one is eating my time like anything.

Mahen.
 
Old 01-24-2007, 11:41 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,398

Rep: Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965
i'm not aware of anythign myself, but i'm sure google will see you fine. start with just a basic fetchmail configuration, then look to introduce the other functionality.
 
Old 01-24-2007, 01:52 PM   #5
nolinuxnollife
Registered User
 
Registered: Jan 2005
Location: india
Distribution: RedHat and Madrake
Posts: 55
Blog Entries: 1

Original Poster
Rep: Reputation: 15
I have configured my outlook express to get mail from the unix server on which fetchmail is running..

my .fetchmail.rc file

poll my.pop.server
protocol pop3
username my@user.account
password 'itsasecret'
smtphost local_smtp_server
mda "/usr/lib/cyrus-imapd/deliver -e -m $h -- $u"
#mda "/usr/bin/procmail -t -Y -a $h -d $u"

fetchmail commandline statement
fetchmail -k -a -f .fetchmail.rc

fetchmail activity

reading message username@server:1 of 55 (16848 octets) ................ not flushed
reading message username@server:2 of 55 (36333 octets) ................................... not flushed
reading message username@server:3 of 55 (16232 octets) ............... not flushed
reading message username@server:4 of 55 (2021 octets) . not flushed
reading message username@server:5 of 55 (4527 octets) .... not flushed
reading message username@server:6 of 55 (13763 octets) .........

after all the 55 mesages fetchmail quits..saying "you have a new mail in /var/spool/mail/account "

but my outlook express cannot get mails from the mail server.

the file shows a successfull increase in size

But two local accounts are able to exchange mails successfully to each other using outlook express.

Any work around?

Mahen
 
Old 01-24-2007, 02:03 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,398

Rep: Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965
there is no "work around" you presumably simly do not have any server configured to connect outlook to the mail, via imap or pop3. one *REALLY* important point here is that once fetchmail has done it's thing and put the mail in the file, that's the end of it's job totally. if you then have another service, like courier-imap or dovecot allowing clients to obtain those mails, it has *nothing* to do with fetchmail whatsoever.
 
Old 01-25-2007, 09:21 AM   #7
nolinuxnollife
Registered User
 
Registered: Jan 2005
Location: india
Distribution: RedHat and Madrake
Posts: 55
Blog Entries: 1

Original Poster
Rep: Reputation: 15
As you said fetchmail is downloading mails to a single file in $HOME folder..but I want this to be forwarded to a localuser..The localuser shuold be able to view this mails in outlook express..I hav tried alot..all yesterday night..but no sort of configuration is helping me out..
 
Old 01-25-2007, 09:25 AM   #8
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,228
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
re-read previous post that stated you MUST install a POP or IMAP server so your clients can Retrieve the mail...

so what POP or IMAP server are you running ?

http://www.courier-mta.org/
http://www.dovecot.org/
other...
 
Old 01-25-2007, 09:46 AM   #9
nolinuxnollife
Registered User
 
Registered: Jan 2005
Location: india
Distribution: RedHat and Madrake
Posts: 55
Blog Entries: 1

Original Poster
Rep: Reputation: 15
The box has RHEL 4 with Sendmail Running as MTA and a Cyrus POP/IMAP installed.

When outlook express clients are being configured with different users say user1 and user2 they are able to exchange mails..

But mails being downloaded by fetchmail are not reflecting in the Outlook express.

what could be the reason?
 
Old 01-25-2007, 09:56 AM   #10
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,228
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
what POP/IMAP server are the clients pointed at ?

It makes no sense that if your clients are pointed at your local server and they can send mail to each other but can't receive mail from outside unless fetchmail is delivering external mail to the wrong location...
 
Old 01-25-2007, 10:35 AM   #11
nolinuxnollife
Registered User
 
Registered: Jan 2005
Location: india
Distribution: RedHat and Madrake
Posts: 55
Blog Entries: 1

Original Poster
Rep: Reputation: 15
Its working now :

Probably I was not clear in stating what I wanted to say :

My current setup :

Outlook express on Win2k box --> Remote Hosting server for fetching mail with lot of spam.

I wanted to modify this way :

Outlook express on Win2k box --> spam free local mail box on Local mail server --> fetches mail from logging to Remote Hosting server


Anyways I resolved the issue the configuration was a problem..

here is my configuration :

poll REMOTE_SERVER protocol POP3
user user@remotehost there with password "itsasecret"
is user@remotehost here
keep
smtpname user@localhost

I am not sure what is happening behind but mails which are destined to user@remotehost are being successfully deliverd to user@localhost's mail box and am able to download all of them successfully using outlook express on the win2k machine..

I was expecting only a configuration for the fetchmailrc file which can directly forward mail to local smtp ..inturn the smtp shall handowvr this to cyrus imap..

Thank you for your precious time,
Mahen
 
Old 01-25-2007, 12:24 PM   #12
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,398

Rep: Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965
smtp does not "hand over" mail to an smtp, as i said above, once the mail hits a file, that's it from the incoming side, wether it's an smtp reciveing mail, or fetchmail pulling mail. once it's in a mbox file, or Maildir folder, that's it. end of. from there, the imap server reads from a file.

what i would expect is making things work now is that you followed our advice and installed / confgiured an imap / pop3 server.
 
  


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
antispam ukrainet Linux - Newbie 5 11-25-2004 09:39 AM
best antispam for linux? Espique Linux - Software 5 05-16-2004 02:12 PM
mail server and mail client setup issues htm Linux - General 1 03-16-2004 09:32 AM
Antispam PIayer Linux - Software 2 09-28-2003 05:56 AM
AntiVirus and AntiSpam solutions for MailServer RKris Linux - Software 1 02-25-2003 08:05 AM


All times are GMT -5. The time now is 07:35 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration