LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   How to create a Postfix "everyone" alias that points to all users (wildcard)? (https://www.linuxquestions.org/questions/%2Absd-17/how-to-create-a-postfix-everyone-alias-that-points-to-all-users-wildcard-807009/)

andrewggrant 05-10-2010 01:54 PM

How to create a Postfix "everyone" alias that points to all users (wildcard)?
 
Hello,

I am trying to create a Postfix alias called, "everyone" that will redirect mail to every user / alias on my server.

This sounds like a wildcard alias and I am under the impression that Postfix doesn't support wildcards. Is there a way to achieve this result without manually typing in every user in an alias entry?

I plan to apply class restrictions so only a select group of users can send to this alias / address so spam should not be an issue.

Does anyone know how this could work? Is there another / better way to get the same results?

Sincerely,

Andrew Grant

Berhanie 05-10-2010 03:43 PM

Maybe an sql- or ldap table is better? Then, a new query is made everytime the alias is encountered, so you don't have to manually update the mapping.

andrewggrant 05-10-2010 04:04 PM

Quote:

Originally Posted by Berhanie (Post 3963773)
Maybe an sql- or ldap table is better? Then, a new query is made everytime the alias is encountered, so you don't have to manually update the mapping.

Do you have an actual example of an ldap query?

Berhanie 05-10-2010 04:45 PM

You can find example on the postfix site or as part of the installed postfix distribution: see here and here.
This rfc is also useful.


All times are GMT -5. The time now is 06:36 PM.