LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Postfix: restrict delivery of mail to users in alias table (https://www.linuxquestions.org/questions/linux-software-2/postfix-restrict-delivery-of-mail-to-users-in-alias-table-280067/)

noeffred 01-20-2005 07:10 AM

Postfix: restrict delivery of mail to users in alias table
 
Hi folks.

I've got a Postfix based mail server with some local users (regular accounts). Several Domains (lets call them domain1.com to domain5.com) point to this system and each user has at least one alias defined in a hash table.
from main.cf:
Code:

...
virtual_alias_maps = hash:/etc/postfix/virtual
...

from /etc/postfix/virtual
Code:

...
christian@domain1.com cherzog
...

First of all: everything works beautifully. The only thing that bothers me is that every username gets a mail adress in every domain.
If I send a mail to cherzog@domain2.com it will be delivered (which is perfectly correct, yet not what I want :().


What I'd like to have is a possibility to limit the receiving adresses to the aliases I have defined before. Local delivery should be untouched by this change.


So, any suggestions?

jlanawalt 02-02-2005 04:05 PM

Re: Postfix: restrict delivery of mail to users in alias table
 
Quote:

The only thing that bothers me is that every username gets a mail adress in every domain.
If I send a mail to cherzog@domain2.com it will be delivered (which is perfectly correct, yet not what I want :().
It sounds like you are using "sendmail-style virtual domains" instead of "postfix-style virtual domains" (virtual alias domains in Postfix 2.0).

The difference is in "sendmail-style" virtual domains you list the domain in main.cf (like maybe by pointing to an old sendmail.cw file?) in the mydestinations parameter. With "postfix-style" virtual domains you use a virtual domain placeholder in the virtual file.

http://lists.infodrom.org/linux-stam...466/04-virtual
http://www.postfix.org/virtual.5.html


All times are GMT -5. The time now is 02:14 PM.