[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postfix-users
Subject:    Transport & virtual domains
From:       François_RONVAUX <francois.ronvaux () free ! fr>
Date:       2004-04-30 22:16:57
Message-ID: 4092D059.9060705 () free ! fr
[Download RAW message or body]

Hello,


I have got some e-mail accounts at different domains.
I retrieve them on my personal mail server by using virtual mailboxes.
I have also set my MUA for using this machine as SMTP server (instead of 
using the SMTP of my ISP) because I do not want to use any "external" relay.

Below are my Postfix's files :


#postconf -n
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
delay_warning_time = 4
home_mailbox = Maildir/
inet_interfaces = $myhostname, localhost.$mydomain
mail_owner = postfix
mail_spool_directory = /var/spool/mail
mailbox_command = /usr/bin/procmail -m /etc/procmailrc
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, $mydomain
mydomain = homelan.net
myhostname = discovery.homelan.net
mynetworks = 127.0.0.0/8, 192.168.0.0/24
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.0.13/README_FILES
sample_directory = /usr/share/doc/postfix-2.0.13/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
unknown_local_recipient_reject_code = 450
virtual_alias_maps = hash:/etc/postfix/virtual_alias
virtual_gid_maps = static:502
virtual_mailbox_base = /home/vmail/virtual_mailbox
virtual_mailbox_domains = hash:/etc/postfix/virtual_domains
virtual_mailbox_maps = hash:/etc/postfix/virtual_mailbox
virtual_minimum_uid = 502
virtual_transport = maildrop
virtual_uid_maps = static:502

#cat /etc/postfix/virtual_domains
domain.fr		placholder

#cat /etc/postfix/virtual_mailbox
tom@domain.fr		domain.fr/tom/Maildir/
jerry@domain.fr		domain.fr/jerry/Maildir/

#cat /etc/postfix/virtual_alias
postmaster@domain.fr	postmaster


Tom can send an e-mail to Jerry and it will be locally processed.
Tom can send an e-mail to foo@example.com and Postfix will send it 
directly to the good domain example.com's SMTP server.
But if Tom sends a message to spike@domain.fr (which is not a virtual 
user on my server), I get this error :

"An error occured while sending mail. The mail server responded: 
<spike@domain.fr>: User unknow in virtual mailbox table. Please check 
the message recipients and try again."

So, I'am looking for a trick to tell Postfix to process on local the 
messages which recipients are my virtual users, and to send to Internet* 
any other e-mails.

I have done some tests with $transport_maps, but without success.


Thanks for your advices, and sorry for the english mistakes  :-)



*and not to my provider's SMTP server.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic