[Exim] Mailing lists

Pàgina inicial
Delete this message
Reply to this message
Autor: davidturetsky
Data:  
A: exim-users
Assumpte: [Exim] Mailing lists
Apparently my mailing lists are still not working correctly. I get local delivery ok, but not remotes. First I left 'domains =' blank, then changed it to the literal 'lists.ref.book' contained in the exim specification example, listing that reference in the 'local_domains' config option. After first using 'errors_to = richsob', a local address, I also changed that to the styling shown in the example

I include the relevant parts of exim-conf, and with apologies, the output of exim -d9 -t <subs where subs is the letter with headers contained therein including a 'Bcc: freenewsletter' which references a file, /etc/exim/lists/freenewsletter, containing of list of 30-odd addresses

To my eye, the list is not expanding and instead an attempt is made to deliver mail to freenewsletter@???

As a minor aside, I would also like to change 'sender' to same address as 'From:'. I thought from the documentation that where a 'From:' is provided, this address would be used, which is what I am trying to do

Appreciate any help

David

exim.conf [edited]


######################################################################
#                    MAIN CONFIGURATION SETTINGS                     #
######################################################################


qualify_domain = email.msn.com

local_domains = localhost:lists.ref.book

local_domains_include_host = true
local_domains_include_host_literals = true

never_users = root

host_lookup_nets = 0.0.0.0/0

sender_host_reject_relay = *

trusted_users = mail

smtp_verify = false

gecos_pattern = ^([^,:]*)
gecos_name = $1

received_header_text = "Received: \
          ${if def:sender_fullhost {from ${sender_fullhost} \
          ${if def:sender_ident {(${sender_ident})}}\n\t}\
          {${if def:sender_ident {from ${sender_ident} }}}}\
          by ${primary_hostname} \
          ${if def:received_protocol {with ${received_protocol}}} \
          (Exim ${version_number} #${compile_number} (Debian))\n\t\
          id ${message_id}"


split_spool_directory = true # dt/ 8.15.00

end


#####################################################################
#                 Mailing Lists-added by dt 8.9.00                  #
#####################################################################


# Handle mail distribution to lists [placed ahead of routers configuration]

lists:
driver = forwardfile
domains = lists.ref.book
no_more
require_files = /etc/exim/lists/${local_part}
file = /etc/exim/lists/${local_part}
no_check_local_user
forbid_pipe
forbid_file
errors_to = ${local_part}-request@???

end


Exim version 2.05 debug level 9 uid=0 gid=0
probably Berkeley DB version 1.8x (native mode)
Actual local interface address is 127.0.0.1
Actual local interface address is 63.24.127.172
user name "root" extracted from gecos field "root"
set_process_info: 217 2.05 accepting a local non-SMTP message from <root@???>
Sender: root@???
search_tidyup called
>>Original headers:

From: chiefsob@???
To: chiefsob@???
Bcc: freenewsletter
Subject: richsob.com: 21Aug2000
Date: 21Aug2000

rewrite_one_header: type=F:
From: chiefsob@???
rewrite_one_header: type=T:
To: chiefsob@???
search_tidyup called
rewrite_one_header: type=S:
Sender: root <root@???>
>>Final headers:

P Received: from root by debian with local (Exim 2.05 #1 (Debian))
id 13QjJQ-00003V-00; Sun, 20 Aug 2000 23:35:52 -0500
F From: chiefsob@???
T To: chiefsob@???
* Bcc: freenewsletter
Subject: richsob.com: 21Aug2000
Date: 21Aug2000
I Message-Id: <E13QjJQ-00003V-00@debian>
S Sender: root <root@???>

Data file written for message 13QjJQ-00003V-00
Writing spool header file
Size of headers = 312
LOG: 0 MAIN
  <= root@??? U=root P=local S=3371
exec /usr/sbin/exim -d9 -Mc 13QjJQ-00003V-00      
Exim version 2.05 debug level 9 uid=8 gid=8
probably Berkeley DB version 1.8x (native mode)
Actual local interface address is 127.0.0.1
Actual local interface address is 63.24.127.172
set_process_info:   218 2.05 delivering specified messages
delivering message 13QjJQ-00003V-00
set_process_info:   218 2.05 delivering 13QjJQ-00003V-00
Opened spool file 13QjJQ-00003V-00-H
user=root uid=0 gid=0 sender=root@???
sender_local=1 resent=no ident=root
Non-recipients:
Empty Tree
---- End of tree ----
recipients_count=2
body_linecount=45 message_linecount=53
Delivery address list:
  chiefsob@??? 
  freenewsletter@??? 
locked /var/spool/exim/db/retry.lockfile
opened DB file /var/spool/exim/db/retry: flags=0
unique = chiefsob@???
dbfn_read: key=R:richsob.com
dbfn_read: key=R:chiefsob@???
chiefsob@???: queued for routing
unique = freenewsletter@???
dbfn_read: key=R:email.msn.com
dbfn_read: key=R:freenewsletter@???
freenewsletter@???: queued for routing
After directing:
  Local addresses:
  Remote addresses:
  Failed addresses:
  Addresses to be routed:
    freenewsletter@???
    chiefsob@???
  Deferred addresses:

>>>>>>>>>>>>>>>>>>>>>>>>

routing freenewsletter@???, domain email.msn.com
smarthost router called for freenewsletter@???
route_domain = email.msn.com
routelist_item = * smtp.email.msn.com bydns_a
after handling route_lists items, matched = 1
original hostlist=smtp.email.msn.com options=bydns_a
expanded hostlist="smtp.email.msn.com" options=bydns_a
DNS lookup of smtp.email.msn.com (A) succeeded
Actual local interface address is 127.0.0.1
Actual local interface address is 63.24.127.172
fully qualified name = smtp.email.msn.com
smtp.email.msn.com 207.46.181.11 -1 -6
routed by smarthost router:
deliver to freenewsletter@???
transport: remote_smtp
host smtp.email.msn.com [207.46.181.11]
>>>>>>>>>>>>>>>>>>>>>>>>

routing chiefsob@???, domain richsob.com
smarthost router called for chiefsob@???
route_domain = richsob.com
routelist_item = * smtp.email.msn.com bydns_a
after handling route_lists items, matched = 1
original hostlist=smtp.email.msn.com options=bydns_a
expanded hostlist="smtp.email.msn.com" options=bydns_a
DNS lookup of smtp.email.msn.com (A) succeeded
fully qualified name = smtp.email.msn.com
smtp.email.msn.com 207.46.181.11 -1 -26
routed by smarthost router:
deliver to chiefsob@???
transport: remote_smtp
host smtp.email.msn.com [207.46.181.11]
search_tidyup called
>>>>>> Local deliveries >>>>>>

search_tidyup called
>>>>>> Remote deliveries >>>>>>

remote_smtp transport entered
chiefsob@???
freenewsletter@???
checking status of smtp.email.msn.com
locked /var/spool/exim/db/retry.lockfile
opened DB file /var/spool/exim/db/retry: flags=0
dbfn_read: key=T:smtp.email.msn.com:207.46.181.11
no retry record
smtp.email.msn.com [207.46.181.11] status = usable
delivering 13QjJQ-00003V-00 to smtp.email.msn.com [207.46.181.11] (chiefsob@???, ...)
set_process_info: 218 2.05 delivering 13QjJQ-00003V-00 to smtp.email.msn.com [207.46.181.11] (chiefsob@???, ...)
Connecting to smtp.email.msn.com [207.46.181.11] ... connected
SMTP response timeout = 300
SMTP<< 220-email.msn.com Microsoft SMTP MAIL ready at Sun, 20 Aug 2000 20:31:37 -0700
220 ESMTP spoken here
SMTP>> EHLO debian

SMTP response timeout = 300
SMTP<< 250-email.msn.com Hello [63.24.127.172]
250-PIPELINING
250-SIZE 3145728
250 8bitmime
use_size=1
SMTP>> MAIL FROM:<root@???> SIZE=4428

SMTP response timeout = 300
SMTP<< 250 root@???....Sender OK
SMTP>> RCPT TO:<chiefsob@???>

SMTP response timeout = 300
SMTP<< 250 chiefsob@???
SMTP>> RCPT TO:<freenewsletter@???>

SMTP response timeout = 300
SMTP<< 250 freenewsletter@???
SMTP>> DATA

SMTP response timeout = 300
SMTP<< 354 Start mail input; end with <CRLF>.<CRLF>
SMTP>> writing message and terminating "."

writing data block size=3419 timeout=300
SMTP response timeout = 600
SMTP<< 250 08c0f3731031580CPIMSSMTPU09 Queued mail for delivery
ok=1 send_quit=1 send_rset=0 continue_more=0 yield=0 first_address=0
transport_check_waiting entered
sequence=1 local_max=0 global_max=-1
locked /var/spool/exim/db/wait-remote_smtp.lockfile
opened DB file /var/spool/exim/db/wait-remote_smtp: flags=42
dbfn_read: key=smtp.email.msn.com
no messages waiting for smtp.email.msn.com
SMTP>> QUIT

set_process_info: 218 2.05 delivering 13QjJQ-00003V-00: just tried smtp.email.msn.com [207.46.181.11] for chiefsob@??? (& others): result OK
Leaving remote_smtp transport
set_process_info: 218 2.05 delivering 13QjJQ-00003V-00 (just run remote_smtp for chiefsob@???, ...)
post-process chiefsob@???
chiefsob@??? succeeded: adding to nonrecipients list
LOG: 0 MAIN
=> chiefsob@??? R=smarthost T=remote_smtp H=smtp.email.msn.com [207.46.181.11]
post-process freenewsletter@???
freenewsletter@??? succeeded: adding to nonrecipients list
LOG: 0 MAIN
-> freenewsletter@??? R=smarthost T=remote_smtp H=smtp.email.msn.com [207.46.181.11]
set_process_info: 218 2.05 tidying up after delivering 13QjJQ-00003V-00
Processing retry items
Succeeded addresses:
freenewsletter@???: no retry items
chiefsob@???: no retry items
Failed addresses:
Deferred addresses:
end of retry processing
LOG: 0 MAIN
Completed
end delivery of 13QjJQ-00003V-00