Re: Postfix log content

2016-02-07 Thread Tony van der Hoff

On 05/02/16 13:58, Darac Marjal wrote:

On Thu, Feb 04, 2016 at 05:28:54PM +, Tony van der Hoff wrote:

Hi,

Running Postfix under Jessie. At some time in the past I managed to
increase the logging verbosity to track down a problem, which I've
solved.

I now have a vast amount of data in mail.log, which is obscuring
useful messages. I thought it was simply a matter of adding or
removing "-v" to the service configuration stanzas in
/etc/postfix/master.cf, but on reviewing that file, I see no instances
of -v, e.g,
smtp  inetn-n--smtpd

The logged data even includes users passwords in clear, as well as
20-odd lines for each email received (sample attached).

Can anyone please suggest any other places to look to reset the
default log level


This doesn't look like verbose logging to me. I think the problem is
just that you have a complex chain of processes for the message to pass
through. bendel.d.o connects to you, the message is passed by the
greylisting daemon postgrey and is accepted by your system. The message
is then forwarded to amavis. At that point postfix is finished with that
message. Amavis now checks the message and pronounces it clean. Amavis
now connects back to postfix and passes the approved message back in.
Postfix delivers the message to the SECOND delivery agent (virtual),
which delivers it to your maildir.

If you like, you could look at making amavis into what postfix calls a
"Before Queue Filter" (and which everyone else calls a milter). There is
an amavisd-milter package which will help with that. Basically, instead
of accepting the message and THEN checking it for viruses, the message
is passed through amavis DURING the smtp session. Postfix will only
accept the message if amavis approves it, otherwise the remote host will
be told that the message is rejected. This is a nicer solution all
around, but it does mean that SMTP sessions will take longer. That is,
you might not be able to accept as much mail as you would be able to
using amavisd's batch mode.



Thanks for he advice; I'll look into it.


--
Tony van der Hoff| mailto:t...@vanderhoff.org
Buckinghamshire, England |



Re: Postfix log content

2016-02-05 Thread Darac Marjal

On Thu, Feb 04, 2016 at 05:28:54PM +, Tony van der Hoff wrote:

Hi,

Running Postfix under Jessie. At some time in the past I managed to 
increase the logging verbosity to track down a problem, which I've 
solved.


I now have a vast amount of data in mail.log, which is obscuring 
useful messages. I thought it was simply a matter of adding or 
removing "-v" to the service configuration stanzas in 
/etc/postfix/master.cf, but on reviewing that file, I see no instances 
of -v, e.g,

smtp  inet  n   -   n   -   -   smtpd

The logged data even includes users passwords in clear, as well as 
20-odd lines for each email received (sample attached).


Can anyone please suggest any other places to look to reset the 
default log level


This doesn't look like verbose logging to me. I think the problem is 
just that you have a complex chain of processes for the message to pass 
through. bendel.d.o connects to you, the message is passed by the 
greylisting daemon postgrey and is accepted by your system. The message 
is then forwarded to amavis. At that point postfix is finished with that 
message. Amavis now checks the message and pronounces it clean. Amavis 
now connects back to postfix and passes the approved message back in.  
Postfix delivers the message to the SECOND delivery agent (virtual), 
which delivers it to your maildir.


If you like, you could look at making amavis into what postfix calls a 
"Before Queue Filter" (and which everyone else calls a milter). There is 
an amavisd-milter package which will help with that. Basically, instead 
of accepting the message and THEN checking it for viruses, the message 
is passed through amavis DURING the smtp session. Postfix will only 
accept the message if amavis approves it, otherwise the remote host will 
be told that the message is rejected. This is a nicer solution all 
around, but it does mean that SMTP sessions will take longer. That is, 
you might not be able to accept as much mail as you would be able to 
using amavisd's batch mode.







--
For more information, please reread.


signature.asc
Description: PGP signature


Postfix log content

2016-02-04 Thread Tony van der Hoff

Hi,

Running Postfix under Jessie. At some time in the past I managed to 
increase the logging verbosity to track down a problem, which I've solved.


I now have a vast amount of data in mail.log, which is obscuring useful 
messages. I thought it was simply a matter of adding or removing "-v" to 
the service configuration stanzas in /etc/postfix/master.cf, but on 
reviewing that file, I see no instances of -v, e.g,

smtp  inet  n   -   n   -   -   smtpd

The logged data even includes users passwords in clear, as well as 
20-odd lines for each email received (sample attached).


Can anyone please suggest any other places to look to reset the default 
log level


--
Tony van der Hoff| mailto:t...@vanderhoff.org
Buckinghamshire, England |
Feb  4 17:15:20 shell postfix/smtpd[6383]: connect from 
bendel.debian.org[82.195.75.100]
Feb  4 17:15:21 shell postgrey[3528]: action=pass, reason=client whitelist, 
client_name=bendel.debian.org, client_address=82.195.75.100, 
sender=bounce-debian-user=lists_0711=vanderhoff@lists.debian.org, 
recipient=lists_0...@vanderhoff.org
Feb  4 17:15:21 shell postfix/smtpd[6383]: 1F3CE1BE17E: 
client=bendel.debian.org[82.195.75.100]
Feb  4 17:15:21 shell postfix/cleanup[6388]: 1F3CE1BE17E: 
message-id=<1756206109536220492378@MUZAMMIL>
Feb  4 17:15:21 shell postfix/cleanup[6388]: 1F3CE1BE17E: 
resent-message-id=
Feb  4 17:15:21 shell postfix/qmgr[2749]: 1F3CE1BE17E: