-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Amitai Schlair wrote: > On Feb 27, 2007, at 7:26 PM, Dennis Kavadas wrote: > >> i'm having a problem with the syntax of the .qmail file for realuser >> (listed in /var/qmail/control/virtualdomains) >> >> ---.qmail--- >> |preline /usr/local/src/tmda-1.1.9/bin/tmda-filter -S >> /home/mydomian/tmda-cgi/stubs/vmailmgr-vdir.sh >> |forward "$DEFAULT"@exchangeserver.mydomain.org >> >> ---error--- >> deferral: listvdomain:_unknown_user_'olduser'/ >> preline:_fatal:_unable_to_copy_input:_broken_pipe/ > > According to "tmda-filter --help", -S expects a filename to follow. > So you probably want the stuff currently on the second line to > instead come at the end of the first line.
I initially thought that, given the formatting of the original email, but I don't think that's the problem, because: > when a delivery is attempted for a unknown user, the last line of > the .qmail states "|forward" but of course there is no message to > forward so it results in a broken pipe error... This implies it works OK for a known user, but fails for unknown users. As such, the error is probably triggered by the unknown user condition inside the vmailmgr-vdir.sh script. Anyway, I don't think there's really anything that can be done about the error; since the user is unknown, there must be some kind of error raised. That said, perhaps instead of just breaking the pipe, tmda-filter could return a specific error code to qmail which it would handle more gracefully, but I have no idea if qmail looks at return codes in the face of broken pipes - if it doesn't, tmda-filter would have to read in the whole message, ignore it, then exit with the appropriate error code, which would be a pain I suspect. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD4DBQFF5SURhk3bo0lNTrURAj/RAJ9LLC/PIGmbpCNhD/OIJQa+UyC9HACYh67W 2WHRcZRYADRqtRnolNh9dg== =Z+mX -----END PGP SIGNATURE----- _________________________________________________ tmda-workers mailing list ([email protected]) http://tmda.net/lists/listinfo/tmda-workers
