
Есть сабж: postfix-2.10.2,1 , нужно сделать дублирование входящих писем.
В манах нашел
Код: Выделить всё
recipient_bcc_maps = hash:/usr/local/etc/postfix/recipient_bcc
Код: Выделить всё
user@mydomain.ru user@mail.ru
Пытаемся отправить тестовое письмо с Gmail-а
в логах
Код: Выделить всё
Nov 14 22:12:53 mail postfix/master[5731]: reload -- version 2.10.2, configuration /usr/local/etc/postfix
Nov 14 22:12:53 mail postfix/anvil[8160]: statistics: max cache size 1 at Nov 14 22:11:13
Nov 14 22:14:04 mail postfix/smtpd[8189]: connect from mail-lb0-f182.google.com[209.85.217.182]
Nov 14 22:14:04 mail postfix/cleanup[8192]: error: open database /usr/local/etc/postfix/recipient_bcc.db: No such file or director
Nov 14 22:14:04 mail postfix/smtpd[8189]: A94035C075: client=mail-lb0-f182.google.com[209.85.217.182]
Nov 14 22:14:04 mail postfix/cleanup[8192]: warning: hash:/usr/local/etc/postfix/recipient_bcc is unavailable.open database /usr/local/etc/postfix/recipient_bcc.db: No such file or directory
Nov 14 22:14:04 mail postfix/cleanup[8192]: warning: hash:/usr/local/etc/postfix/recipient_bcc lookup error for user@mydomain.ru
Nov 14 22:14:04 mail postfix/cleanup[8192]: warning: A94035C075: recipient_bcc_maps lookup problem
Nov 14 22:14:04 mail postfix/smtpd[8189]: disconnect from mail-lb0-f182.google.com[209.85.217.182]
в каталоге /usr/local/etc/postfix/
Код: Выделить всё
[22:50] /usr/local/etc/postfix/>ls -l
total 310
-rw-r--r-- 1 root wheel 11942 8 ноя 18:23 LICENSE
-rw-r--r-- 1 root wheel 1629 8 ноя 18:23 TLS_LICENSE
-rw-r--r-- 1 root wheel 10271 7 ноя 09:24 aliases
-rw-r--r-- 1 root wheel 65536 7 ноя 09:31 aliases.db
-rw-r--r-- 1 root wheel 3547 8 ноя 18:23 bounce.cf.default
-rw-r--r-- 1 root wheel 206 14 ноя 14:18 helo_access
-rw-r--r-- 1 root wheel 65536 14 ноя 14:19 helo_access.db
-rw-r--r-- 1 root wheel 2748 14 ноя 22:16 main.cf
-rw-r--r-- 1 root wheel 32540 8 ноя 18:23 main.cf.default
-rw-r--r-- 1 root wheel 2508 1 ноя 11:00 main_work.cf
-rw-r--r-- 1 root wheel 2343 8 ноя 18:23 makedefs.out
-rw-r--r-- 1 root wheel 6085 8 ноя 18:23 master.cf
-rw-r--r-- 1 root wheel 40 14 ноя 21:41 recipient_bcс
-rw-r--r-- 1 root wheel 65536 14 ноя 21:59 recipient_bcс.db
Код: Выделить всё
[22:54] /usr/local/etc/postfix/>postconf -n
alias_database = hash:/usr/local/etc/postfix/aliases
alias_maps = $alias_database
broken_sasl_auth_clients = yes
command_directory = /usr/local/sbin
config_directory = /usr/local/etc/postfix
daemon_directory = /usr/local/libexec/postfix
data_directory = /var/db/postfix
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5
default_privs = nobody
disable_vrfy_command = yes
html_directory = /usr/local/share/doc/postfix
inet_interfaces = all
inet_protocols = ipv4
mail_owner = postfix
mailbox_size_limit = 0
mailq_path = /usr/local/bin/mailq
manpage_directory = /usr/local/man
message_size_limit = 104857600
mydestination = $mydomain
mydomain = mydomain.ru
myhostname = mydomain.ru
mynetworks = 127.0.0.0/8
myorigin = $mydomain
newaliases_path = /usr/local/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/local/share/doc/postfix
sample_directory = /usr/local/etc/postfix
sendmail_path = /usr/local/sbin/sendmail
setgid_group = maildrop
show_user_unknown_table_name = no
smtp_always_send_ehlo = yes
smtpd_banner = $myhostname ESMTP
smtpd_client_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unknown_address, reject_unknown_sender_domain
smtpd_delay_reject = yes
smtpd_etrn_restrictions = reject
smtpd_hard_error_limit = 8
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname, reject_unknown_helo_hostname
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unknown_recipient_domain, reject_unauth_destination, permit_sasl_authenticated, reject_invalid_hostname, reject_non_fqdn_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_unauth_pipelining, reject_rbl_client sbl.spamhaus.org, reject_rbl_client zen.spamhaus.org
smtpd_reject_unlisted_sender = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = localhost
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = cyrus
smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unknown_recipient_domain, reject_unknown_sender_domain
strict_rfc821_envelopes = yes
unknown_local_recipient_reject_code = 550
unverified_sender_reject_code = 550
[22:54] /usr/local/etc/postfix/>