Thanks for response,
In the meantime I've got emails delivered to vboxes (cleaning up and set up
new main.cf helps)
You have few questions and I am not finish yet so I allow myself to anoy
you a bit more ;)

The reason why I choose mysql is CRM. We use one build for us and I want to
connect mail and CRM
to get email account when new employee joins the team. (New account in CRM
= new working email adress with the same pass).
In DB users we got cells I could use : LOGIN | EMAIL | PASS.
So, heres my questions : 
I already got emails delivered to CRM accounts (email2email -> select email
from users where email=).
Got another DB with forwardings (select destination where source =) to get
aliases info@ will reach my boss.
I all works fine but I don't know if I could connect (AND HOW?) another DB
?
Will it be ok to set up :
virtual_alias_maps=mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql-email2email.cf
,mysql:/etc/postfix/ANOTHER-EMAIL2EMAIL.cf ??

Thanks once more Magnus, hope got a bit more of patience for me :)
PS sorry for my english, haven't use it  for a long time 

 

Magnus Bäck pisze:
> On Monday, March 16, 2009 at 12:36 CET,
>      Sebastian Chociwski  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.
>

-- 
best regards,
Sebastian Chociwski

Reply via email to