On 4/10/2012 4:36 AM, jonas wrote:
> Hello,
> 
> I need to configure the following setup with postfix:
> 
> filter mail for '[email protected]' based on sender address:
>  - if the sender address is inside a list of serveral 100.000 priorized
>    addresses, simply forward the mail to '[email protected]'
>  - otherwise send an autoreply to the sender telling him that he
> needs to
>    register at the ticketsystem first

You can use smtpd_restriction_classes to accept only registered
senders for that recipient.  Unregistered senders will get a reject
notice (not an autoreply) which can include your own brief "please
register <here>" message.  Rejecting unwanted messages, rather than
accepting and then trying to reply to the possibly-forged sender, is
also excellent for performance and security.  Once the mail is
accepted, a simple alias [email protected] ->
[email protected] is all that's needed.
Documentation: http://www.postfix.org/RESTRICTION_CLASS_README.html

If you really want an autoreply with a fully-customized message,
you'll need to do that outside of postfix.



  -- Noel Jones

Reply via email to