qmail-send handles virtual domains (by prepending the virtual domain
prefix) before it creates a Variable Envelope Return Path.

This creates problems for me on my master mail server.  For example,
if I am the user "[EMAIL PROTECTED]", and I address a message to
"[EMAIL PROTECTED]", and I request a VERP (say, by setting the "r" flag in
QMAILINJECT), and control/virtualdomains has the following line:

    foo.com:blah

...then the VERP reads "sender-blah-recip=foo.com" instead of the
correct "sender-recip=foo.com".

Incidentally, I noticed this because ezmlm is not removing dead
accounts from my mailing lists because the VERPs are wrong.

The appended patch seems to fix the problem.

 - Pat

diff -u -r1.2 qmail-send.c
--- qmail-send.c        2001/04/23 15:40:29     1.2
+++ qmail-send.c        2001/04/30 17:00:25
@@ -171,6 +171,7 @@
  int j;
  int k;
 
+ recip = stripvdomprepend(recip);
  i = str_len(sender);
  if (i >= 4)
    if (str_equal(sender + i - 4,"-@[]"))

Reply via email to