Hi, I set up an owner-listname alias. This is my "postconf" output.
[/etc/postfix]# postconf -d | egrep -i alias alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases, nis:mail.aliases allow_mail_to_commands = alias, forward allow_mail_to_files = alias, forward expand_owner_alias = no local_recipient_maps = proxy:unix:passwd.byname $alias_maps newaliases_path = /usr/bin/newaliases proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $sender_bcc_maps $recipient_bcc_maps $smtp_generic_maps $lmtp_generic_maps unknown_virtual_alias_reject_code = 550 virtual_alias_domains = $virtual_alias_maps virtual_alias_expansion_limit = 1000 virtual_alias_maps = $virtual_maps virtual_alias_recursion_limit = 1000 I send a test email from "[email protected]" to "[email protected]". "alias" is configured in Postfix with two users "user1" and "user2": [/etc/postfix]# cat /etc/aliases alias:user1,user2 "user1" has the full quota. I check the email is queued with an error: [/etc/postfix]# mailq 2CBC12028C 521 Wed Apr 1 18:19:01 [email protected] (temporary failure) [email protected] [email protected] And check Postfix logs: [/etc/postfix]# /var/log/maillog postfix/local[16878]: 9A8C2203DD: to=<[email protected]>, orig_to=<[email protected]>, relay=local, delay=594, delays=594/0/0/0.03, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail -t -a "$EXTENSION" DEFAULT=$HOME/Maildir/ MAILDIR=$HOME/Maildir) postfix/local[16878]: 9A8C2203DD: to=<[email protected]>, orig_to=<[email protected]>, relay=local, delay=594, delays=594/0/0/0.12, dsn=4.3.0, status=deferred (temporary failure) -----Mensaje original----- De: [email protected] [mailto:[email protected]] En nombre de Wietse Venema Enviado el: miƩrcoles, 01 de abril de 2015 22:14 Para: Postfix users Asunto: Re: Duplicate emails Antonio Alberola: > Hello, > > I have a Little problem with duplicate emails. > In my system I configure quota server for Maildir disk. When an email > is sent to an alias who contains a user with a full quota, this email > is queued and the rest of recipients gets a duplicate email. > > As can I do that only the recipient with the full quota, receive the > queued email. You need to set up an owner-listname alias. Wietse ALIASES(5) ALIASES(5) ... The format of the alias database input file is as follows: o An alias definition has the form name: value1, value2, ... ... In addition, when an alias exists for owner-name, delivery diagnostics are directed to that address, instead of to the originator of the mes- sage. The presence of the owner-name alias also prevents Postfix from doing what you describe above. Wietse
