Christoph Erdle wrote:
I want to hold mails for a specific recipient which is an alias to multiple addresses so admin interaction is required to send to this alias. Problem is that the mail is now held twice (following is the output of mailq and releasing the message):

Feb 12 12:40:08 [postfix/smtpd] NOQUEUE: hold: RCPT from localhost[127.0.0.1]: <t...@team-erdle.de>: Recipient address testing hold with alias; from=<i...@team-erdle.de> to=<t...@team-erdle.de> proto=ESMTP helo=<localhost>

Your reinjection postfix listenter (defined in master.cf) is using the same access map. See the README.postfix included with amavisd-new for suggested master.cf entries, or at a minimum add the following to your master.cf listener entry.

# master.cf
...
127.0.0.1:10025 inet  n  -   n  -   -  smtpd
(you should already have something similar to the above)
(add these entries just underneath)
   -o mynetworks=127.0.0.0/8
   -o smtpd_client_restrictions=
   -o smtpd_helo_restrictions=
   -o smtpd_sender_restrictions=
   -o smtpd_data_restrictions=
   -o smtpd_end_of_data_restrictions=
   -o smtpd_recipient_restrictions=permit_mynetworks,reject

note there is no space in "permit_mynetworks,reject".
You will probably want to add -o receive_override_options=... if you haven't already, and there are some other parameters that may be useful to you. See the README.postfix included with amavisd-new for details.
http://www.ijs.si/software/amavisd/README.postfix.html

  -- Noel Jones

Reply via email to