On 16.11.2021 10:22, Matus UHLAR - fantomas wrote: > On 16.11.21 10:06, natan wrote: >> I need some help about uderstand log: >> >> I have >> FILTER smtp-amavis:[127.0.0.1]:10628 >
> you have this where? in master.cf: smtp-amavis unix - - - - 140 smtp -o smtp_data_done_timeout=6000s -o smtp_send_xforward_command=yes -o disable_dns_lookups=yes (in amavis I have 145) > >> this is local haproxy where connect postfix to port 10628 like: >> >> ... >> bind 127.0.0.1:10628 >> >> server amavis1 86.xxx.xxx.125:10628 check maxconn >> server amavis2 86.xxx.xxx.155:10628 check maxconn >> server amavis3 86.xxx.xxx.234:10628 check maxconn >> >> and come back from amavis to postfix is like >> >> 86.xxx.xxx.199:10027 inet n - n - 140 smtpd >> -o smtpd_proxy_timeout=900s >> -o content_filter= >> -o mynetworks_style=host >> -o >> mynetworks=10.0.100.0/24,86.xxx.xxx.199/32,46.xxx.xxx.98/32,86.xxx.xxx.159/32,86.xxx.xxx.125/32,86.xxx.xxx.155/32,86.xxx.xxx.234/32 >> > > I recommend adding something like > -o syslog_name=postfix/filtered I added but nothing But in amavis I found: Nov 16 10:32:17 amavis1 amavis[1501]: (01501-06) smtp resp to MAIL (pip): 421 4.4.2 thebe4.domain.pl Error: timeout exceeded Nov 16 10:32:17 amavis1 amavis[1501]: (01501-06) mail_via_smtp: session failed: No response to RCPT (pip) (<zdzpl...@zdz.gda.pl>), dt: 0.000 s Nov 16 10:32:17 amavis1 amavis[1501]: (01501-06) (!)mail_via_smtp: NOTICE: aborting SMTP session, No response to RCPT (pip) (<zdzpl...@zdz.gda.pl>), dt: 0.000 s Nov 16 10:32:17 amavis1 amavis[1501]: (01501-06) (!)U9YOHznNngXZ FWD from <sm.6286645179.rsezoc459uie1e2p05-mailing=expert4you...@emlgrid.com> -> <zdzpl...@zdz.gda.pl>, BODY=7BIT 451 4.5.0 From MTA(smtp:[86.xxx.xxx.199]:10027) during fwd-rcpt-pip (No response to RCPT (pip) (<zdzpl...@zdz.gda.pl>), dt: 0.000 s): id=01501-06 Nov 16 10:32:17 amavis1 amavis[1501]: (01501-06) Blocked MTA-BLOCKED {TempFailedInbound}, [91.227.202.170]:1909 [91.227.202.170] <sm.6286645179.rsezoc459uie1e2p05-mailing=expert4you...@emlgrid.com> -> <zdzpl...@zdz.gda.pl>, Queue-ID: 4HtgnT4F6Gz20nSb, Message-ID: <6286645179.55132991@emlgrid.com6286645179>, mail_id: U9YOHznNngXZ, Hits: 109.953, size: 160692, dkim_sd=salesmanago:expert4you.pl, 4099 ms Is problem postfix to amavis - but I dont known where > to see clearly when the mail comes from your content filter. > >> Some times I get in logs "Temporary MTA failure on relaying" and I dont >> known where is problem >> 1)in postfix ? >> 2)in amavis ? >> beacuse is to cleary for me >> >> log: > >> Nov 16 09:45:59 thebe4 postfix/smtpd[476]: 4Htfm74ZJCz20nZL: >> client=mail.firmshop.pl[80.211.143.207] >> Nov 16 09:45:59 thebe4 postfix/cleanup[800]: 4Htfm74ZJCz20nZL: >> message-id=<20211116074501-0.1.53.wynw.0.3c4546q...@firmshop.pl> >> Nov 16 09:45:59 thebe4 postfix/cleanup[800]: 4Htfm74ZJCz20nZL: warning: >> header Subject: Fotowoltaika- propozycja instalacji from >> mail.firmshop.pl[80.211.143.207]; from=<cc...@fdomain.pl> >> to=<x...@xxxx.ltd> proto=ESMTP helo=<mail.firmshop.pl> >> Nov 16 09:45:59 thebe4 postfix/qmgr[21807]: 4Htfm74ZJCz20nZL: >> from=<krystian.os...@firmshop.pl>, size=2367, nrcpt=1 (queue active) >> >> Nov 16 09:46:03 thebe4 postfix/smtp[25808]: 4Htfm74ZJCz20nZL: >> to=<x...@xxxx.ltd>, relay=127.0.0.1[127.0.0.1]:10628, delay=4.1, >> delays=0.19/0/0/3.9, dsn=4.4.2, status=deferred (host >> 127.0.0.1[127.0.0.1] said: 421 4.4.2 id=25846-08 - Temporary MTA failure >> on relaying, from MTA(smtp:[86.xxx.xxx.199]:10027): 421 4.4.2 >> thebe4.domain.ltd Error: timeout exceeded (in reply to end of DATA >> command)) > > looks like your incoming smtpd on port 10027 said this to content_filter > which further said this to your postfix. > > however, I don't see where your postfix [86.xxx.xxx.199]:10027 > rejected the > mail. You should have that in logs, and if you do what I recommended > above, > you'll see those errors in log under name "postfix/filtered/smtpd" > > >> Nov 16 09:50:24 thebe4 postfix/qmgr[4959]: 4Htfm74ZJCz20nZL: >> from=<krystian.os...@firmshop.pl>, size=2367, nrcpt=1 (queue active) >> Nov 16 09:50:31 thebe4 postfix/smtp[5087]: 4Htfm74ZJCz20nZL: >> to=<ku...@saletyni.pl>, relay=127.0.0.1[127.0.0.1]:10628, delay=272, >> delays=265/3.9/0/2.6, dsn=2.0.0, status=sent (250 2.0.0 from >> MTA(smtp:[86.xxx.xxx.199]:10027): 250 2.0.0 Ok: queued as >> 4HtfsM1LTZz20nWG) >> Nov 16 09:50:31 thebe4 postfix/qmgr[4959]: 4Htfm74ZJCz20nZL: removed > > after retry the mail went well. > > > > --