Wietse Venema via Postfix-users:
> duluxoz via Postfix-users:
> > Oh, and the HAProxy health check? The relevant lines in the HAProxy 
> > config file are/were:
> > 
> >      backend submission_server
> >          option smtpchk
> >          server mail mail.local:25587 check send-proxy-v2
> 
> I'll try to reproduce that here.

The problem DOES NOT reproduce with your confiuration. I uswed two
test systems, one for haproxy and one for Postfix (actually I tried
Postfix backends on three different systems but the results were
always the same). 

The test systems below have a dual networking stack, but their
ethernet interfaces have IPv6 disabled.

/etc/postfix/master.cf on ultra.porcupine.org, IPv4-only ethernet, fedora 40
===BEGIN====================================================================
25587      inet  n   -       n       -       -        smtpd
  -o { smtpd_upstream_proxy_protocol = haproxy }
===END======================================================================

Your haproxy.cfg, minus email alert configuration, with your backend
server replaced with mine:

/etc/haproxy/haproxy.cfg on wzv.porcupine.org, IPv4-only ethernet, fedora 40
===BEGIN====================================================================
defaults defaults_common
    # skip the email-alert stuff
    log global
    option dontlognull
    option redispatch
    option tcp-smart-connect
    timeout client 1m
    timeout connect 10s
    timeout queue 30s
    timeout server 1m
    timeout tarpit 10s

defaults defaults_tcp from defaults_common
    mode tcp
    balance leastconn
    option smtpchk
    option tcplog

frontend frontend_mail_submission from defaults_tcp
    bind *:587
    use_backend backend_mail_submission

backend backend_mail_submission from defaults_tcp
    #server mail mail.mydom.local:25587 send-proxy-v2
    server postfix ultra.porcupine.org:25587 check send-proxy-v2
====END==================================================================

I see a health check every 2s, like this:

Feb 25 12:51:55 ultra postfix/smtpd[23699]: connect from 
wzv.porcupine.org[168.100.3.7]
Feb 25 12:51:55 ultra postfix/smtpd[23699]: disconnect from 
wzv.porcupine.org[168.100.3.7] helo=1 quit=1 commands=2

Postfix supports haproxy protocol version 2 as of Postfix 3.5, released
five years ago, and that code has not changed.

So this is one for the journal of irreproducble results.

        Wietse
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to