I have one further question in this case. Please correct me if I have
misunderstood the setup you described.

My question with this setup is : How do I stop delivery to the primary
domain?

Two possible solutions:

1. List only one of the domains in $mydestination. Only addresses in local (mydestination) domains are passed to the local(8) delivery
      agent and subjected to aliases(5) expansion.

   2. Use a virtual(5) alias to implement the list:

        virtual(5)
            f...@example.com            foo-inter...@localhost

        aliases(5)
            foo-internal:       "|/path args"

        Optional, block direct mail to "foo-internal":

        access(5)
            # For each domain in $mydestination:
            foo-inter...@example.com    REJECT Access denied
            foo-inter...@example.net    REJECT Access denied



Thanks Viktor,

Option two is a possibility. However, it seems overly complex. In this situation there are now three database files to be updated. Rather than just one. If this is the recommended way I will do it this way. It just far more complicated that what I was doing. Is there any reason (sorry I am not a post fix developer) that it is now not possible to specify a non-local domain in the /etc/alias file. Being able to do this was really a good way of dealing with the situation in the previous version. Just one database to update for list removal or addition?

At this point. I will update the three files if that is the recommended way of doing this. I just think the way it used to work was far less complex.

I see that option one is also a possible with some major re- arrangement of the postfix configuration. However, doing this rearrangement means that then running a mailing list on a different domain in the future on this server becomes quite complex again.

Option one should work. I will try option two a this point. If any one has any other ways of doing this then please let me know.

Being able to add in something like mailinglistn...@example.com to the /etc/alias file is a good idea, I am happy to contribute back to post fix project to make this work if others think this is a good idea, provided doing this would not be overly complicated. I really liked the ability to do this in the older version of postfix. It was very nice being able to just set this from a single file in the /etc/ alias/ file. However, I suppose this is a topic for the developer mailing list.

Thanks again, for your suggestions Viktor. With your assistance I will be able to get it working in the very near future! Right now I am very keen to actually get it working ASAP.

I am then happy to spend some time to work it out in a better way even if this means a re-organization.

Again, if anyone has some other suggestions I am listening. Thank you again to everyone who has provided me with some feed back to date!




Reply via email to