Skip to content

Proxy protocol support #718

@yuanying

Description

@yuanying

Hi, Just a question.

I deployed this docker-mailserver image on kubernetes behind haproxy which sends proxy-protocol.
But seems amavis failed to send email to smtpd.
Please see following log messages.

Sep 7 05:53:59 mailserver postfix/smtpd[1062]: warning: haproxy read: unexpected EOF

I guess 127.0.0.1:10025 expect to receive proxy protocol but amavis didn't send.
I think I should modify master.cf file before launching.

So Is there any official way to configure master.cf file after docker-mailserver is deployed?

Thanks.

Full Log

Sep  7 05:53:20 mailserver postfix/smtpd[1053]: connect from st41p57im-ztfb14240501.us.com[17.36.64.138]
Sep  7 05:53:21 mailserver postfix/smtpd[1053]: C991582EA6D697E4B6C12: client=st41p57im-ztfb14240501.us.com[17.36.64.138]
Sep  7 05:53:22 mailserver postfix/cleanup[1058]: C991582EA6D697E4B6C12: message-id=<[email protected]>
Sep  7 05:53:22 mailserver opendkim[184]: C991582EA6D697E4B6C12: st41p57im-ztfb14240501.us.com [17.36.64.138] not internal
Sep  7 05:53:22 mailserver opendkim[184]: C991582EA6D697E4B6C12: not authenticated
Sep  7 05:53:22 mailserver opendkim[184]: C991582EA6D697E4B6C12: DKIM verification successful
Sep  7 05:53:22 mailserver opendkim[184]: C991582EA6D697E4B6C12: s=04042017 d=us.com SSL
Sep  7 05:53:22 mailserver opendmarc[196]: implicit authentication service: mail.lazy.work
Sep  7 05:53:22 mailserver opendmarc[196]: C991582EA6D697E4B6C12: us.com pass
Sep  7 05:53:22 mailserver postfix/qmgr[1033]: C991582EA6D697E4B6C12: from=<[email protected]>, size=2180, nrcpt=1 (queue active)
Sep  7 05:53:23 mailserver postfix/smtpd[1053]: disconnect from st41p57im-ztfb14240501.us.com[17.36.64.138] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 commands=7
Sep  7 05:53:59 mailserver amavis[1045]: (01045-01) (!)rw_loop: leaving rw loop, no progress, last event (select) 35.011 s ago
Sep  7 05:53:59 mailserver postfix/smtpd[1062]: warning: haproxy read: unexpected EOF
Sep  7 05:53:59 mailserver postfix/smtpd[1062]: connect from unknown[unknown]
Sep  7 05:53:59 mailserver postfix/smtpd[1062]: disconnect from unknown[unknown] commands=0/0
Sep  7 05:53:59 mailserver amavis[1045]: (01045-01) (!)O440fHx7_I21 FWD from <[email protected]> -> <[email protected]>,  451 4.5.0 From MTA() during fwd-connect (No greeting, dt: 35.012 s): id=01045-01
Sep  7 05:53:59 mailserver amavis[1045]: (01045-01) Blocked MTA-BLOCKED {TempFailedInbound}, [17.36.64.138]:36637 [17.36.64.138] <[email protected]> -> <[email protected]>, Queue-ID: C991582EA6D697E4B6C12, Message-ID: <[email protected]>, mail_id: O440fHx7_I21, Hits: -0.322, size: 2367, dkim_sd=04042017:us.com, 37021 ms
Sep  7 05:53:59 mailserver postfix/smtp[1034]: C991582EA6D697E4B6C12: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=39, delays=1.6/0.01/0.01/37, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 id=01045-01 - Temporary MTA failure on relaying, From MTA() during fwd-connect (No greeting, dt: 35.012 s): id=01045-01 (in reply to end of DATA command))

ConfigMap I used

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions