Re: userbase table and catchall

2015-04-16 Thread Hugo Osvaldo Barrera
On 2015-04-10 11:51, K. Peter wrote:
 [...]
 @example.com   a...@example.com
 

This creates an infinite loop.

j...@example.com maps to a...@example.com
a...@example.com maps to a...@example.com
ad infinitum

What you want is

@example.com   aaa

 User aaa is in the userbase. With some variations I created a second rule
 and placed it after the one above:
 
  [...]


Cheers,

-- 
Hugo Osvaldo Barrera
A: Because we read from top to bottom, left to right.
Q: Why should I start my reply below the quoted text?


signature.asc
Description: PGP signature


Re: userbase table and catchall

2015-04-11 Thread ED Fochler
The “accept” terminology implies a firewall style accept.  This is not quite 
how it functions.  

accept for domain will also reject if not in that domain, and at that point the 
domain is fully accounted for.  Another line attempting to do something for 
that same domain should not have any affect as there is nothing left for it to 
process.

If you want to process different recipients in the same domain with different 
rules, you must specify the “recipient” in the “accept” line to limit the match 
to less than the full domain.

ED.


 On 2015, Apr 11, at 1:46 PM, jseb gmane2...@finiderire.com wrote:
 
 Hello,
 
 I answer to myself.
 
 In fact, swapping two lines in the config file makes the catch-all
 working.
 I don't know why :(
 
 This one won't work:
 accept from any for domain domains alias aliases deliver to maildir
 accept from any for domain domains virtual catchall deliver to maildir
 
 
 This one works:
 accept from any for domain domains virtual catchall deliver to maildir
 accept from any for domain domains alias aliases deliver to maildir
 
 
 Ok… magic ?
 
 
 
 --
 You received this mail because you are subscribed to misc@opensmtpd.org
 To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
 


--
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: userbase table and catchall

2015-04-11 Thread jseb
Hello,

I answer to myself.

In fact, swapping two lines in the config file makes the catch-all
working.
I don't know why :(

This one won't work:
accept from any for domain domains alias aliases deliver to maildir
accept from any for domain domains virtual catchall deliver to maildir


This one works:
accept from any for domain domains virtual catchall deliver to maildir
accept from any for domain domains alias aliases deliver to maildir


Ok… magic ?



--
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org