[Mailman-Users] exim testing error
Vidiot
brown at mrvideo.vidiot.com
Mon Jun 30 04:28:27 CEST 2008
Mark Sapiro responded:
>Also note in the howto, the following
>
> # Domains that your lists are in - colon separated list
> # you may wish to add these into local_domains as well
> domainlist mm_domains=list.example.com
I have the following set in my configure:
domainlist mm_domains=vidiot.com
domainlist local_domains = vidiot.com
The 2nd was already in the configure file.
>and the reference to
>
> domains = +mm_domains
>
>in the router definition. This is alluded to much more subtly in sec
>6.2.1 of the manual.
Section 6.2.1 doesn't exist.
But I have the following:
begin routers
mailman_router:
driver = accept
domains = +mm_domains
require_files = MM_LISTCHK
[...]
I get the following error when I try and test:
/usr/exim/bin/exim -bt testlist-users
2008-06-29 20:53:47 Exim configuration error in line 563 of /usr/exim/configure:
option setting expected: {eq{$sender_host_address}{::1}}}{yes}{no}}
It didn't complain about this line:
condition = ${if or{{eq{$sender_host_address}{127.0.0.1}}
So, I'm guessing it isn't complaining about $sender_host_address, instead
it is complaining about the {::1} part.
My complete configure file is below, less comments and blank lines. I'd
say about half of the configuration is mailman related :-)
MB
--
e-mail: vidiot at vidiot.com /~\ The ASCII
[I've been to Earth. I know where it is. ] \ / Ribbon Campaign
[And I'm gonna take us there. Starbuck 3/25/07] X Against
Visit - URL: http://vidiot.com/ / \ HTML Email
MM_HOME=/usr/local/mailman
MM_WRAP=MM_HOME/mail/mailman
MM_LISTCHK=MM_HOME/lists/${lc::$local_part}/config.pck
MM_USER=mailman
MM_GROUP=mailman
domainlist mm_domains=vidiot.com
domainlist local_domains = vidiot.com
domainlist relay_to_domains =
hostlist relay_from_hosts = 127.0.0.1 : mrvideo.vidiot.com
acl_smtp_rcpt = acl_check_rcpt
acl_smtp_data = acl_check_data
never_users = root
host_lookup = *
rfc1413_hosts = *
rfc1413_query_timeout = 5s
ignore_bounce_errors_after = 2d
timeout_frozen_after = 7d
begin acl
acl_check_rcpt:
accept hosts = :
accept hosts = 127.0.0.1
deny message = Restricted characters in address
domains = +local_domains
local_parts = ^[.] : ^.*[@%!/|]
deny message = Restricted characters in address
domains = !+local_domains
local_parts = ^[./|] : ^.*[@%!] : ^.*/\\.\\./
accept local_parts = postmaster
domains = +local_domains
endpass
message = unknown user
verify = recipient
require verify = sender
accept hosts = +relay_from_hosts
control = submission
accept authenticated = *
control = submission
require message = relay not permitted
domains = +local_domains : +relay_to_domains
require verify = recipient
warn message = X-WhitelistedRCPT-nohdrfromcallback: Yes
condition = \
${if and {{match{$local_part}{(.*)-bounces\+.*}} \
{exists {MM_HOME/lists/$1/config.pck}}} \
{yes}{no}}
deny message = "Recipient never sends mail so cannot cause bounces"
senders = :
domains = +mm_domains
condition = ${if exists{MM_LISTCHK} {yes}{no}}
deny message = "Recipient never sends mail so cannot cause bounces"
senders = :
domains = +mm_domains
local_parts = \N^.*-(admin|join|leave|owner|request)$\N
deny message = "Recipient never sends mail so cannot cause bounces"
senders = :
domains = +mm_domains
local_parts = \N^.*-(subscribe|unsubscribe)$\N
accept condition = \
${if and {{match{$local_part}{(.*)-bounces\+.*}} \
{exists {MM_HOME/lists/$1/config.pck}}} \
{yes}{no}}
deny !local_parts = *-bounces : *-bounces+*
!verify = sender/callout=30s,defer_ok
accept
acl_check_data:
deny !condition = $header_X-WhitelistedRCPT-nohdrfromcallback:
!verify = header_sender/callout=90s
accept
begin routers
mailman_router:
driver = accept
domains = +mm_domains
require_files = MM_LISTCHK
local_part_suffix_optional
local_part_suffix = -admin : \
-bounces : -bounces+* : \
-confirm : -confirm+* : \
-join : -leave : \
-owner : -request : \
-subscribe : -unsubscribe
transport = mailman_transport
mailman_verp_router:
driver = dnslookup
condition = ${if or{{eq{$sender_host_address}{127.0.0.1}}
{eq{$sender_host_address}{::1}}}{yes}{no}}
domains = !+local_domains:!+mm_domains
ignore_target_hosts = <; 0.0.0.0; \
64.94.110.11; \
127.0.0.0/8; \
::1/128;fe80::/10;fe \
c0::/10;ff00::/8
senders = "*-bounces@*"
transport = mailman_verp_smtp
dnslookup:
driver = dnslookup
domains = ! +local_domains
transport = remote_smtp
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
no_more
system_aliases:
driver = redirect
allow_fail
allow_defer
data = ${lookup{$local_part}lsearch{/etc/aliases}}
file_transport = address_file
pipe_transport = address_pipe
userforward:
driver = redirect
check_local_user
file = $home/.forward
no_verify
no_expn
check_ancestor
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply
localuser:
driver = accept
check_local_user
transport = local_delivery
cannot_route_message = Unknown user
begin transports
mailman_transport:
driver = pipe
command = MM_WRAP \
'${if def:local_part_suffix \
{${sg{$local_part_suffix}{-(\\w+)(\\+.*)?}{\$1}}} \
{post}}' \
$local_part
current_directory = MM_HOME
home_directory = MM_HOME
user = MM_USER
group = MM_GROUP
mailman_verp_smtp:
driver = smtp
return_path = \
${local_part:$return_path}+$local_part=$domain@${domain:$return_path}
max_rcpt = 1
headers_remove = Errors-To
headers_add = Errors-To: ${return_path}
remote_smtp:
driver = smtp
local_delivery:
driver = appendfile
file = /var/mail/$local_part
delivery_date_add
envelope_to_add
return_path_add
address_pipe:
driver = pipe
return_output
address_file:
driver = appendfile
delivery_date_add
envelope_to_add
return_path_add
address_reply:
driver = autoreply
begin retry
begin rewrite
begin authenticators
More information about the Mailman-Users
mailing list