LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   AntiSPAM Mail setup (http://www.linuxquestions.org/questions/linux-software-2/antispam-mail-setup-522333/)

nolinuxnollife 01-24-2007 07:08 AM

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

acid_kewpie 01-24-2007 07:10 AM

you want fetchmail, delivering via spamassasin with procmail i expect. simple enough.

nolinuxnollife 01-24-2007 08:12 AM

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.

acid_kewpie 01-24-2007 11:41 AM

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.

nolinuxnollife 01-24-2007 01:52 PM

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

acid_kewpie 01-24-2007 02:03 PM

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.

nolinuxnollife 01-25-2007 09:21 AM

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..

farslayer 01-25-2007 09:25 AM

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...

nolinuxnollife 01-25-2007 09:46 AM

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?

farslayer 01-25-2007 09:56 AM

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...

nolinuxnollife 01-25-2007 10:35 AM

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

acid_kewpie 01-25-2007 12:24 PM

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.


All times are GMT -5. The time now is 05:07 PM.