On Monday, March 16, 2009 at 12:36 CET,
     Sebastian Chociwski <pl...@pro-activ.pl> 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 u...@virtual-domain.com 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 : u...@virtual-domain.com -> u...@virtual-domain.com
> 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. firstname.lastn...@example.com to
loginn...@example.com.

-- 
Magnus Bäck
mag...@dsek.lth.se

Reply via email to