LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-20-2005, 07:10 AM   #1
noeffred
Member
 
Registered: Mar 2004
Location: Austria
Distribution: Ubuntu 6.0.6, CentOS, Fedora, Debian
Posts: 47

Rep: Reputation: 15
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?
 
Old 02-02-2005, 04:05 PM   #2
jlanawalt
LQ Newbie
 
Registered: Feb 2005
Distribution: Debian
Posts: 8

Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix suspending mail delivery(configured with clamav and amavis) myguest Red Hat 0 08-02-2005 01:17 AM
Postfix - relay mail to internet for specified users FatOldSun Linux - Software 2 03-21-2005 03:32 AM
postfix mail delivery berrance Linux - Networking 4 02-28-2005 06:46 AM
confuguring postfix to use procmail for system wide mail delivery jomy Linux - Networking 0 01-23-2005 07:47 AM
Postfix mail delivery issue kokke Linux - Software 6 05-13-2003 05:50 AM


All times are GMT -5. The time now is 01:38 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration