lmtp "Bad IPLOCALPORT value" and "Bad IPREMOTEPORT value" after upgrade 2.4.18 to 2.5.9
ellie at fastmail.com
Sun Aug 28 19:43:45 EDT 2016
The "Bad IP(LOCAL|REMOTE)PORT value" log entries come from sasl, not
from lmtpd itself -- https://git.io/v6jvs, lines 1171 and 1212.
The corresponding calls to sasl_setprop seem to come from lines 1088-9
of lmtpengine.c: https://git.io/v6jJf The two IP address parameters in
this case are the local and remote IP of the socket connection -- so,
lmtpd's IP (local), and postfix's (remote).
It's a shame sasl doesn't log the bad values -- it might have saved some
time to know what they were. On a hunch though, do you have reverse DNS
set up for the IPs postfix and cyrus are using? Is DNS resolution
working correctly on the cyrus server?
I wonder if you also upgraded sasl when you upgraded cyrus? If so, from
which version to which? (Maybe this condition always existed but some
older version of sasl didn't bother reporting it.)
On Fri, Aug 26, 2016, at 11:02 PM, Andy Dorman via Info-cyrus wrote:
> Thanks for checking and good question, yes.
> lmtp 2003/tcp
> I doubt it would have been working fine for all these years with the 2.4
> versions without that. ;-)
> And let me be clear...it still works fine. We just have these annoying
> 2 log messages before auth happens (see below).
> It looks like lmtp is reporting the IPLOCALPORT and IPREMOTEPORT value
> problems before auth is done, but once auth finishes lmtp is happy.
> 2016-08-25T10:27:40.130890-05:00 yorick cyrus/lmtp: Bad
> IPLOCALPORT value
> 2016-08-25T10:27:40.130915-05:00 yorick cyrus/lmtp: Bad
> IPREMOTEPORT value
> 2016-08-25T10:27:40.152889-05:00 yorick cyrus/lmtp: login:
> ophelia.ironicdesign.com [192.168.0.9] cyrus PLAIN User logged in
> I looked at the lmtpengine.c source on github and did not see an obvious
> source for this particular log output...but I am not a C programmer and
> could be completely missing what is going on here.
> Andy Dorman
> On 08/25/2016 06:19 PM, ellie timoney via Info-cyrus wrote:
> > Do you have "lmtp" defined in /etc/services?
> > On Thu, Aug 25, 2016, at 08:44 AM, Andy Dorman via Info-cyrus wrote:
> >> We have a cluster of servers that provide external email security
> >> filtering and then postfix delivers the safe email via lmtp to mailboxes
> >> on the various servers in the cluster (using SASLauth of course).
> >> I just updated our dev server to 2.5.9 and while email delivery seems to
> >> be working fine, now we are seeing these messages every time postfix
> >> delivers email to the upgraded server:
> >> cyrus/lmtp: Bad IPLOCALPORT value
> >> cyrus/lmtp: Bad IPREMOTEPORT value
> >> Our cyrus.conf config for lmtp looked like this at the time of the
> >> change.
> >> lmtp cmd="lmtpd" listen="*:lmtp" prefork=10 maxchild=20
> >> I have also tried replacing the wildcard host with listen="lmtp" and
> >> still receive "Bad IPxxxxPOST value".
> >> So this almost seems like postfix is not communicating the lmtp
> >> correctly and Cyrus is reporting it but then goes on to handle it?
> >> FWIW, our postfix does an LDAP lookup to fetch the hostname to deliver
> >> the email within the cluster. The hostname is plugged into this
> >> result_filter = lmtp:inet:%s:lmtp
> >> So is Cyrus now looking for something different from postfix? ie,
> >> should I be talking to the Postfix folks instead of bothering everyone
> >> here? ;-)
> >> Sincere regards,
> >> --
> >> Andy Dorman
> >> Ironic Design, Inc.
> >> AnteSpam.com
> >> ----
> >> Cyrus Home Page: http://www.cyrusimap.org/
> >> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
> >> To Unsubscribe:
> >> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
> > ----
> > Cyrus Home Page: http://www.cyrusimap.org/
> > List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
> > To Unsubscribe:
> > https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
> To Unsubscribe:
More information about the Info-cyrus