Re: How a correct mail looks like?

From: Harry Phillips (harry_at_hkjsfh.com)
Date: 05/05/04


Date: Wed, 05 May 2004 18:10:53 +1000

Ohmster wrote:
>
>>SpamAssassin is what I use and it just plugs straight in. I have a
>>/etc/procmailrc file which sends all mail to the SA deamon. I do all my
>>configuration of SA with Webmin.
>
>
> Hmmm, I have a sendmail server and I get *killed* by spam and MS viruses on
> it. How do you have yours setup? Do you run sendmail? Does sendmail somehow
> forward the mail to something else, procmail or SA?
>
> Excuse me if these seem like dumb questions, it was hard to get sendmail up
> and running right as a mail server and to use pop 3 to get the mail on my
> LAN.
>

So many questions....

What I have for my setup. I use postfix as my MTA, I use CourierIMAP as
the mailserver, I use SpamAssassin as my spam checker, procmail as my
filter/sorter and fetchmail to collect all the mail from various hosts
scattered around the internet.

The way it works:

Incoming,
1. Fetchmail collects the mail.
2. It passes the mail to Postfix.
3. A global /etc/procmailrc sends it to the SpamAssassin deamon.
4. It comes back from SA with a score and marked as SPAM if over 5.5.
5. The global procmailrc then disgards any mail with a SA score over 12.
6. Then the ~/.procmailrc files sort the mail into the IMAP folders for me.
7. I connect to CourierIMAP using any mail client I want to (usually
Mozilla Mail)

Outgoing,
1. Mozilla Mail sends the mail to the internal mail server.
2. Postfix is configured to forward the mail to my ISP. I do this
because some mail servers are configured to refuse message from dynamic
IP pool.

All of this can be of course done using 127.0.0.1 in your settings.
Using IMAP has several advantages.
1. Each message is stored as an individual file, you could have a cron
script remove files older than X number of days.
2. You are not tied to a mail client, if you want to change there are no
import/export worries.

-- 
Regards,
Harry Phillips
--- Failure is not an option,
     it comes bundled with your Microsoft product.


Relevant Pages

  • Re: How a correct mail looks like?
    ... >>SpamAssassin is what I use and it just plugs straight in. ... >>configuration of SA with Webmin. ... It passes the mail to Postfix. ... Mozilla Mail sends the mail to the internal mail server. ...
    (alt.os.linux)
  • Re: unable to send mail from UNIX
    ... >forwards it to the host in the MX record of the domain it's addressed ... I don't know about postfix, but sendmail can be configured to ... lines of "to send outgoing mail via your ISP's mail server" -- the ... configuration you want when you connect to the 'Net via an ISP and not ...
    (comp.unix.admin)
  • Re: [SLE] Postfix help
    ... I was going to try to set my email system with no amavisd ... and spamassassin to see if that stops the error. ... We have actually two postfix servers. ... The mail server just stops receiving ...
    (SuSE)
  • Re: [opensuse] Re: mailing from CLI
    ... the term "mail server" is only used for systems ... Postfix take care of sending the mail it is difficult to help you. ... simply saying "I want a mail client to do that" does not constitute a reason. ... solution, a "null client" configuration. ...
    (SuSE)
  • Re: [opensuse] Re: mailing from CLI
    ... the term "mail server" is only used for systems ... Postfix take care of sending the mail it is difficult to help you. ... simply saying "I want a mail client to do that" does not constitute a reason. ... solution, a "null client" configuration. ...
    (SuSE)