Народ подскажите плиз
ubuntu 10.04
Postfix перестал перенаправлять письма, алиасы и sender_bcc_maps не работают.
не могу понять где ошибся!root@mail:~# postmap -q test@vrn.ru mysql:/etc/postfix/mysql-virtual-alias-maps.cf
test@vrn.ru,test.backup@vrn.ru
алиас верен, где я еще мог пропустить
smtp inet n - n - - smtpd
-o receive_override_options=no_address_mappings ---ОТКЛЮЧЕНА
postconf -n
#alias_database = hash:/etc/aliases
#alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
enable_original_recipient = no
home_mailbox = Maildir/
inet_interfaces = all
mailbox_command = /usr/lib/dovecot/deliver -c /etc/dovecot/conf.d/01-dovecot-postfix.conf -n -m "${EXTENSION}"
mailbox_size_limit = 0
message_size_limit = 24000000
mydestination = localhost, localhost.$myhostname, $myhostname
mydomain = *****.ru
myhostname = mail.****.ru
mynetworks = 127.0.0.0/8 192.168.0.0/16
myorigin = $mydomain
receive_override_options = no_address_mappings
recipient_delimiter = +
relay_domains = no
relayhost = [**********]
sender_bcc_maps = hash:/etc/postfix/sender_bcc_maps
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_banner = $myhostname Welcome to the Sendmail server
smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated,
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_unauth_pipelining, reject_unauth_destination,
smtpd_reject_unlisted_recipient = yes
smtpd_reject_unlisted_sender = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = permit_mynetworks, hash:/etc/postfix/whitelist, permit_sasl_authenticated, reject_unknown_sender_domain, check_sender_access regexp:/etc/postfix/sender_access,
smtpd_tls_CAfile = /etc/ssl/certs/cacert.pem
smtpd_tls_CApath = /etc/ssl/certs
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/ssl/certs/postfix.pem
smtpd_tls_key_file = /etc/ssl/private/server.key
smtpd_tls_loglevel = 0
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
transport_maps = hash:/etc/postfix/transport
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql-email2email.cf,hash:/etc/postfix/bad_box
virtual_gid_maps = static:5000
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
virtual_minimum_uid = 1000
virtual_transport = dovecot
virtual_uid_maps = static:5000
master.cf
smtp inet n - - - - smtpd
-o content_filter=spamassassin
submission inet n - - - - smtpd
-o content_filter=spamassassin
-o smtpd_tls_security_level=encrypt
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
-o milter_macro_daemon_name=ORIGINATING
smtps inet n - - - - smtpd
-o content_filter=spamassassin
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
-o milter_macro_daemon_name=ORIGINATING
#628 inet n - - - - qmqpd
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - - 300 1 oqmgr
tlsmgr unix - - - 1000? 1 tlsmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - - - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - - - - smtp
-o smtp_fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - - - - showq
error unix - - - - - error
retry unix - - - - - error
discard unix - - - - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - - - - lmtp
anvil unix - - - - 1 anvil
scache unix - - - - 1 scache
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
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=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix - n n - 2 pipe
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}
dovecot unix - n n - - pipe
flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -d ${recipient}
scan unix - - n - 16 smtp
-o smtp_send_xforward_command=yes
127.0.0.1:10026 inet n - n - 16 smtpd
-o content_filter=
-o receive_override_options=
-o smtpd_helo_restrictions=
-o smtpd_client_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks_style=host
-o smtpd_authorized_xforward_hosts=127.0.0.0/8
spamassassin unix - n n - - pipe
user=spamass argv=/usr/bin/spamc -f -e
/usr/sbin/sendmail -oi -f ${sender} ${recipient}
в логах молчек про алиасы, как будто и нет
Oct 24 16:52:07 mail postfix/smtpd[2583]: connect from unknown[192.168.100.81]
Oct 24 16:52:07 mail postfix/smtpd[2583]: 764F440000B37: client=unknown[192.168.100.81]
Oct 24 16:52:07 mail postfix/cleanup[2586]: 764F440000B37: message-id=<526917F7.3090702@vrn.ru>
Oct 24 16:52:07 mail postfix/qmgr[2471]: 764F440000B37: from=<test@vrn.ru>, size=533, nrcpt=1 (queue active)
Oct 24 16:52:07 mail postfix/smtpd[2583]: disconnect from unknown[192.168.100.81]
Oct 24 16:52:07 mail spamd[940]: spamd: connection from localhost [127.0.0.1] at port 47744
Oct 24 16:52:07 mail spamd[940]: spamd: setuid to spamass succeeded
Oct 24 16:52:07 mail spamd[940]: spamd: processing message <526917F7.3090702@vrn.ru> for spamass:1001
Oct 24 16:52:07 mail spamd[940]: spamd: clean message (-1.0/5.0) for spamass:1001 in 0.2 seconds, 519 bytes.
Oct 24 16:52:07 mail spamd[940]: spamd: result: . -1 - ALL_TRUSTED scantime=0.2,size=519,user=spamass,uid=1001,required_score=5.0,rhost=localhost,raddr=127.0.0.1,rport=47744,mid=<526917F7.3090702@vrn.ru>,autolearn=ham
Oct 24 16:52:07 mail spamd[889]: prefork: child states: II
Oct 24 16:52:07 mail postfix/pickup[2470]: BEA0B4000023E: uid=1001 from=<test@evrn.ru>
Oct 24 16:52:07 mail postfix/pipe[2587]: 764F440000B37: to=<test@vrn.ru>, relay=spamassassin, delay=0.31, delays=0.06/0/0/0.24, dsn=2.0.0, status=sent (delivered via spamassassin service)
Oct 24 16:52:07 mail postfix/cleanup[2586]: BEA0B4000023E: message-id=<526917F7.3090702@elis.vrn.ru>
Oct 24 16:52:07 mail postfix/qmgr[2471]: 764F440000B37: removed
Oct 24 16:52:07 mail postfix/qmgr[2471]: BEA0B4000023E: from=<test@vrn.ru>, size=823, nrcpt=1 (queue active)
Oct 24 16:52:07 mail postfix/pipe[2591]: BEA0B4000023E: to=<test@vrn.ru>, relay=dovecot, delay=0.18, delays=0.06/0/0/0.11, dsn=2.0.0, status=sent (delivered via dovecot service)
Oct 24 16:52:07 mail postfix/qmgr[2471]: BEA0B4000023E: removed
<<< mysql> SELECT * FROM view_aliases;
+-------------------------+--------------------------------+
| email | destination |
+-------------------------+--------------------------------+
| test@vrn.ru | test@vrn.ru |
| test@vrn.ru | test.backup@vrn.ru |postfix их воспринимает
root@mail:~# postmap -q test@vrn.ru mysql:/etc/postfix/mysql-virtual-alias-maps.cf
test@vrn.ru,test.backup@vrn.ru