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

Martin Simovic martinsimovic at gmail.com
Thu May 22 19:53:34 CEST 2008


Hi,

why do you feel the need to fix this? it´s how it is supposed to work,
at SMTP time there is a check whether given user (user at example.com)
exists;
if not - bounce, if it does - maildir path is expanded (as configured
in dovecot)

mail sent from localhost (unix shell) is not checked at SMTP time
(there is none) only the path is expanded (so it creates dir structure
/home/vmail/example.com/user automatically)

in real world scenario there are no emails sent from localhost (and
recipient example.com) therefore, no need to fix anything.

M.


On Thu, May 22, 2008 at 4:40 PM, Dimitris H <dhatz-forums at hyper.net> wrote:
> 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
>
> _______________________________________________
> Workaround-chitchat mailing list
> Workaround-chitchat at workaround.org
> http://workaround.org/cgi-bin/mailman/listinfo/workaround-chitchat
>
>


More information about the Workaround-chitchat mailing list