sendmail

Dan Busarow dan at dpcsys.com
Fri Sep 1 16:16:20 PDT 2006


On Sep 1, 2006, at 4:23 PM, Peter Jeremy wrote:

> On Fri, 2006-Sep-01 15:54:54 -0600, Steve Suhre wrote:
>> The domain is resolvable. It's a local domain, that's why the server
>> rejects the message. It can see that the username doesn't exist and
>> dumps the connection right away. Here's an example, the mail never  
>> gets
>> sent. "woohoo.com" is the local domain:
>>
>> Fri Sep 01 17:00:35 GMT+00:00 2006Opening connection to MailServer
>> Fri Sep 01 17:00:35 GMT+00:00 2006 Sending Mail message
>> Fri Sep 01 17:00:35 GMT+00:00 2006SMTP msg sent:HELO napserver.DBTDNS
>> Fri Sep 01 17:00:35 GMT+00:00 2006SMTP response220 mail.domain.com  
>> ESMTP Sendmail 8.12.10/8.12.10; Fri, 1 Sep 2006 10:59:12 -0600 (MDT)
>> Fri Sep 01 17:00:35 GMT+00:00 2006SMTP msg sent:MAIL FROM:  
>> name5612 at woohoo.com
>> Fri Sep 01 17:00:35 GMT+00:00 2006SMTP response250 mail.domain.com  
>> Hello 123-45-67-150.woohoo.com [123.45.67.150] (may be forged),  
>> pleased to meet you
>> Fri Sep 01 17:00:35 GMT+00:00 2006SMTP msg sent:RCPT TO:  
>> kripton at hoowoo.com
>> Fri Sep 01 17:00:35 GMT+00:00 2006SMTP response553 5.3.0  
>> name5612 at woohoo.com... User Unknown
>> Fri Sep 01 17:00:35 GMT+00:00 2006SMTP msg sent:DATA
>> Fri Sep 01 17:00:35 GMT+00:00 2006SMTP response503 5.0.0 Need MAIL  
>> before RCPT
>> Fri Sep 01 17:00:35 GMT+00:00 2006SMTP response503 5.0.0 Need MAIL  
>> command
>
> I can't reproduce this with sendmail 8.13 (though I'm not sure I'm
> correctly replicating your environment).  I suggest you either UTSL or
> ask on a sendmail list.

I was able to duplicate it.

It seems to kick when when the sender domain is in your virtusertable  
with entries like

a at woohoo.com a
b at woohoo.com b
@woohoo.com error:nouser User Unknown

If the domain does not have the error condition, i.e. lets the  
address fall through as a local user, then sendmail does not  
complain.  With the error condition you'll see behaviour just as  
described.

This is part of check_mail which you *do not* want to disable.  So  
you'll need to either change your virtusertable to use a catchall

@woohoo.com nobody

or remove the bare @woohoo.com from the virtusertable and let the  
address fall through as a local user.

Dan






More information about the freebsd-hackers mailing list