From: pirovano on
Hello,

i want authed users to only be able to use pre-defined address as
sender
address. Any other non-defined address should result in an error when
trying
to send a mail.

Those definitions my be found in virtusertable, as any user with it's
e-mail
address is listed there.

I started a ruleset that looks up the auth name (auth_authen) in
virtuser(table), but i only get the 1.col. Furthermore i don't know
how to
include the sender addres $&f:

SLocal_check_rcpt
R$* $: <?> $&{auth_authen}
R<?> $+ $: <@> $1
R<@> $+ $: < $(virtuserp $* $: @ $) > $1
R<@> $+ $#error $@ $: "wrong domain"

I want the sender address beeing verified with the 1.col, and auth-
name with
2.col. If both are found on the same line, only then the authed user
should
be granted to send his mail.

Virtusertable example:
alias(a)domain.com user1
second-alias(a)new-domain.com user33

Note: user1, user33 are also auth-names.
Special case with @domain, %1(a)domain or e-mail addresses in 2.col may
be
done in a next step.

Thanks for any help, assistance and time

Lorenzo Pirovano

From: pirovano on
wrong:
R<@> $+ $: < $(virtuserp $* $: @ $) > $1

right, 1.col lookup:
R<@> $+ $: < $(virtuserp $1 $: @ $) > $1