Il 08/10/2012 12:29, Gelpi Andrea ha scritto:
Every day I found message like that in my postfix log.

I can't understand who is blocking message from MAILER-DAEMON

Oct 08 12:00:04 securemail <info> postfix/smtpd[14358]: 884025A4004:
reject: END-OF-MESSAGE from localhost[127.0.0.1]: 450 4.7.1
<END-OF-MESSAGE>: End-of-data rejected: Access denied;
from=<MAILER-DAEMON> to=<[email protected]> proto=ESMTP
helo=<securemail.realt.it>

The message blocked is a quota warning to a user.

Is it Possible it is policyd?
Have I to add MAILER-DAEMON somewere in policyd config?

This is the configuration.#
# Server configuration
#
[server]

# Protocols to load
protocols=<<EOT
Postfix
#Bizanga
EOT

# Modules to load
modules=<<EOT
Core
AccessControl
CheckHelo
CheckSPF
Greylisting
Quotas
EOT

# User to run this daemon as
user=kolab-n
group=kolab

# Filename to store pid of parent process
pid_file=/kolab/var/policyd/cbpolicyd.pid

# Filename to store cache
cache_file=/kolab/var/policyd/cache

# Uncommenting the below option will prevent cbpolicyd going into the
background
#background=no

# Preforking configuration
#
# min_server - Minimum servers to keep around
# min_spare_servers - Minimum spare servers to keep around ready to
# handle requests
# max_spare_servers - Maximum spare servers to have around doing nothing
# max_servers - Maximum servers alltogether
# max_requests - Maximum number of requests each child will serve
#
# One may want to use the following as a rough guideline...
# Small mailserver: 2, 2, 4, 10, 1000
# Medium mailserver: 4, 4, 12, 25, 1000
# Large mailserver: 8, 8, 16, 64, 1000
#
min_servers=2
min_spare_servers=2
max_spare_servers=4
max_servers=10
max_requests=100



# Log level:
# 0 - Errors only
# 1 - Warnings and errors
# 2 - Notices, warnings, errors
# 3 - Info, notices, warnings, errors
# 4 - Debugging
log_level=3

# File to log to instead of stdout
log_file=/kolab/var/policyd/policyd.log

# Log destination for mail logs...
# main - Default. Log to policyd's main log mechanism, accepts NO args
# syslog - log mail via syslog
# format: log_mail=facility@method,args
#
# Valid methods for syslog:
# native - Let Sys::Syslog decide
# unix - Unix socket
# udp - UDP socket
# stream - Stream (for Solaris)
#
# Example: unix native
#log_mail=mail@syslog:native
#
# Example: unix socket
#log_mail=mail@syslog:unix
#
# Example: udp
#log_mail=mail@syslog:udp,127.0.0.1
#
# Example: Solaris
#log_mail=local0@syslog:stream,/dev/log
log_mail=maillog

# Things to log in extreme detail
# modules - Log detailed module running information
# tracking - Log detailed tracking information
# policies - Log policy resolution
# protocols - Log general protocol info, but detailed
# bizanga - Log the bizanga protocol
#
# There is no default for this configuration option. Options can be
# separated by commas. ie. protocols,modules
#
log_detail=

# Protocol to use, either "tcp" or "unix". Defaults to "tcp"
proto=tcp

# IP to listen on, * for all
host=127.0.0.1

# Port to run on
port=10031
#port=/kolab/var/policyd/policyd.sock

# Timeout in communication with clients
#timeout=120

# cidr_allow/cidr_deny
# Comma, whitespace or semi-colon separated. Contains a CIDR block to
# compare the clients IP to. If cidr_allow or cidr_deny options are
# given, the incoming client must match a cidr_allow and not match a
# cidr_deny or the client connection will be closed.
#cidr_allow=0.0.0.0/0
#cidr_deny=



[database]
DSN=DBI:SQLite:dbname=/kolab/var/policyd/policyd.sqlite
#DSN=DBI:mysql:database=policyd;host=localhost
#Username=root
#Password=
#

# What do we do when we have a database connection problem
# tempfail - Return temporary failure
# pass - Return success
bypass_mode=tempfail

# How many seconds before we retry a DB connection
bypass_timeout=30



# Access Control module
[AccessControl]
enable=1


# Greylisting module
[Greylisting]
enable=1


# CheckHelo module
[CheckHelo]
enable=1


# CheckSPF module
[CheckSPF]
enable=1


# Quotas module
[Quotas]
enable=1



In Var/log/mail.* I didn't find nothing about it.



I found this message in policyd.log for every mail sent from MAILER-DAEMON.

[CBPOLICYD] ERROR: Protocol data validation error, required parameter 'sender' was not found or invalid format

To reproduce:

telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
220 securemail.realt.it ESMTP Postfix
helo securemail.realt.it
250 securemail.realt.it
mail from: MAILER-DAEMON
250 2.1.0 Ok
rcpt to: [email protected]
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
Subject: Prova

Prova
.
450 4.7.1 <END-OF-MESSAGE>: End-of-data rejected: Access denied
quit
221 2.0.0 Bye
Connection closed by foreign host.

It seems that "mail from: MAILER-DAMEON" is not accepted by policyd.

--
ing. Andrea Gelpi
***************************************************
La Terra non la abbiamo ereditata dai nostri avi,
ma la abbiamo presa in prestito dai nostri bambini.
***************************************************
We do not inherit the Earth from our parents,
but borrow it from our children.
***************************************************

_______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users_lists.policyd.org

Reply via email to