Hi, all.

I found an non-expect effect while I use alias in Postfix.

I have two accounts and one alias:
  - User: [EMAIL PROTECTED]
  - User: [EMAIL PROTECTED]
  - Alias: [EMAIL PROTECTED]

I sent mail to both '[EMAIL PROTECTED]' and '[EMAIL PROTECTED]', then user 
'www@' will receive
duplicate mails.

How can i make user 'www@' receive only one copy?

I already have 'receive_override_options = no_address_mappings' in Postfix
main.cf.

--------------- output of postconf -n -------------
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
allow_min_user = no
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
local_recipient_maps = $alias_maps $virtual_alias_maps $virtual_mailbox_maps
mail_owner = postfix
mailbox_command = /usr/libexec/dovecot/deliver
mailbox_size_limit = 15728640
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
maximal_backoff_time = 4000s
message_size_limit = 15728640
mydestination = $myhostname, localhost, localhost.localdomain, 
localhost.$myhostname, mysql:/etc/postfix/mysql_virtual_domains.cf
mydomain = rh523.bibby.org
myhostname = rh523.bibby.org
mynetworks = 127.0.0.0/8
myorigin = rh523.bibby.org
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
receive_override_options = no_address_mappings
recipient_bcc_maps = 
mysql:/etc/postfix/mysql_recipient_bcc_maps_domain.cf, 
mysql:/etc/postfix/mysql_recipient_bcc_maps_user.cf
relay_domains = $mydestination
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sender_bcc_maps = mysql:/etc/postfix/mysql_sender_bcc_maps_domain.cf, 
mysql:/etc/postfix/mysql_sender_bcc_maps_user.cf
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_enforce_tls = no
smtpd_recipient_restrictions = permit_mynetworks, 
reject_unauth_pipelining, reject_unknown_recipient_domain, 
reject_invalid_hostname, reject_unlisted_recipient, 
reject_non_fqdn_sender, reject_non_fqdn_recipient, 
reject_unauth_destination, check_policy_service unix:private/policy-spf, 
check_policy_service inet:127.0.0.1:10031, permit_sasl_authenticated
smtpd_reject_unlisted_sender = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_login_maps = mysql:/etc/postfix/mysql_virtual_sender_maps.cf
smtpd_sender_restrictions = reject_authenticated_sender_login_mismatch, 
reject_sender_login_mismatch, 
reject_unauthenticated_sender_login_mismatch, permit_sasl_authenticated, 
permit_mynetworks
smtpd_tls_cert_file = /etc/postfix/certs/postfixCert.pem
smtpd_tls_key_file = /etc/postfix/certs/postfixKey.pem
smtpd_tls_loglevel = 0
smtpd_tls_security_level = may
tls_random_source = dev:/dev/urandom
transport_maps = mysql:/etc/postfix/mysql_transport_maps.cf
unknown_local_recipient_reject_code = 550
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:2000
virtual_mailbox_base = /home/vmail
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 2000
virtual_transport = dovecot
virtual_uid_maps = static:2000
-------------------------------------------------------

Amavisd entries in Postfix master.cf:
-------------------------------------------------------
smtp-amavis unix -  -   -   -   2  smtp
    -o smtp_data_done_timeout=1200
    -o smtp_send_xforward_command=yes
    -o disable_dns_lookups=yes
    -o max_use=20

127.0.0.1:10025 inet n  -   -   -   -  smtpd
    -o content_filter=
    -o local_recipient_maps=
    -o relay_recipient_maps=
    -o smtpd_restriction_classes=
    -o smtpd_delay_reject=no
    -o smtpd_client_restrictions=permit_mynetworks,reject
    -o smtpd_helo_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o mynetworks_style=host
    -o mynetworks=127.0.0.0/8
    -o strict_rfc821_envelopes=yes
    -o smtpd_error_sleep_time=0
    -o smtpd_soft_error_limit=1001
    -o smtpd_hard_error_limit=1000
    -o smtpd_client_connection_count_limit=0
    -o smtpd_client_connection_rate_limit=0
    -o 
receive_override_options=no_header_body_checks,no_unknown_recipient_checks
-------------------------------------------------------

-- 
Best Regards.

Zhang Huangbin

- Mail Server Solution for Red Hat(R) Enterprise Linux & CentOS 5.x:
  http://rhms.googlecode.com/


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to