Hey zhang,
i thought when web mail communicate with postfix in 127.0.0.1 it uses port 25
but still..i cannot communicate from webmail to postfix.
when this option enabled (postscreen_upstream_proxy_protocol = haproxy) in main.cf
you dont see any connection in mail.log (only from haproxy)
but when its disabled:
Apr 18 10:22:44 my postfix/postscreen[14593]: CONNECT from [127.0.0.1]:53472 to [127.0.0.1]:25
Apr 18 10:22:44 my postfix/postscreen[14593]: WHITELISTED [127.0.0.1]:53472
Apr 18 10:22:44 my postfix/smtpd[14594]: connect from my.server.email[127.0.0.1]
Apr 18 10:22:45 my postfix/smtpd[14594]: 0151F5FE20: client=my.server.email[127.0.0.1]
Apr 18 10:22:45 my postfix/cleanup[14597]: 0151F5FE20: message-id=<37be-58f5bf00-1-8c43540@107650857>
Apr 18 10:22:45 my postfix/qmgr[14580]: 0151F5FE20: from=<raz@test.com>, size=972, nrcpt=1 (queue active)
Apr 18 10:22:45 my postfix/smtpd[14594]: disconnect from my.server.email[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Apr 18 10:22:45 my postfix/smtpd[14603]: connect from my.server.email[127.0.0.1]
Apr 18 10:22:45 my postfix/smtpd[14603]: ADB22605B4: client=my.server.email[127.0.0.1]
Apr 18 10:22:45 my postfix/cleanup[14597]: ADB22605B4: message-id=<37be-58f5bf00-1-8c43540@107650857>
Apr 18 10:22:45 my postfix/smtpd[14603]: disconnect from my.server.email[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Apr 18 10:22:45 my postfix/qmgr[14580]: ADB22605B4: from=<raz@local.com>, size=1404, nrcpt=1 (queue active)
Apr 18 10:22:45 my amavis[27494]: (27494-18) Passed CLEAN {RelayedInternal}, MYNETS LOCAL [127.0.0.1]:53472 <raz@local.com> -> <raz@test.com>, Queue-ID: 0151F5FE20, Message-ID: <37be-58f5bf00-1-8c43540@107650857>, mail_id: SK-UO7zCWwfS, Hits: -0.999, size: 972, queued_as: ADB22605B4, 631 ms, Tests: [ALL_TRUSTED=-1,HTML_MESSAGE=0.001]
Apr 18 10:22:45 my postfix/smtp[14598]: 0151F5FE20: to=<raz@test.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.9, delays=0.24/0.01/0/0.65, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as ADB22605B4)
Apr 18 10:22:45 my postfix/qmgr[14580]: 0151F5FE20: removed
Apr 18 10:22:47 my postfix/smtp[14604]: Untrusted TLS connection established to mail.test.com[*.*.*.*]:25: TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)
what could be the problem?
Thank you
Raz