how to copy all mail to titi@toto.org to toto@free.fr with postfix

This is a discussion on how to copy all mail to titi@toto.org to toto@free.fr with postfix within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; Hello, I've postfix, mysql,maildrop, courier-imap installed with multi domains like toto.org. I'd like that all ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.postfix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-19-2004
Thierry B
 
Posts: n/a
Default how to copy all mail to titi@toto.org to toto@free.fr with postfix

Hello,
I've postfix, mysql,maildrop, courier-imap installed with multi domains
like toto.org.

I'd like that all mails send to titi@toto.org, be copied to titi@free.fr

I've this in my main.cf:

virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-domains.cf
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual.cf
virtual_mailbox_base = /home/vmail
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-maps.cf

In mysql-virtual-maps.cf, I've this
user = vmail
password = tbjb1820
dbname = mail
table = postfix_users
select_field = maildir
where_field = email
additional_conditions = and postfix = 'Y'
hosts = 127.0.0.1

here, I put all my users's mailbox (like titi@toto.org)

In mysql-virtual.cf, I've this

user = vmail
password = tbjb1820
dbname = mail
table = postfix_virtual
select_field = destination
where_field = email
hosts = 127.0.0.1

it's like this in phpmyadmin
email destination
tata@toto.org titi@toto.org

and all mails to tata@toto.org are forwarded to titi@toto.org.

But I can't copy mails for titi@toto.org to titi@free.fr.

If I put that:
email destination
titi@toto.org titi@toto.org
titi@toto.org titi@free.fr

I don't understand why it works but titi@free.fr receives two copies of
the mail...

What do you think of that?

Thanks.

Bye



Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:43 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0