[AMaViS-user] amavisd & Postfix alias: duplicate mails

This is a discussion on [AMaViS-user] amavisd & Postfix alias: duplicate mails within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; Hi, all. I found an non-expect effect while I use alias in Postfix. I have two accounts and one ...


Go Back   Usenet Forums > Anti-Spam and Anti-Virus Related Forums > Amavis User

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-04-2008
Zhang Huangbin
 
Posts: n/a
Default [AMaViS-user] amavisd & Postfix alias: duplicate mails

Hi, all.

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

I have two accounts and one alias:
- User: www@a.cn
- User: postmaster@a.cn
- Alias: all@a.cn

I sent mail to both 'www@a.cn' and 'all@a.cn', 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,rej ect
-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
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/...fo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply With Quote
  #2 (permalink)  
Old 06-04-2008
Mark Martinec
 
Posts: n/a
Default Re: [AMaViS-user] amavisd & Postfix alias: duplicate mails

Zhang,

> I found an non-expect effect while I use alias in Postfix.
> I have two accounts and one alias:
> - User: www@a.cn
> - User: postmaster@a.cn
> - Alias: all@a.cn
>
> I sent mail to both 'www@a.cn' and 'all@a.cn', then user 'www@' will
> receive duplicate mails.
>
> How can i make user 'www@' receive only one copy?


This is inherent to how Postfix does its alias expansions.

You received a more thorough reply on the postfix-users ML.

Mark

-------------------------------------------------------------------------
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
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/...fo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply With Quote
  #3 (permalink)  
Old 06-04-2008
Zhang Huangbin
 
Posts: n/a
Default Re: [AMaViS-user] amavisd & Postfix alias: duplicate mails

Mark Martinec wrote:
> Zhang,
>
>
>> I found an non-expect effect while I use alias in Postfix.
>> I have two accounts and one alias:
>> - User: www@a.cn
>> - User: postmaster@a.cn
>> - Alias: all@a.cn
>>
>> I sent mail to both 'www@a.cn' and 'all@a.cn', then user 'www@' will
>> receive duplicate mails.
>>
>> How can i make user 'www@' receive only one copy?
>>

>
> This is inherent to how Postfix does its alias expansions.
>
> You received a more thorough reply on the postfix-users ML.
>
> Mark

Yes, i got response in postfix-users@.
Sorry for my cross post, and thanks Mark :)

--
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
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/...fo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:25 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0