Re: [EXIM] exim, subdomains, qualify_domain and majordomo

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Marc Haber
Fecha:  
A: exim-users
Asunto: Re: [EXIM] exim, subdomains, qualify_domain and majordomo
On Sun, 5 Jul 1998 17:26:46 +0100 (BST), Ben wrote:
>On Sun, 5 Jul 1998, Marc Haber wrote:
>> I have set in majordomo.cf:
>> |$mailer = "$sendmail_command -oi -oee -fmajordomo\@lists.mydomain.de";
>> |$bounce_mailer = "$sendmail_command -oi -oee -fmajordomo\@lists.mydomain.de -t";
>
>Stick three backslashes in, not one. (christ knows why.)


This doesn't work either. Also, I have found out that $sender expands
to a qualified address anyway, so tacking the domain on that won't do
anything but harm.

In the meantime, I have done some research. Here is my configuration:

/etc/exim/config says:
|primary_hostname = myhostname.mydomain.de
|qualify_domain = mydomain.de
|local_domains = mydomain.de:myhostname.mydomain.de:lists.mydomain.de
|
|<directors>
|
|system_aliases:
| except_domains = "lists.mydomain.de"
| driver = aliasfile
| file = /etc/aliases
| search_type = lsearch

|
|majordomo_aliases:
| domains = "lists.mydomain.de"
| driver = aliasfile
| file = /usr/local/majordomo/majordomo.aliases
| search_type = lsearch
| user = majordomo
| optional = yes
| qualify_preserve_domain = yes

|
|<rewrite>
|
|*@lists.mydomain.de      "${if eq{1}{0}{}fail}" q
|*@*.mydomain.de          $1@???   tTfFrsbc


majordomo.cf says:
|$whereami = "lists.mydomain.de";
|$whoami_owner = "Majordomo-Owner\@$whereami";
|$sendmail_command = '/usr/local/bin/exim';
|$mailer = "$sendmail_command -oi -oee -f\$sender";
|$bounce_mailer = "$sendmail_command -oi -oee -f\$sender -t";

$sender expands to "list-owner@???", so the
customization is not necessary.

/usr/local/majordomo/majordomo.aliases says:
|test:          "|/usr/local/majordomo/wrapper resend -l test test-list"
|test-list:"|/usr/local/majordomo/wrapper resend -l test-list -h lists.mydomain.de test-list-outgoing"
|test-list-outgoing: :include:/var/spool/majordomo/lists/test-list
|owner-test-list:mh@???
|owner-test-list-outgoing:owner-test-list
|test-list-request: "|/usr/local/majordomo/wrapper majordomo -l test-list"
|test-list-approval:mh@???


After successfully subscribing, sending mail to
test-list@???
yields a bounce.

This is the bounce:
>This message was created automatically by mail delivery software.
>
>A message that you sent could not be delivered to all of its recipients. The
>following address(es) failed:
>
>  test-list-outgoing@???:
>    unknown local-part "test-list-outgoing" in domain "mydomain.de"

>
>------ This is a copy of the message, including all the headers. ------
>
>Return-path: <owner-test-list@???>
>Received: from majordomo by palandt.mydomain.de with local (Exim 1.92 #2)
>    for test-list-outgoing@???
>    id 0ytCIe-0003jA-00; Mon, 6 Jul 1998 16:31:24 +0200
>Received: from bp-ws42.ka.mydomain.de ([192.168.10.56])
>    by myhost.mydomain.de with smtp (Exim 1.92 #2)
>    for test-list@???
>    id 0ytCIb-0003j5-00; Mon, 6 Jul 1998 16:31:21 +0200
>From: "Marc Haber" <mh@???>
>To: <test-list@???>
>Subject: blafasel
>Date: Mon, 6 Jul 1998 16:31:05 +0200
>Message-ID: <001101bda8ea$b5be4080$380aa8c0@???>
>Sender: owner-test-list@???
>Precedence: bulk


exim logs the following:
>1998-07-06 16:31:21 0ytCIb-0003j5-00 <= mh@??? H=bp-ws42.ka.mydomain.de [192.168.10.56] P=smtp S=699 id=001101bda8ea$b5be4080$380aa8c0@??? T="blafasel"
>1998-07-06 16:31:24 0ytCIe-0003jA-00 <= owner-test-list@??? U=majordomo P=local S=943 id=001101bda8ea$b5be4080$380aa8c0@??? T="blafasel"
>1998-07-06 16:31:24 0ytCIe-0003jA-00 ** test-list-outgoing@???: unknown local-part "test-list-outgoing" in domain "mydomain.de"
>1998-07-06 16:31:24 0ytCIe-0003jC-00 <= <> R=0ytCIe-0003jA-00 U=root P=local S=1861 T="Mail delivery failed: returning message to sender"
>1998-07-06 16:31:24 0ytCIe-0003jA-00 Error message sent to owner-test-list@???
>1998-07-06 16:31:24 0ytCIe-0003jA-00 Completed
>1998-07-06 16:31:24 0ytCIb-0003j5-00 => |/usr/local/majordomo/wrapper resend -l test-list -h lists.mydomain.de test-list-outgoing <test-list@???> D=majordomo_aliases T=address_pipe
>1998-07-06 16:31:24 0ytCIb-0003j5-00 Completed
>1998-07-06 16:31:28 0ytCIi-0003jJ-00 <= <> U=virscan P=scanned-ok S=2026 id=E0ytCIe-0003jC-00@??? T="Mail delivery failed: returning message to sender"
>1998-07-06 16:31:29 0ytCIi-0003jJ-00 => mh <mh@???> D=localuser T=local_delivery
>1998-07-06 16:31:29 0ytCIi-0003jJ-00 Completed
>1998-07-06 16:31:29 0ytCIe-0003jC-00 => mh <owner-test-list@???> D=vircheck T=virscan
>1998-07-06 16:31:29 0ytCIe-0003jC-00 Completed



Now, when I change the test-list line in
/usr/local/majordomo/majordomo.aliases to read:
|test-list:"|/usr/local/majordomo/wrapper resend -l test-list -h lists.mydomain.de test-list-outgoing@???"

mail to test-list@??? gets through:
>Return-path: <owner-test-list@???>
>Envelope-to: mh@???
>Delivery-date: Mon, 6 Jul 1998 16:41:48 +0200
>Received: from virscan by myhost.mydomain.de with scanned-ok (Exim 1.92 #2)
>    for mh@???
>    id 0ytCSh-0003m5-00; Mon, 6 Jul 1998 16:41:47 +0200
>Received: from majordomo by myhost.mydomain.de with local (Exim 1.92 #2)
>    for test-list-outgoing@???
>    id 0ytCSe-0003ly-00; Mon, 6 Jul 1998 16:41:44 +0200
>Received: from bp-ws42.ka.mydomain.de ([192.168.10.56])
>    by myhost.mydomain.de with smtp (Exim 1.92 #2)
>    for test-list@???
>    id 0ytCSc-0003lt-00; Mon, 6 Jul 1998 16:41:42 +0200
>From: "Marc Haber" <mh@???>
>To: <test-list@???>
>Subject: blafasel
>Date: Mon, 6 Jul 1998 16:41:28 +0200
>Message-ID: <001301bda8ec$28c3a2e0$380aa8c0@???>
>Sender: owner-test-list@???


exim logs the following:
>1998-07-06 16:41:42 0ytCSc-0003lt-00 <= mh@??? H=bp-ws42.ka.mydomain.de [192.168.10.56] P=smtp S=699 id=001301bda8ec$28c3a2e0$380aa8c0@??? T="blafasel"
>1998-07-06 16:41:45 0ytCSe-0003ly-00 <= owner-test-list@??? U=majordomo P=local S=949 id=001301bda8ec$28c3a2e0$380aa8c0@??? T="blafasel"
>1998-07-06 16:41:48 0ytCSh-0003m5-00 <= owner-test-list@??? U=virscan P=scanned-ok S=1114 id=001301bda8ec$28c3a2e0$380aa8c0@??? T="blafasel"
>1998-07-06 16:41:48 0ytCSh-0003m5-00 => mh <mh@???> D=localuser T=local_delivery
>1998-07-06 16:41:48 0ytCSh-0003m5-00 Completed
>1998-07-06 16:41:48 0ytCSe-0003ly-00 => mh <test-list-outgoing@???> D=vircheck T=virscan
>1998-07-06 16:41:48 0ytCSe-0003ly-00 Completed
>1998-07-06 16:41:48 0ytCSc-0003lt-00 => |/usr/local/majordomo/wrapper resend -l test-list -h lists.mydomain.de test-list-outgoing@??? <test-list@???> D=majordomo_aliases T=address_pipe
>1998-07-06 16:41:48 0ytCSc-0003lt-00 Completed


That shows that exim is invoked as exim -f
owner-test-list@???,
hence qualify_preserve_domain _should_ work in that case. However, it
doesn't, so I might have a configuration error.

For a test, I set qualify_domain=somehost.mydomain.de. Sending mail
to the list address resulted in the following exim log:
>1998-07-06 17:03:36 0ytCno-0003nu-00 <= mh@??? H=bp-ws42.ka.mydomain.de [192.168.10.56] P=smtp S=699 id=001401bda8ef$3791e400$380aa8c0@??? T="blafasel"
>1998-07-06 17:03:38 0ytCnq-0003nz-00 "test-list-outgoing@???" rewritten as "test-list-outgoing@???" by rule 2
>1998-07-06 17:03:38 0ytCnq-0003nz-00 <= owner-test-list@??? U=majordomo P=local S=1011 id=001401bda8ef$3791e400$380aa8c0@??? T="blafasel"
>1998-07-06 17:03:38 0ytCnq-0003nz-00 ** test-list-outgoing@???: unknown local-part "test-list-outgoing" in domain "mydomain.de"
>1998-07-06 17:03:38 0ytCnq-0003o1-00 "Mailer-Daemon@???" rewritten as "Mailer-Daemon@???" by rule 2
>1998-07-06 17:03:38 0ytCnq-0003o1-00 <= <> R=0ytCnq-0003nz-00 U=root P=local S=1932 T="Mail delivery failed: returning message to sender"
>1998-07-06 17:03:38 0ytCnq-0003nz-00 Error message sent to owner-test-list@???
>1998-07-06 17:03:38 0ytCnq-0003o1-00 "mh@???" rewritten as "mh@???" by rule 2
>1998-07-06 17:03:38 0ytCnq-0003nz-00 Completed
>1998-07-06 17:03:38 0ytCno-0003nu-00 => |/usr/local/majordomo/wrapper resend -l test-list -h lists.mydomain.de test-list-outgoing <test-list@???> D=majordomo_aliases T=address_pipe
>1998-07-06 17:03:38 0ytCno-0003nu-00 Completed
>1998-07-06 17:03:41 0ytCnt-0003o8-00 <= <> U=virscan P=scanned-ok S=2026 id=E0ytCnq-0003o1-00@??? T="Mail delivery failed: returning message to sender"
>1998-07-06 17:03:41 0ytCnt-0003o8-00 "mh@???" rewritten as "mh@???" by rule 2
>1998-07-06 17:03:41 0ytCnt-0003o8-00 => mh <mh@???> D=localuser T=local_delivery
>1998-07-06 17:03:41 0ytCnt-0003o8-00 Completed
>1998-07-06 17:03:41 0ytCnq-0003o1-00 => mh <owner-test-list@???> D=vircheck T=virscan
>1998-07-06 17:03:41 0ytCnq-0003o1-00 Completed


Looks like test-list is being qualified to
test-list@??? resp. test-list@???
by qualify_domain before the majordomo_aliases director has a chance
to do its qualify_preserve_domain magic. How do I solve this?

Greetings
Marc

-- 
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber          |   " Questions are the         | Mailadresse im Header
Karlsruhe, Germany  |     Beginning of Wisdom "     | Fon: *49 721 966 32 15
Nordisch by Nature  | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29


--
*** Exim information can be found at http://www.exim.org/ ***