Hi,

I have one domain - example.com. And I'd like to have user mailboxes on two
separate machines (policy differences), but ran into a problem with sending
emails from a user on one machine to users on the other machine.
The error message : 550 5.1.1 <remoteu...@example.com>: Recipient address
rejected: User unknown in local recipient table

Partial postconf output:
alias_maps = mysql:/etc/postfix/mysql-alias.cf
mailbox_command = procmail -a "$EXTENSION"
mailbox_transport = cyrus
maximal_queue_lifetime = 5m
mydestination = example.com, localhost.example.com, localhost,
mysql:/etc/postfix/mysql-mydestination.cf
myhostname = mail.example.com
mynetworks = 127.0.0.0/8,
myorigin = /etc/mailname
readme_directory = /usr/share/doc/postfix
receive_override_options = no_address_mappings
recipient_delimiter = +
relayhost = [192.168.1.1]
smtpd_client_restrictions = permit_mynetworks, check_client_access
hash:/etc/postfix/access, cidr:/etc/postfix/client.cidr,
reject_unknown_client_hostname,
permit
smtpd_delay_reject = yes
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks,     reject_non_fqdn_hostname,
    reject_invalid_hostname,     permit
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks,
reject_unauth_destination ...  permit
smtpd_sender_restrictions = hash:/etc/postfix/access_blacklist
smtpd_soft_error_limit = 10
smtpd_use_tls = yes
soft_bounce = no
transport_maps = hash:/etc/postfix/transport
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual.cf,
mysql:/etc/postfix/mysql-virtual-example.cf, hash:/etc/postfix/virtual

Hoping someone knows a good way to send all unknown recepient in local
tables (referred by mysql-virtual.cf) to a smarthost (192.168.1.1), which
would decide whether to forward this to the remote server or answer with a
bounce message.

Sincerely,
Jonathan

Reply via email to