Skip to content

Fetchmail in combination with haproxy #1841

@DerOetzi

Description

@DerOetzi

Subject

I would like some feedback concerning a use case

Description

I having a docker-mailserver running behind a haproxy as load-balancer. For this I added the following configurations to postfix-main.cf and postfix-master.cf

postfix-main.cf

postscreen_upstream_proxy_protocol = haproxy

postfix-master.cf

smtps/inet/smtpd_upstream_proxy_protocol=haproxy
submission/inet/smtpd_upstream_proxy_protocol=haproxy

Unfortunately this seems to break fetchmail daemon:

mailserver      | Mar  2 13:20:02 b38fd20b0009 fetchmail[1109]: reading message [email protected]:1 of 3 (28757 octets)Trying to connect to 127.0.0.1/25...connected.
mailserver      | Mar  2 13:20:07 b38fd20b0009 postfix/postscreen[11248]: warning: haproxy read: time limit exceeded
mailserver      | Mar  2 13:20:07 b38fd20b0009 fetchmail[1109]: SMTP< 421 4.3.2 No system resources
mailserver      | Mar  2 13:20:07 b38fd20b0009 fetchmail[1109]: Trying to connect to 127.0.0.1/25...connected.
mailserver      | Mar  2 13:20:12 b38fd20b0009 postfix/postscreen[11248]: warning: haproxy read: time limit exceeded
mailserver      | Mar  2 13:20:12 b38fd20b0009 fetchmail[1109]: SMTP< 421 4.3.2 No system resources
mailserver      | Mar  2 13:20:12 b38fd20b0009 fetchmail[1109]: SMTP connect to localhost failed

Maybe someone knows a solution howto fix this.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/questionSomeone asked a question - feel free to answermeta/closed due to age or inactivityThis issue / PR has been closed due to inactivitymeta/help wantedThe OP requests help from others - chime in! :Dmeta/needs triageThis issue / PR needs checks and verification from maintainersmeta/staleThis issue / PR has become stale and will be closed if there is no further activitypriority/low

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions