[Workaround.org] Local delivery to non-existant virtual mailbox, when email is sent from Unix shell account on localhost

Dimitris H dhatz-forums at hyper.net
Thu May 22 17:40:20 CEST 2008


Hi List,

I noticed that e-mail sent to virtual mailbox on a mailserver setup with 
the ISP-style Postfix+Dovecot Howto (thanks Christoph!), will be 
accepted and delivered, even to non-existant (undefined in Mysql tables) 
mailboxes, if and only if I send them from a shell account (Unix shell 
prompt).

The following example is using the sample domain "example.com" as 
created in the ISP-style-Howto:

$ mail nonexist at example.com
Subject: test
test

The address nonexist at example.com doesn't exist either as a virtual 
mailbox or as an alias. Yet it is delivered "successfully":

/May 22 18:07:15 myserver postfix/pickup[6593]: 797E1230AF: uid=1000 
from=<myshellacct>
May 22 18:07:15 myserver postfix/cleanup[6638]: 797E1230AF: 
message-id=<20080522150715.797E1230AF at myserver.mydomain.tld>
May 22 18:07:15 myserver postfix/qmgr[6594]: 797E1230AF: 
from=<myshellacct at myserver.mydomain.tld>, size=330, nrcpt=1 (queue active)
May 22 18:07:16 myserver postfix/smtpd[6643]: connect from 
localhost[127.0.0.1]
May 22 18:07:16 myserver postfix/smtpd[6643]: 46B2A230AB: 
client=localhost[127.0.0.1]
May 22 18:07:16 myserver postfix/cleanup[6638]: 46B2A230AB: 
message-id=<20080522150715.797E1230AF at myserver.mydomain.tld>
May 22 18:07:16 myserver postfix/qmgr[6594]: 46B2A230AB: 
from=<myshellacct at myserver.mydomain.tld>, size=788, nrcpt=1 (queue active)
May 22 18:07:16 myserver postfix/smtpd[6643]: disconnect from 
localhost[127.0.0.1]
May 22 18:07:16 myserver amavis[6566]: (06566-01) Passed CLEAN, 
<myshellacct at myserver.mydomain.tld> -> <nonexist at example.com>, 
Message-ID: <20080522150715.797E1230AF at myserver.mydomain.tld>, mail_id: 
If-bXtgZzrhZ, Hits: -0.574, size: 330, queued_as: 46B2A230AB, 786 ms
May 22 18:07:16 myserver postfix/smtp[6640]: 797E1230AF: 
to=<nonexist at example.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.83, 
delays=0.03/0.01/0.01/0.79, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued 
as 46B2A230AB)
May 22 18:07:16 myserver postfix/qmgr[6594]: 797E1230AF: removed
May 22 18:07:16 myserver postfix/pipe[6644]: 46B2A230AB: 
to=<nonexist at example.com>, relay=dovecot, delay=0.03, 
delays=0.01/0.01/0/0.01, dsn=2.0.0, status=sent (delivered via dovecot 
service)
May 22 18:07:16 myserver postfix/qmgr[6594]: 46B2A230AB: removed/

Dovecot on-the-fly creates the files under ~vmail, instead of bouncing 
the message:
/
/home/vmail/example.com# find nonexist/
nonexist/
nonexist/cur
nonexist/dovecot.index.log
nonexist/new
nonexist/new/1211468836.P6645Q0M314050.myserver
nonexist/dovecot-uidlist
nonexist/tmp
nonexist/dovecot.index/

But, email received from all other sources e.g. SMTP (anything other 
than a local shell account) to non-existant virtual mailboxes, is 
bounced correctly. Only when sent from shell-account on localhost is 
there a problem.

Any suggestions to fix it?

Thanks in advance for any insights,
Dimitris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://workaround.org/pipermail/workaround-chitchat/attachments/20080522/3417639d/attachment.htm 


More information about the Workaround-chitchat mailing list