0

How to configure postfix as open relay (i want to accept all mail) but use my script foo as tranport and not really relay.

1

Transport maps can be regular expression based, and also support wildcards, so you can use a *. From the documentation on transport maps

   * transport:nexthop
         The  special pattern * represents any address (i.e.
         it functions  as  the  wild-card  pattern,  and  is
         unique to Postfix transport tables).

With that combined with your own mail delivery service, defined in master.cf, you can call your script for the emails. That being said, you don't have to mess with the transport maps, you can simply change the default_transport to be your newly defined mail handler in master.cf.

0

You want to look at the transport table which defines what transport to use for what domains.

  • I looked here before, but i am unable to get it working for all domains.. – tapioco123 Jul 7 '10 at 18:31
0

You could also create an alias like so:

@domain.com: "|/path/to/my/script"

This is what Mailman does.

  • Yes but i want it to work for all domains non only for domain.com – tapioco123 Jul 7 '10 at 18:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.