On Mon, Apr 19, 1999 at 12:53:39PM -0500, Greg Moeller wrote:
> I'm still working the last of my problems with integrating the mailserver here.
> 
> I setup a default forward for our main domain and made that domain a virtual 
> domain so that I could control the order of delivery. (alias check before 
> local delivery) That part is working correctly.  What isn't working is if an 
> Email is sent to a nonexistant user.  Instead of the "I'm sorry, he ain't 
> here" message, I get a "I've already tried to deliver this" message.
> What I'm thinking is that the .qmail-default is falling through local delivery 
> and then the rest of the system is trying to deliver it again.
> # cat ~alias/.qmail-default
> | fastforward -d -p /etc/aliases.cdb
> | forward "$DEFAULT"
> 
> What would be the correct way to get delivery to terminate correctly?
> I'll throw a sample header at the end of the Email.

You're correct--when the delivery is to a non-existent local user, the delivery
gets handled by ~alias/.qmail-default again; hence the loop.

What you'd need to do is handle your virtual domains with something like
~alias/.qmail-virtual-default, with the appropriate adjustment to your
virtualdomains file. Then delivery would still fall through to
~alias/.qmail-default, but this would contain different instructions than
~alias/.qmail-virtual-default (or it wouldn't exist at all).

Chris

Reply via email to