From Bugzilla Helper: User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.2.19-6.2.7 i586) Description of problem: When an external SMTP session is established, and an address of "xxx" is specified on the MAIL FROM: line, sendmail blindly accepts this as valid. Note that "xxx@localhost" is rejected by sendmail. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. from a remote host, telnet host 25 2. EHLO foobar.redhat.com 3. MAIL FROM: <xxx> Actual Results: 220 caramon.arm.linux.org.uk ESMTP Sendmail 8.11.2/8.11.2; Mon, 1 Oct 2001 13:12:09 +0100 EHLO raistlin.arm.linux.org.uk 250-caramon.arm.linux.org.uk Hello IDENT:rmk.linux.org.uk [192.168.0.4], pleased to meet you 250-ENHANCEDSTATUSCODES 250-8BITMIME 250-SIZE 250-DSN 250-ONEX 250-ETRN 250-XUSR 250-AUTH CRAM-MD5 250 HELP MAIL FROM: <rmk@localhost> 501 5.5.4 <rmk@localhost>... Real domain name required for sender address MAIL FROM: <rmk> 501 5.5.4 <rmk>... Sender ok Expected Results: 220 caramon.arm.linux.org.uk ESMTP Sendmail 8.11.2/8.11.2; Mon, 1 Oct 2001 13:12:09 +0100 EHLO raistlin.arm.linux.org.uk 250-caramon.arm.linux.org.uk Hello IDENT:rmk.linux.org.uk [192.168.0.4], pleased to meet you 250-ENHANCEDSTATUSCODES 250-8BITMIME 250-SIZE 250-DSN 250-ONEX 250-ETRN 250-XUSR 250-AUTH CRAM-MD5 250 HELP MAIL FROM: <rmk@localhost> 501 5.5.4 <rmk@localhost>... Real domain name required for sender address MAIL FROM: <rmk> 501 5.5.4 <rmk>... Real domain name required for sender address Additional info: In /etc/sendmail.cf, checks are made for various "localhost" addresses. "localhost.localdomain" is missing: # handle case of @localhost on address R<@> < $* @ localhost > $: < ? $&{client_name} > < $1 @ localhost > The following line wants adding to this: R<@> < $* @ localhost.localdomain > $: < ? $&{client_name} > < $1 @ localhost.localdomain > Note that localhost.localdomain still remains valid for local use, but not for remote SMTP use.
Fixed in 8.11.6-15 or newer. Thanks, Florian La Roche