Hi,

I'm setting up a postfix serveur.canonical domain is $myhostname. I've
set up a virtual domain (in the configuration below, it's example.com)
with virtual mailboxes.

What is working :
- receive mail on unix account with [EMAIL PROTECTED]
- receive mail for example.com and have them delivered to virtual
mailbox
- set-up a catch-all virtual mailbox for domain example.com
- forward a mail received on [EMAIL PROTECTED] to another address
in another domain

what I want to do and don't find how to do it :

- have a catch-all for example.com forwarded to another domain. thus,
mails received for [EMAIL PROTECTED] is delivered to local virtual
mailbox if it is a known user, otherwise the mail is redirected to
[EMAIL PROTECTED] (the part before @ should be the same).
somewhat like putting "@example.com       @anotherdomain.com" in
virtual_alias_map but also having some known users delivered locally
in virtual mailboxes

- set-up a forward for a user, but keeping a copy of the mail in the
virtual mailbox (i.e. mail sent to [EMAIL PROTECTED] should be
delivered locally in it's virtual mailbox and also forwarded to
[EMAIL PROTECTED])

thanks in advance If you can help me

postfix configuration :

---------------- main.cf ----------------------
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
myorigin = $myhostname
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost
unknown_local_recipient_reject_code = 550
mynetworks = 127.0.0.0/8
virtual_mailbox_domains = example.com
virtual_mailbox_base = /var/mail/vhosts
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
virtual_minimum_uid = 100
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
virtual_alias_maps = hash:/etc/postfix/virtual
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
debug_peer_level = 2
debugger_command =
         PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
         xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.3.3/samples
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
---------------------------------------------------

---------------- vmailbox ----------------------
[EMAIL PROTECTED]    example.com/user1
@example.com             example.com/catch_all
---------------------------------------------------
---------------- virtual ----------------------
[EMAIL PROTECTED]
postmaster<http://groups.google.com/groups/unlock?_done=/group/alt.comp.mail.postfix/browse_thread/thread/2453f0fcfcf27834&msg=331de1a887f58fe1>
@anotherdomain.com
---------------------------------------------------

Reply via email to