>[оверквотинг удален]
>1. Письмо с пабликовских почтовиков (майл.ру и т.д.) доходит до сервака и
>там оседает, а к самому получателю не доходит...отправителю (с майл.ру) приходит
>дилевери:
> The mail
>system
>
><support@mydomain.com>: host mail.mydomain.com[212.95.32.203] said: 550
> 5.1.1 <support@mydomain.com>: Recipient address rejected: User unknown
> in virtual mailbox table (in reply to RCPT
>TO command) конфиг постфикса:
# myhostname should be set to the DNS name of the server
myhostname = mail.mydomain.com
mydomain = mail.mydomain.com
myorigin = $mydomain
# listen for connections on all interfaces
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost
mynetworks = 127.0.0.0/8, 0.0.0.0/0
# mail is stored in maildir format in the home directory of each user
home_mailbox = Maildir/
smtpd_helo_required = yes
smtpd_delay_reject = yes
smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated
smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_data_restrictions = permit_mynetworks, permit_sasl_authenticated
smtpd_end_of_data_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_multi_recipient_bounce
relay_domains= $transport_maps
virtual_relay_domains_maps = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_transport = virtual
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_minimum_uid = 89
virtual_uid_maps = static:89
virtual_gid_maps = static:89
smtpd_sasl_auth_enable = yes
smtpd_sasl_type = dovecot
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
#mysql_virtual_alias_maps.cf
user = postfix
password = xxxxxxxx
hosts = localhost
dbname = postfix
table = alias
select_field = goto
where_field = address
additional_conditions = and active = '1'
#query = SELECT goto FROM alias WHERE address='%s' AND active = '1'
#mysql_virtual_domains_maps.cf
user = postfix
password = xxxxxxxxxx
hosts = localhost
dbname = postfix
table = domain
select_field = domain
where_field = domain
additional_conditions = and backupmx = '0' and active = '1'
#query = SELECT domain FROM domain WHERE domain='%s' AND backupmx = '0' AND active = '1'
#mysql_virtual_mailbox_limit_maps.cf
user = postfix
password = ufy;e,fc89
hosts = localhost
dbname = postfix
table = mailbox
select_field = maildir
where_field = username
additional_conditions = and active = '1'
#query = SELECT quota FROM mailbox WHERE username='%s' AND active = '1'
#mysql_virtual_mailbox_maps.cf
user = postfix
password = ufy;e,fc89
hosts = localhost
dbname = postfix
table = mailbox
select_field = CONCAT(domain,'/',maildir)
where_field = username
additional_conditions = and active = '1'
#query = SELECT CONCAT(domain,'/',maildir) FROM mailbox WHERE username='%s' AND active = '1'