OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Delivery to invalid recipients in virtual domain using commandline allowed

From: Morten Karlsen (morten.karlsentaide.net)
Date: Wed May 03 2006 - 04:40:53 CDT


Victor Duchovni wrote:

>On Mon, Apr 24, 2006 at 01:53:47PM +0200, Morten Karlsen wrote:
>
>
>
>>I'm unable to understand whats happening in one of my servers.
>>
>> - When delivering via port 25, mail is correctly only allowed for valid
>>recipients in a virtual domain. (mysql tables then maildrop)
>>
>> - When trying "echo test|sendmail xxxvirtual.domain.tld" on the server
>>mail is allowed to invalid recipient xxx and others..
>>
>>
>>
>
>Local mail submission is a simple, atomic queue insert operation.
>If the mail is undeliverable to one or more recipients, it will bounce
>back to the sender. This behaviour is correct (all other behaviours
>would be wrong).
>
>
>
Hmmm... then what happens in my server is incorrect.

For now I have just a few "mailboxes" in the virtual domain. When using
telnet to port 25 trying delivery to an invalid recipient I get a "550
<xxxvirtual.domain.tld>: Recipient address rejected: User unknown in
virtual mailbox table". Delivery using commandline "sendmail" to the
same invalid recipient forwards the mail to maildrop as in my configuration.

If I try delivery to the servers local (/etc/passwd mailboxes) - I
correctly get a bounce.

What might be wrong?

Regards,

M.