>1. Если почта хранится локально, то закомментируйте transport_maps.
>2. Все, что Вам нужно для начала - правильно настроить следующие параметры
>
>virtual_alias_maps
>virtual_mailbox_domains
>virtual_mailbox_maps
что-то я совсем запутался, документация уже просветления не приносит
вроде настроил, получился такой вот конфиг
alias_database = hash:/etc/local/postfix/aliases
alias_maps = hash:/etc/local/postfix/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/local/sbin
config_directory = /usr/local/etc/postfix
content_filter = scan:127.0.0.1:10025
daemon_directory = /usr/local/libexec/postfix
debug_peer_level = 1
default_destination_concurrency_limit = 50
disable_vrfy_command = yes
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
local_destination_concurrency_limit = 10
mail_owner = postfix
mail_spool_directory = /usr/local/mail
mailq_path = /usr/local/bin/mailq
manpage_directory = /usr/local/man
mydestination = localhost
mydomain = domain.com.ua
myhostname = mail.domain.com.ua
mynetworks = 223.255.253.0/24, 127.0.0.0/8, 223.255.231.0/24
mynetworks_style = host
myorigin = $mydomain
newaliases_path = /usr/local/bin/newaliases
notify_classes = delay, policy, protocol, resource, software
queue_directory = /var/spool/postfix
readme_directory = no
receive_override_options = no_address_mappings
relay_recipient_maps = $virtual_mailbox_maps, $virtual_alias_maps
sample_directory = /usr/local/etc/postfix/dist
sendmail_path = /usr/local/sbin/sendmail
setgid_group = maildrop
smtp_always_send_ehlo = yes
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_banner = $myhostname
smtpd_helo_required = yes
smtpd_recipient_restrictions =
check_sender_access mysql:/usr/local/etc/postfix/mysqlLookupMaps/permissions.conf,
permit_sasl_authenticated,
permit_mynetworks,
reject_non_fqdn_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unauth_destination,
reject_unauth_pipelining,
reject_invalid_hostname,
reject_rbl_client bl.spamcop.net
smtpd_restriction_classes = local, other, all
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /usr/local/etc/postfix/ssl/smtpd.cert
smtpd_tls_key_file = /usr/local/etc/postfix/ssl/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_use_tls = yes
virtual_alias_maps = mysql:/usr/local/etc/postfix/mysqlLookupMaps/alias.conf
virtual_create_maildirsize = yes
virtual_gid_maps = static:1984
virtual_mailbox_base = /usr/local/mail
virtual_mailbox_domains = domain.com.ua
virtual_mailbox_limit_maps = mysql:/usr/local/etc/postfix/mysqlLookupMaps/quota.conf
virtual_mailbox_limit_override = yes
virtual_mailbox_maps = mysql:/usr/local/etc/postfix/mysqlLookupMaps/mailbox.conf
virtual_maildir_limit_message = Sorry, the user's maildir has overdrawn his diskspace quota, please try again later.
virtual_minimum_uid = 1000
virtual_overquota_bounce = yes
virtual_uid_maps = static:1984
при несуществующем пользователе получаю
550 Recipient address rejected: User unknown in virtual mailbox table
класс адресов - virtual mailboxes
еще меня смущает $mydestination
да и вообще как на ваш взгляд такая конфигурация?