I've used it in the past. The following should work.
table tablename file:/etc/mail/something
accept from any for domain <domains> recipient <tablename> deliver to mbox
/etc/mail/something
u...@something.com
On 03/23/16 17:31, Ian Darwin wrote:
At this time, the list is very low volume, feel free to introduce yourself
;-)
Hola! This is Ian Darwin, sometime OpenBSD committer (ports, mostly, but I also
wrote
the old file(1) command "a while ago"), Java geek, tech instructor/author, and
photographer.
I've been running smtpd on my OpenBSD laptop for I think a couple of years
and in production on a low-volume server for maybe a year (it's been up for
220 days so maybe 3/4 of a year, I dunno).
I'm asking if anybody has a working example with "recipient"?
What I planned to do was divert one person's (myself, #1 guinea pig) incoming
mail to a different MDA for testing a new MDA. I tried taking this existing
line:
accept from any for domain <domains> alias <aliases> deliver to mbox
and cloning it, the first version to add "recipient { "per...@dom.ain" }"
and the second as above. I tried putting the recipient after the domain, e.g.,
accept from any for domain <domains> recipient <recipient> alias <aliases>
deliver to mbox
Why after? Because the man page says "Further filtering may be achieved on
specific recipients if desired" and "further" implies after - the man page
has no example of this (whether you write the table as a table<x> rule or
inline should not matter, but I did try both before sending this post).
Also tried putting it in a variety of other places, replacing some phrases, etc.
I could not come up with anything that didn't give the dreaded :-) "smtpd.conf:24:
syntax error"
Is this the right tool for this job, and, if so, how does it actually work?
Thanks if anyone can steer me right on this.
Ian
--
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org