Hi Dave,

I used the following instructions to set up the system, but they weren't followed verbatim because I already had some things in place.

https://www.digitalocean.com/community/tutorials/how-to-configure-a-mail-server-using-postfix-dovecot-mysql-and-spamassassin

        More recently, I found this one:

https://www.exratione.com/2016/05/a-mailserver-on-ubuntu-16-04-postfix-dovecot-mysql/

        Which I've used to check what I've got.  It /seems/ to be set up OK.

I don't know how much of this is useful or helpful, but you mentioned amavis-new. My process list currently contains:

clamav 1001 1 0 2016 ? 00:38:54 /usr/bin/freshclam -d --foreground=true
clamav    1018     1  0  2016 ?        01:46:43 /usr/sbin/clamd 
--foreground=true
amavis    1680     1  0  2016 ?        00:01:40 /usr/sbin/amavisd-new (master)
amavis   10898  1680  0 17:29 ?        00:00:01 /usr/sbin/amavisd-new 
(ch7-avail)
amavis   15292  1680  0 22:16 ?        00:00:00 /usr/sbin/amavisd-new 
(ch1-avail)
postfix 15337 7599 0 22:19 ? 00:00:00 smtp -n amavis -t unix -u -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=yes -o disable_dns_lookups=yes -o max_use=20
amavis   15344  1680  0 22:19 ?        00:00:00 /usr/sbin/amavisd-new 
(ch1-avail)


        I've posted the spamfilter.sh file to http://pasted.co/7b794ccd

I don't see anything in there about verbose logging, but there are two lines in there with a resemblance to your suggestion:

logger -f $SALOG -p mail.notice -t spamfilter <<<"Spam filter piping to SpamAssassin: $SPAMASSASSIN -x -E -s $MAX_MESSAGE_SIZE"

        and

logger -s -p mail.notice -t spamfilter <<<"OK.  Piping to sendmail: $SENDMAIL 
$@"

The second one seems to be after-the-fact, so I think I could modify the first one. Should this be cut down to:

$SPAMASSASSIN -x -E -s $MAX_MESSAGE_SIZE

        to avoid the logging process?


        Kind regards.

        Jim.


On 04/04/17 23:19, Dave Wreski wrote:
Hi,

    I thought spamfilter was spamassassin.

    Looking through my config files, the postfix master.cf file contains
the line:

flags=Rq user=spamd argv=/usr/bin/spamfilter.sh -oi -f ${sender}
${recipient}

    /usr/bin/spamfilter.sh is described in the comments as:

Where did you get the instructions to put this whole system together? You
mentioned amavisd-new, but this doesn't look to be using amavisd-new at all.

Look through the script for something relating to "debug" or "verbose" or
"info:" or something pertaining to logging and disable it.

In fact, a little googling shows this:

logger <<<"Spam filter piping to SpamAssassin, then to: $SENDMAIL $@"
  ${SPAMASSASSIN} | ${SENDMAIL} "$@"

You should be able to comment that out and instead use the following in place:

${SENDMAIL} "$@"

    Current log file is up to 165 Gb.

You should look at your logging and/or log rotating system to get this under
control. I believe that's going to be /etc/logrotate.d/

Regards,
Dave



    Kind regards.

    Jim.



On 04/04/17 22:41, Dave Wreski wrote:
Hi,

    My set up consists of Postfix, Postgrey, Spamassassin, Clam-AV,
Amavis-new and Dovecot.

What is "spamfilter"?

Apr  2 10:31:26 oss2 spamfilter: Sun Oct 16 07:24:13 2016 [16208]
info: spamd:
connection from ip6-localhost [::1]:53930 to port 783, fd 5

What operating system?

Regards,
Dave


--
James R. McLachlan PGDCCI(Open)
Managing Director
Objective Software Services Ltd.
Web   : http://www.oss-ltd.com
Tel   : +44 (0)1397 708550
Mob   : +44 (0)7971 232717
Fax   : +44 (0)7970 117580
e-mail: j...@oss-ltd.com

Objective Software Services Ltd. is a company registered in England and Wales with company number 2892148.
Registered office: 11 Percy Terrace, Tunbridge Wells, Kent, TN4 9RH

Reply via email to