when you report problems or ask for help, you must follow the directions in
http://www.postfix.org/DEBUG_README.html#mail
(as suggested in the list welcome message)
In particular, you should send output of 'postconf -n' and relevant
logs. bounce messages are useless.
Next time, show logs for a _whole_ transaction, from the time the
message is received until it is delivered/bounced/.... In general, a
grep of the queueid (9A19B8E45C7 in the last log line you posted) should
find the related logs. (The above shows nothing more than the fact that
the smtp service sent 3 messages to the mailscanner box. just because
the to=<...> is the same means nothing).
anyway, this not necessary anymore. the loop is caused by a
misconfiguration of mail filtering. The filter passes the message back
to postfix, which then filters the mail, ... consider using a special
(IP,port) on the postfix box and use it to receive filtered mail (only
from the filtering box). see the FILTER README for more details.
BTW. the headers you posted are for a message that was received by
_Sendmail_, not postfix. recipient validation must be implemented on the
edge of the network. once one of your systems accepts mail, you should
not bounce it. It is too late. see the backscatter README.
then your machine is owned ;-p
postfix will log when the message is received, from where, what happened
to (cleanup) and how it was delivered (qmgr). the logs may be in an old
log file, but they must be somewhere.
> A message for a
> good recipient will show lmtp delivering the message to the user's
> mailbox. For users that have an invalid user-name part, but a valid
> domain part, I don't get any more detail than what I've provided.
>
here is an example of logs that you can see for a transaction:
Dec 14 00:05:59 ouzoud postfix/smtpd[26162]: 98A3279123:
client=foo.example.com[192.0.2.1]
=> message is received via smtp from 192.0.2.1
Dec 14 00:05:59 ouzoud postfix/cleanup[3197]: 98A3279123:
message-id=<4761B9CA...@blah.example.com>
=> cleanup show message id
Dec 14 00:05:59 ouzoud postfix/qmgr[28609]: 98A3279123:
from=<us...@example.com>, size=4753, nrcpt=1 (queue active)
=> qmgr shows sender address, ...
Dec 14 00:06:11 ouzoud postfix/smtp[24978]: 98A3279123:
to=<f...@here.example>, relay=192.168.1.2[1192.168.1.2]:10024, delay=11,
delays=0.24/0.02/0.01/11, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued
as DB7EB7912A)
=> message is relayed with the "smtp" transport.
Dec 14 00:06:11 ouzoud postfix/qmgr[28609]: 98A3279123: removed
=> qmgr says it's done with the message
you only showed the postfix/smtp log line.
>> anyway, this not necessary anymore. the loop is caused by a
>> misconfiguration of mail filtering. The filter passes the message back
>> to postfix, which then filters the mail, ... consider using a special
>> (IP,port) on the postfix box and use it to receive filtered mail (only
>> from the filtering box). see the FILTER README for more details.
>
> I'll read the filter readme thanks..
>
>> BTW. the headers you posted are for a message that was received by
>> _Sendmail_, not postfix. recipient validation must be implemented on
>> the edge of the network. once one of your systems accepts mail, you
>> should not bounce it. It is too late. see the backscatter README.
>
> Yes, we validate on the network edge. The problem? Postfix is not
> rejecting invalid users.
do you validate users on the Sendmail that runs on the edge? If not, you
need to do that as well. because if sendmail accepts the message, but
then postfix later rejects it, the sendmail box will send a bounce, and
this is bad (backscatter).
> This has been the issue I need to resolve and
> what I've been trying to communicate (probably inefficiently. Our
> postfix system is a migration of email from Imail. Our address
> validation worked fine there. Now my issue is one of
> how-to-configure-postfix, but I want to be clear that our mail routing
> is near flawless.
>
> Thanks for your help.. I'll read the filter read me and get back with
> you :)
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
>
>