[EMAIL PROTECTED] wrote:
Hi,
On Mon, Aug 18, 2008 at 07:06:20PM +0200, mouss wrote:
...
you don't provide enough information to get help. as stated above, you need
to show the output of 'postconf -n'. you also need to show the contents of
master.cf (so that we see that you didn't disable recipient validation).
^^^^^^^^^^ ^^^^^^^^^^^^^^
this was exactly the problem.
I didn't disabled it. But its disabled by default. I have manually enabled
it.
no. by default postfix does address validation in smtpd (when mail is
received via smtp). there is no validation if mail is received via the
sendmail command (because programs that use the sendmail command, such
as cron, don't know how to handle errors).
My master.cf line looks now like so:
#
# My delivery agent
#
myagentl unix - n n - 300 pipe
-o smtpd_client_restrictions=reject
this is ignored. "pipe" doesn't know about smtpd_* parameters. smtpd_*
parameters only apply to smtpd (which receives mail via smtp).
flags=DRhu user=nobody argv=/usr/local/sbin/myagent ${user}
I had to add the line "-o smtpd_client_restrictions".
Without this line it would accept ANY email. So it seems that
email validation is not enabled by default.
if mail is received via smtp, then by default, postfix does address
validation, unless you disable it or you break it.
if mail is received via the sendmail command, no address validation is
performed, for the reasons explained above.