On Wed, Apr 6, 2016, at 11:49 AM, jaso...@mail-central.com wrote:
> If it's seeing the 550, how can I stop exposing/reporting back "from 
> MTA(smtp:[127.0.0.1]:13002):" ?  If it's just internal to my setup, then I 
> don't care.

It's definitely being reported back to the sender.

        <exampl...@example2.com>: host mail01.example.com[192.0.2.20]
            said: 550 5.7.1 id=14949-01 - Rejected by next-hop MTA on relaying, 
from
            MTA(smtp:[127.0.0.1]:13002): 550 5.7.1 (in reply to end of DATA
            command)

And I *finally* found the source of the message.  It's amavis

        amavisd.conf-default
                # %smtp_reason_by_ccat = (
                #   # currently only used for blocked messages only, status 5xx
                #   # a multiline message will produce a valid multiline SMTP 
response
                ...
                #   CC_MTA.',1',    'id=%n - Temporary MTA failure on relaying',
>>>             #   CC_MTA.',2',    'id=%n - Rejected by next-hop MTA on 
>>> relaying',
                #   CC_MTA,         'id=%n - Unable to relay message back to 
MTA',
                ...
                # );

So far though I haven't figure out what I can DO about it.

There's this thread

  Re: [AMaViS-user] Amavis should not send DSN if D_REJECT is active
  https://sourceforge.net/p/amavis/mailman/message/23018531/

that originally made it possible to REJECT.

That's not the problem, though.  It's that that REJECT is making it back out to 
the sender.

In my amavisd.conf if I change

  %smtp_reason_by_ccat = (
    CC_MTA.',2',    'JUNK',
  );


I get just

        <exampl...@example2.com>: host mail01.example.com[192.0.2.20]
            said: 550 5.7.1 JUNK, from MTA(smtp:[127.0.0.1]:13002): 550 5.7.1
            (in reply to end of DATA command)

where that 

        from MTA(smtp:[127.0.0.1]:13002)

is still there.

I think that's "in postfix".  Looking around to see.

Jason

Reply via email to