From: Jaume Sabater (no email)
Date: Thu Jul 01 2004 - 08:47:36 EDT
Hi.
I am using Postfix 2.1.1 and Cyrus 2.1.16 with LMTP protocol. I have
been requested to make a backup copy of every single mail that comes in
or goes out. So, I have thought of this hierarchy (as Cyrus mailboxes):
user.received.users # Mail received by normal user accounts
user.received.customers # Mail received by account customers@
user.received.suppliears # Mail received by account suppliers@
user.sent.users # Mail sent by normal user accounts
user.sent.bots # Mail sent somehow automatically
I read about recipient_bcc_maps and sender_bcc_maps, but I don't know
how to make it work the way I need. This is my current setup:
/etc/postfix/main.cf:
recipient_bcc_maps = hash:/etc/postfix/recipient_bcc
/etc/postfix/recipient_bcc:
customers received.customers
suppliers received.suppliers
jsabater received.users
[the rest of users also to received.users]
I can see in the logs that received mails are also sent to the
appropiate account, for instance
customers at regamallorca.com -> received.customers at regamallorca.com
The originar is correctly delivered to customers@, but the copy is
"sent" but never reaches its destiny. I have set the smtp -v option at
master.cf and the log says:
Jul 1 14:42:13 ryoga postfix/lmtp[26013]: 35FED54001FE:
to=<>, relay=127.0.0.1[127.0.0.1],
delay=2, status=sent (250 2.6.0 Ok, id=25649-04, from MTA: 250 Ok:
queued as 0EB305400558)
Jul 1 14:42:13 ryoga postfix/lmtp[26019]: 0EB305400558:
to=<received.users at regamallorca.com>,
relay=/var/run/cyrus/socket/lmtp[/var/run/cyrus/socket/lmtp], delay=0,
status=sent (250 2.1.5 Ok)
Any hints? Here is my postconf -n:
alias_database = hash:/etc/postfix/aliases,
hash:/var/lib/mailman/data/aliases
alias_maps = hash:/etc/postfix/aliases, hash:/var/lib/mailman/data/aliases
append_dot_mydomain = no
biff = no
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/lib/postfix
delay_warning_time = 4h
inet_interfaces = all
local_recipient_maps =
mailbox_size_limit = 0
max_use = 10
mydestination = $myhostname $mydomain, localhost.$mydomain localhost
mydomain = regamallorca.com
myhostname = webmail.regamallorca.com
mynetworks = 127.0.0.0/8, 192.168.0.0/24, 192.168.1.0/24 [..]
mynetworks_style = subnet
myorigin = $mydomain
owner_request_special = no
recipient_bcc_maps = hash:/etc/postfix/recipient_bcc
recipient_delimiter = +
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name (GNU/Debian)
smtpd_data_restrictions = reject_unauth_pipelining, permit
smtpd_helo_required = yes
smtpd_recipient_restrictions = reject_non_fqdn_sender,
reject_non_fqdn_recipient, reject_unknown_sender_domain,
reject_unknown_recipient_domain, permit_mynetworks,
permit_sasl_authenticated, reject_invalid_hostname,
reject_non_fqdn_hostname, reject_unauth_destination,
check_recipient_access pcre:/etc/postfix/recipient_checks.pcre,
check_helo_access hash:/etc/postfix/helo_checks,
check_sender_access hash:/etc/postfix/sender_checks,
check_client_access hash:/etc/postfix/client_checks,
check_client_access pcre:/etc/postfix/client_checks.pcre,
reject_rbl_client relays.ordb.org, permit
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_maps = $virtual_maps, hash:/etc/postfix/aliases
Thanks in advance.
-- Jaume Sabater http://linuxsilo.net "Ubi sapientas ibi libertas"
|
|
|