Re: Bare HELO/EHLO
Am 14.10.2014 um 22:32 schrieb superstator .: I have a poorly behaved voicemail system that I am trying to funnel through a postfix relay, and I haven't been able to get past the issue of the voicemail wanting to send a bare EHLO (no hostname supplied at all) at the beginning of every transaction. I started a question over at stackexchange about this (http://unix.stackexchange.com/questions/161901/disable-postfix-helo-checks-completely), and came to the conclusion that it's just not possible with postfix as is. Would this be worth considering as a new feature? It certainly wouldn't make sense as a default option, but as something one could deliberately enable it might be useful. What's the process if somebody wants to code a patch and submit it? you need as always to show a complete log from connection to reject that we can see what really happens as well as "postconf -n" if it is a static IP have you treid to add it to "mynetworks" and as said how does your config of postfix looks like!
Re: Bare HELO/EHLO
On 10/14/2014 3:32 PM, superstator . wrote: > Hello! > I have a poorly behaved voicemail system that I am trying to funnel > through a postfix relay, and I haven't been able to get past the > issue of the voicemail wanting to send a bare EHLO (no hostname > supplied at all) at the beginning of every transaction. > I started a question over at stackexchange about this > (http://unix.stackexchange.com/questions/161901/disable-postfix-helo-checks-completely), > and came to the conclusion that it's just not possible with postfix > as is. > > Would this be worth considering as a new feature? It certainly > wouldn't make sense as a default option, but as something one could > deliberately enable it might be useful. What's the process if > somebody wants to code a patch and submit it? > > Thanks! > Adrian Black It seems this must be some misconfiguration on the voicemail box, but anyway... You can use smtpd_command_filter to hammer it into something acceptable. Something like: # main.cf smtpd_command_filter = pcre:/etc/postfix/smtpd_command_filter.pcre # smtpd_command_filter.pcre # Work around brain-dead empty EHLO /^EHLO$/ EHLO domain.invalid You might need to adjust the expression to match exactly what the voicemail system sends. This feature is available in postfix 2.7 and newer. -- Noel Jones
Re: Bare HELO/EHLO
That worked perfectly. Thanks! On Tue, Oct 14, 2014 at 1:48 PM, Noel Jones wrote: > On 10/14/2014 3:32 PM, superstator . wrote: > > Hello! > > I have a poorly behaved voicemail system that I am trying to funnel > > through a postfix relay, and I haven't been able to get past the > > issue of the voicemail wanting to send a bare EHLO (no hostname > > supplied at all) at the beginning of every transaction. > > I started a question over at stackexchange about this > > ( > http://unix.stackexchange.com/questions/161901/disable-postfix-helo-checks-completely > ), > > and came to the conclusion that it's just not possible with postfix > > as is. > > > > Would this be worth considering as a new feature? It certainly > > wouldn't make sense as a default option, but as something one could > > deliberately enable it might be useful. What's the process if > > somebody wants to code a patch and submit it? > > > > Thanks! > > Adrian Black > > > It seems this must be some misconfiguration on the voicemail box, > but anyway... > > You can use smtpd_command_filter to hammer it into something > acceptable. Something like: > > # main.cf > smtpd_command_filter = pcre:/etc/postfix/smtpd_command_filter.pcre > > # smtpd_command_filter.pcre > # Work around brain-dead empty EHLO > /^EHLO$/ EHLO domain.invalid > > You might need to adjust the expression to match exactly what the > voicemail system sends. > > This feature is available in postfix 2.7 and newer. > > > > -- Noel Jones >
Re: Bare HELO/EHLO
On October 14, 2014 10:32:56 PM "superstator ." wrote: http://unix.stackexchange.com/questions/161901/disable-postfix-helo-checks-completely), and came to the conclusion that it's just not possible with postfix as is. No log, no problem to solve But post atleast postconf -n on pastebin Suggestion is to permit mynetworks in helo checking, as i see the homepage this is not done before the helo check
Re: Bare HELO/EHLO
On 10/14/2014 5:36 PM, Benny Pedersen wrote: > On October 14, 2014 10:32:56 PM "superstator ." > wrote: > >> http://unix.stackexchange.com/questions/161901/disable-postfix-helo-checks-completely), >> >> and came to the conclusion that it's just not possible with >> postfix as is. > > No log, no problem to solve > > But post atleast postconf -n on pastebin > > Suggestion is to permit mynetworks in helo checking, as i see the > homepage this is not done before the helo check mynetworks does not fix illegal syntax. That would have been more clear if full info had been provided. The correct solution is to fix the broken client. When that's not possible, the workaround is to use smtpd_command_filter. -- Noel Jones
Re: Bare HELO/EHLO
On 10/14/2014 6:36 PM, Benny Pedersen wrote: > But post atleast postconf -n on pastebin please don't... Many people will not click on links to unknown things, and it breaks historical references (the links may/will not work forever). Always paste these things inline...