Hi List

Ok, after some more google and try and error. I figured it out. 

So let's put the solution here so google can index it if somebody else
looks for it.

If you use the verify functions to do a call ahead destination
verification for relayed domains, you need to

smtpd_recipient_restrictions =
        [...]
        check_recipient_access regexp:/etc/postfix/noverify
        reject_unverified_recipient

/etc/postfix/noverify
  /^SRS.*/        OK

For local mailboxes you need something similar:

virtual_mailbox_maps = mysql:(whatever you use to query local mailboxes) 
regexp:/etc/postfix/dummy-recipients.regexp

/etc/postfix/dummy-recipients.regexp
  /^SRS.*/        /dev/null

This causes Postfix to accept all emails which match this local mailbox
regexp and make it believe to deliver them to /dev/null, which never
happens as we will extract the real recipient from the SRS header with
MIMEDefang.

Mit freundlichen Grüssen

-Benoît Panizzon-
-- 
I m p r o W a r e   A G    -    Leiter Commerce Kunden
______________________________________________________

Zurlindenstrasse 29             Tel  +41 61 826 93 00
CH-4133 Pratteln                Fax  +41 61 826 93 01
Schweiz                         Web  http://www.imp.ch
______________________________________________________

_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to