Re[2]: Virtual mailboxes and local delivery

(no email)
Date: Thu Jul 01 2004 - 10:02:38 EDT


> Either use virtual aliases to rewrite the recipient address to an
> address in a local domain, or use per-user transport (introduced in
> Postfix 2.0) to direct mail to some recipient addresses to the local
> transport.

I've attempted to configure per-user transport in Postfix, but without
any success - all mail to returns with following explanation:

<>: User unknown in virtual alias table

Obviously, I've missed something.

Here is my config:

########### /etc/postfix/main.cf

queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
myhostname = mail.example.net
mydomain = example.net
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, $mydomain,
        example.com, example.net
mynetworks = 172.16.1.0/24, 10.1.0.0/16
relay_domains = $mydestination
allow_percent_hack = no
swap_bangpath = no
#local_transport = virtual
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_maps = hash:/etc/postfix/virtual
virtual_mailbox_base = /home/vmail/domains
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
alias_maps = hash:/etc/postfix/aliases
header_checks = regexp:/etc/postfix/header_checks
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
manpage_directory = /usr/share/man
sample_directory = /etc/postfix
readme_directory = /usr/share/doc/postfix-2.1.3-documentation/readme
html_directory = /usr/share/doc/postfix-2.1.3-documentation/html
alias_database = hash:/etc/postfix/aliases
owner_request_special = no
unknown_local_recipient_reject_code = 550
propagate_unmatched_extensions = canonical, virtual

tarnsport_maps = hash:/etc/postfix/tarnsport

########### /etc/postfix/master.cf

smtp inet n - y - - smtpd
  -o content_filter=filter:
pickup fifo n - y 60 1 pickup
cleanup unix n - y - 0 cleanup
qmgr fifo n - y 300 1 qmgr
rewrite unix - - y - - trivial-rewrite
bounce unix - - y - 0 bounce
defer unix - - y - 0 bounce
flush unix n - y 1000? 0 flush
smtp unix - - y - - smtp
showq unix n - y - - showq
error unix - - y - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - y - - lmtp
cyrus unix - n n - - pipe
  flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
uucp unix - n n - - pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail.postfix ($recipient)
ifmail unix - n n - - pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
  flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
filter unix - n n - - pipe
  flags=Rq user=spamfilter argv=/usr/bin/postfilter -f ${sender} ${recipient}
relay unix - - n - - smtp
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
proxymap unix - - n - - proxymap

########### /etc/postfix/transport

        local:

example.net virtual:
example.com virtual:

########### /etc/postfix/aliases

        

...

########### /etc/postfix/aliases

test: "|/var/mailman/mail/mailman post test"

...

Thank's in advance for suggesions.








Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD