Re: recipient question

Thu, 24 Mar 2016 05:53:17 -0700

Thanks for these two answers!

On Thu, Mar 24, 2016, Edgar Pettijohn wrote:
> I've used it in the past.  The following should work.

> accept from any for domain <domains> recipient <tablename> deliver to mbox

On Thu, Mar 24, 2016, Gilles Chehade wrote:
> You can't name a table after a keyword:
> 
> recipient <recipient>

Actually that was a typo, the table is named <recipients>. Serves me right for
re-typing an example, which I usually know better than to try.

The syntax errors were caused by the order of things in the grammar.

As Edgar pointed out, the syntax he gave does work once you get past #1, BUT
it does not work if you put the aliases back in, unless you put it just the 
right place:

WORKS:
accept from any for domain <domains> recipient <alt-mda-users> deliver to lmtp 
localhost:5555
accept from any for domain <domains> alias <aliases> deliver to mbox

FAILS:
accept from any for domain <domains> alias <aliases> recipient <alt-mda-users> 
deliver to lmtp localhost:5555
accept from any for domain <domains> alias <aliases> deliver to mbox

WORKING SMTPD ACCEPT RECIPIENT SYNTAX:
accept from any for domain <domains> recipient <alt-mda-users> alias <aliases> 
deliver to lmtp localhost:5555
accept from any for domain <domains> alias <aliases> deliver to mbox

I hope that, despite requiring the mildly counter-intuitive order, that it will 
expand
the aliases before selecting the recipients?
Guess I'll find out later today when/if I get the alternate experimental MDA up 
and running,
now that I know what I was trying here is at least plausible.

Thanks

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

Reply via email to