Discussion:
[Pkg-exim4-users] exim4 & mailman on wheezy
t***@besser.de
2014-05-22 19:44:41 UTC
Permalink
Hi all,

I'm trying to get mailman running with exim4 on wheezy.

Followed /usr/share/doc/mailmain/README.Exim4.Debian.gz with no success.

Mail to an existing mailing list causes following error in 'rejectlog'
of exim4:

"rejected RCPT [...] : Unrouteable address"

How can I start exim4 in debug mode? So that I can see what is causing
the error more precise?

Thanks in advance
Thomas
t***@besser.de
2014-05-23 06:15:24 UTC
Permalink
Post by t***@besser.de
How can I start exim4 in debug mode? So that I can see what is
causing the error more precise?
exim -d+all -bt <address>
Thanks, will try it.
Have you added your mailman domain to /etc/exim4/local_domains?
I don't think to have this ^^^^ file, but exim4 does work correct if
local part is defined in /etc/aliases

My mailman domain is the same as in exim. I don't want a separate
subdomain like 'lists.mydomain.de'

If I understand /usr/share/doc/mailmain/README.Exim4.Debian.gz right,
exim should ask mailman for local parts if non is found in /etc/aliases.
This obviously does not work.

Hopefully the debug output will give me a hint ;-)

Regards
Thomas
Marc Haber
2014-05-23 06:35:08 UTC
Permalink
Post by t***@besser.de
Have you added your mailman domain to /etc/exim4/local_domains?
I don't think to have this ^^^^ file
My bad, it's a local configuration on my mailman host.
Post by t***@besser.de
If I understand /usr/share/doc/mailmain/README.Exim4.Debian.gz
right, exim should ask mailman for local parts if non is found in
/etc/aliases. This obviously does not work.
It should. In which file did you put the routers, and are you running
split or non-split config?

Greetings
Marc
--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 31958061
Nordisch by Nature | How to make an American Quilt | Fax: *49 621 31958062
t***@besser.de
2014-05-23 06:47:23 UTC
Permalink
Post by Marc Haber
Post by t***@besser.de
If I understand /usr/share/doc/mailmain/README.Exim4.Debian.gz
right, exim should ask mailman for local parts if non is found in
/etc/aliases. This obviously does not work.
It should. In which file did you put the routers, and are you running
split or non-split config?
split

cat /etc/exim4/conf.d/router/970_local_mailman
# Messages get sent out with
# envelope from "mailman-***@virtual_domain"
# But mailman doesn't put such addresses
# in the aliases. Recognise these here.
mailman_workaround:
debug_print = "R: mailman_workaround for $local_part@$domain"
domains = +local_domains
require_files = MAILMAN_HOME/lists/$local_part/config.pck
driver = accept
local_parts = mailman
local_part_suffix_optional
local_part_suffix = -bounces : -bounces+* : \
-confirm+* : -join : -leave : \
-subscribe : -unsubscribe : \
-owner : -request : -admin
transport = mailman_transport
group = MAILMAN_GROUP

# We need to handle the mailman-loop separately from the other addresses
# since the loop action is not handled by the wrapper.
mailman_loop_router:
debug_print = "R: mailman_loop for $local_part@$domain"
domains = +local_domains
require_files = MAILMAN_HOME/lists/$local_part/config.pck
driver = accept
local_parts = mailman
transport = mailman_loop_transport
local_part_suffix = -loop
group = MAILMAN_GROUP

# Mailman lists
mailman_router:
debug_print = "R: mailman_router for $local_part@$domain"
domains = +local_domains
condition =
${lookup{$local_part@$domain}lsearch{MAILMAN_HOME/data/virtual-mailman}{1}{0}}
require_files = MAILMAN_HOME/lists/$local_part/config.pck
driver = accept
local_part_suffix_optional
local_part_suffix = -bounces : -bounces+* : \
-confirm+* : -join : -leave : \
-subscribe : -unsubscribe : \
-owner : -request : -admin
transport = mailman_transport
group = MAILMAN_GROUP

Regards
Thomas
Marc Haber
2014-05-23 07:19:57 UTC
Permalink
split
grep dc_use_split_config /etc/exim4/update-exim4.conf.conf

Did you set the MAILMAN_HOME and MAILMAN_GROUP macros?

what does exim4 -bt <your-mailinglist-address> say?

Greetings
Marc
--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 31958061
Nordisch by Nature | How to make an American Quilt | Fax: *49 621 31958062
t***@besser.de
2014-05-23 08:08:58 UTC
Permalink
Post by Marc Haber
split
grep dc_use_split_config /etc/exim4/update-exim4.conf.conf
You made my day! Split was set to 'false',changed it to 'true'
Post by Marc Haber
what does exim4 -bt <your-mailinglist-address> say?
Before: is undeliverable: Unrouteable address
Now: router = mailman_router, transport = mailman_transport

One question for my understanding: where is the exim config file located
if split is set to 'false'?

Thanks for your precise help!

Regards
Thomas
Marc Haber
2014-05-23 08:54:12 UTC
Permalink
Post by t***@besser.de
One question for my understanding: where is the exim config file
located if split is set to 'false'?
It's /etc/exim4/exim4.conf.template.

See also /usr/share/doc/exim4-base/README.Debian.*

Greetings
Marc
--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 31958061
Nordisch by Nature | How to make an American Quilt | Fax: *49 621 31958062
Marc Haber
2014-05-23 05:43:02 UTC
Permalink
Post by t***@besser.de
How can I start exim4 in debug mode? So that I can see what is
causing the error more precise?
exim -d+all -bt <address>

Have you added your mailman domain to /etc/exim4/local_domains?

Greetings
Marc
--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 31958061
Nordisch by Nature | How to make an American Quilt | Fax: *49 621 31958062
Loading...