Aaron Stone wrote: > On Sun, 2007-04-22 at 18:45 +0200, Peter Rabbitson wrote: >> Aaron Stone wrote: >>> On Sat, 2007-04-21 at 18:49 +0200, Peter Rabbitson wrote: >>> >>>> I have some trouble understanding the difference between the alias and >>>> forward mechanisms in dbmail. I am probably confused by the fact that >>>> /etc/aliases handles both in the same manner, making an alias a specific >>>> case of forwarding. How is dbmail different? >>> The code for both is identical until the point that the alias is >>> delivered to an internal user and the forward opens a pipe to sendmail >>> or another program. >>> >>> When using dbmail-users, the different command line options are there >>> because a forward originates from an arbitrary address and ends in an >>> arbitrary address or pipe out, while an aliases attaches an arbitrary >>> address to a user account. >>> >>> (let me know if that explanation made sense!) >>> >> With more testing it made sense. Basically both -t and -s are forwards >> of sorts, but -t <address/pipe/mbox> can only be specified for -x >> <arbitrary address>, whereas -s <address> can be specified only for -c >> <existing user>. > > Because -t / -s are in complementary distribution, they could easily > have been a single option that did the right thing based on whether the > primary option was -x or -c. > > Was this sufficiently documented in the dbmail-users man page, or should > I add some more clarification?
As far as I am concerned - it is not sufficient. The only way someone can guess that -x and -t are related is looking at the Forwards example (the explanation of -x is very vague). Actually the paragraph you wrote above is a perfect explanation. > <snip> > >> * is it possible to create a forward for a _user_ instead of an address? >> For instance user bob gets email for [EMAIL PROTECTED], [EMAIL PROTECTED] and >> [EMAIL PROTECTED], goes on vacation and wants to get all his mails also sent >> to >> [EMAIL PROTECTED] Is there a way to do this in one pass? > > You can do this on a per-user basis with a Sieve script, or on a > per-address basis with a forward. > I didn't know Sieve is _that_ powerful. Thanks for pointing this out. But imho a possibility to say with a single forward rule "user bob gets all mail that user alice gets" would still be very useful. Of course I have no clue how hard would that be to implement, so you can safely ignore my ramblings. Thank you for all the info! Peter _______________________________________________ DBmail mailing list [email protected] https://mailman.fastxs.nl/mailman/listinfo/dbmail
