On Monday, March 16, 2009 at 12:36 CET,
     Sebastian Chociwski <[email protected]> wrote:

> I've some problems setting up my postfix server to deliver mails to
> virtual users.
> As I understand it works that way :
> I send an email to my serwer to [email protected] which is
> redirected in mysql to user_login.
> Problem 1 : postfix tryes to add domain and send mail to :
> user_lo...@my_domain.com -> no such user.

Correct, Postfix qualifies domain-less addresses with @$myorigin.

> I tryed another way : [email protected] -> [email protected]
> and get NO SUCH USER as well.

What's the point in mapping an address to itself?

> I've already created :
> groupadd -g 5000 vmail
> useradd -g vmail -u 5000 vmail -d /home/vmail -m
> and from my userstanding the virtual users maildir should be created
> by postfix ?

You seem to be confusing virtual ALIAS domains with virtual MAILBOX
domains. Virtual aliases translate addresses to other addresses, which
isn't what you want here. Implement virtual_mailbox_maps so that it
returns the path to each user's mailbox. If you want aliases for the
users, implement virtual_alias_maps (but DO NOT list the domain in
virtual_alias_domains) to map e.g. [email protected] to
[email protected].

-- 
Magnus Bäck
[email protected]

Reply via email to