rules for local delivery

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 ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.postfix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-17-2005
Lucifer
 
Posts: n/a
Default rules for local delivery

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.
Reply With Quote
  #2 (permalink)  
Old 12-17-2005
Greg Hackney
 
Posts: n/a
Default Re: rules for local delivery

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.

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:59 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0