stevenma <[EMAIL PROTECTED]> writes:

> All my lists work fine, except sending email to the "owner" of the list,
> it seems qmail is tacking an extra "-" onto the
> "[EMAIL PROTECTED]" address, so instead of
> "[EMAIL PROTECTED]" I get
> "[EMAIL PROTECTED]" why is it adding the "-" after the
> real owner name?

It's doing VERP, variable envelope return path, so that bounces go back to
an address that includes the address that bounced for easier handling with
scripts.  If the address bounces in the SMTP dialog rather than being
successfully delivered to the remote system, the message will be sent to
owner-listname-; otherwise, it will go to owner-listname-user=example.com
or the like.

> pirate qmail: 950107531.504978 info msg 63248: bytes 887 from
> <[EMAIL PROTECTED]@[]> qp 3289 uid 5002

The -@[] is the magic token telling it to use VERP.

> which is of course bounced as an unknown message.

That shouldn't have caused a bounce, although I'm wondering why the
message is going out as owner-testlist instead of testlist-owner like
qmail normally does.

> In /var/qmail/alias I have the aliases setup as:

> .qmail-testlist-owner
> .qmail-owner-testlist (symlink to .qmail-testlist-owner)
> .qmail-testlist-owner-default (same symlink as above)

> all of them have my email address as one line in the file.

You may need .qmail-owner-testlist-default if you want to put the "owner-"
part first.  That's a sendmailism, though, and qmail normally puts the
list name first.  See also dot-qmail(5):

     When qmail-local forwards a message as instructed in .qmail-ext (or
     .qmail-default), it checks whether .qmail-ext-owner exists.  If so,
     it uses local-owner@domain as the envelope sender for the forwarded
     message.  Otherwise it retains the envelope sender of the original
     message.  Exception:  qmail-local always retains the original
     envelope sender if it is the empty address or #@[], i.e., if this is
     a bounce message.

     qmail-local also supports variable envelope return paths (VERPs):  if
     .qmail-ext-owner and .qmail-ext-owner-default both exist, it uses
     local-owner-@domain-@[] as the envelope sender.  This will cause a
     recipient recip@reciphost to see an envelope sender of
     local-owner-recip=reciphost@domain.

-- 
Russ Allbery ([EMAIL PROTECTED])         <URL:http://www.eyrie.org/~eagle/>

Reply via email to