Yes, that is how it works. Not quite as one would expect, but it can be worked around.

Dbmail will checkthe aliases first. If one or more aliases exist for [EMAIL PROTECTED], then the mail is sent to those destinations, either a local mailbox, or sent to another email server. If no aliases are found, then the users are checked and delivered if found.

The best way to get the store and forward you are looking for is to have a local alias of [EMAIL PROTECTED] that points to the mailbox and an external alias that points to the other domain. This tricks Dbmail into delivering the mail to the local mailbox because it is delivering it to the 2 aliases, one by the uid of the mailbox, and the other the external address.

dbmail-users -a [EMAIL PROTECTED] -w the_pass -p crypt # Create the local mailbox dbmail-users -c [EMAIL PROTECTED] -s [EMAIL PROTECTED] # Create a local alias - "store" dbmail-users -x [EMAIL PROTECTED] -t [EMAIL PROTECTED] # Create the external alias - "forward"

-Jon

Michael Monnerie wrote:
I have questions regarding users and aliases:

- when I have a user [EMAIL PROTECTED], and an alias that says
[EMAIL PROTECTED] -> [EMAIL PROTECTED]
is it correct behaviour that ONLY [EMAIL PROTECTED] receives the mail? This seems to be the case currently.

- what is the correct way to reach what I wanted to have (the user should receive the e-mail, PLUS it should go to the alias target)

- for vacation: when a user is on vacation, I install the sieve script and do a "vacation" there. Is it possible to use the vacation script, use "redirect" to copy the e-mail to another user and use "stop;" then to prevent the e-mail being stored locally? This is useful when a user in a sales shop is 4 weeks on vacation, they don't want to keep the holiday mails they receive during that time. I could of course test this myself, but as I already had to ask other questions, it saves some time *g*

mfg zmi
------------------------------------------------------------------------

_______________________________________________
DBmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail



_______________________________________________
DBmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail

Reply via email to