This is a discussion on rules for local delivery within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; Hi all. In a virtual host enviroment, I would to set some rules of delivery for one user of one ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi all.
In a virtual host enviroment, I would to set some rules of delivery for one user of one virtual domain. Example1: mail for user1@domain1.tld must be automatically delivered to user1@domain1.tld AND TO global@domain1.tld Example2: mail for info@domain2.tld must be delivered to user1@domain2.tld AND TO user2@domain2.tld BUT NOT TO info@domain2.tld Using procmail solve the problem, but introduce many more problems. I guess I wrong something in procmailrc. Is there another simply method to do it without using procmail? Or what is the right procmailrc code to do it? I spent 3 days over this problem, but I didn't find the solution. Thanks in advance. |
|
|||
|
You could do it using Postfix virtual maps. Reference "man 5 virtual"
For example: --<main.cf>-- virtual_alias_domains = domain1.tld, domain2.tld virtual_alias_maps = hash:/etc/postfix/virtual --</etc/postfix/virtual>-- user1@domain1.tld user1@domain1.tld, global@domain1.tld info@domain2.tld user1@domain2.tld, user2@domain2.tld -- Greg Lucifer wrote: > Hi all. > In a virtual host enviroment, I would to set some rules of delivery for > one user of one virtual domain. > > Example1: > mail for user1@domain1.tld must be automatically delivered to > user1@domain1.tld AND TO global@domain1.tld > > Example2: > mail for info@domain2.tld must be delivered to user1@domain2.tld AND TO > user2@domain2.tld BUT NOT TO info@domain2.tld > > Using procmail solve the problem, but introduce many more problems. I > guess I wrong something in procmailrc. > > Is there another simply method to do it without using procmail? > Or what is the right procmailrc code to do it? > > I spent 3 days over this problem, but I didn't find the solution. > > Thanks in advance. |