[Solved] Does someone extent miab with Mailman

Hey there,

did someone successfully extent mailinabox (miab :)) with mailman? Actually I stuck and get “User doesn’t exist” errors.

<newsletter@box.domain.tld> (expanded from <newsletter@domain.tld>): host
    127.0.0.1[127.0.0.1] said: 550 5.1.1 <newsletter@box.domain.tld> User
    doesn't exist: newsletter@box.domain.tld (in reply to RCPT TO command)

For my old box (not mailinabox) everything works fine. But this is also the first time I deal with dovecot / spamd and all the other factors which affect postfix, maybe I’m not smart enought to get this to work :slight_smile:

This is what I did / changed so far

/etc/postfix/main.cf

[...]
myhostname = box.domain.tld
mydomain = domain.tld
[...]
alias_maps = hash:/etc/aliases
alias_database = $alias_maps, hash:/var/lib/mailman/data/aliases
[...]
virtual_alias_maps=hash:/var/lib/mailman/data/virtual-mailman, sqlite:/etc/postfix/virtual-alias-maps.cf
local_recipient_maps=$virtual_mailbox_maps
[...]
mailman_destination_recipient_limit = 1

/var/lib/mailman/Mailman/mm_cfg.py

#-------------------------------------------------------------
# Default domain for email addresses of newly created MLs
DEFAULT_EMAIL_HOST = 'domain.tld'
#-------------------------------------------------------------
# Default host for web interface of newly created MLs
DEFAULT_URL_HOST   = 'lists.domain.tld'
MTA='Postfix'
POSTFIX_STYLE_VIRTUAL_DOMAINS = ['domain.tld']

After a bit googeling I found and followed this doc Mailman Postfix Integration with Mailman generated transport or other maps.

/var/lib/mailman/Mailman/mm_cfg.py

[...]
VIRTUAL_MAILMAN_LOCAL_DOMAIN = 'localhost'
POSTFIX_MAP_CMD = '/var/lib/mailman/data/virtual_to_transport'

/etc/postfix/main.cf

transport_maps=hash:/var/lib/mailman/data/transport-mailman

That changed the error to an unknow user without a domain, but it didn’t solve the problem :frowning:

<newsletter@box.domain.tld> (expanded from <newsletter@domain.tld>):
    unknown user: "newsletter"

Any idea? And yes my stanza’s are created

/var/lib/mailman/data/virtual-mailman

[...]
newsletter@domain.tld              newsletter@localhost
[...]

/var/lib/mailman/data/aliases

[..]
newsletter:             "|/var/lib/mailman/mail/mailman post newsletter"
[...]

/var/lib/mailman/data/transport-mailman

[...]
newsletter@domain.tld              local:
[...]

Thanks !

H8H 8)

It works! Just get it with the following configs to work:

Merge the following lines into /etc/postfix/main.cf

alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
alias_database = $alias_maps
[...]
virtual_alias_maps=hash:/var/lib/mailman/data/virtual-mailman, sqlite:/etc/postfix/virtual-alias-maps.cf
mailman_destination_recipient_limit = 1

Don’t know if the last line is really necessary.

Merge the following lines into /etc/postfix/main.cf

DEFAULT_EMAIL_HOST = 'domain.tld'

MTA='Postfix'
POSTFIX_STYLE_VIRTUAL_DOMAINS = ['domain.tld']

As you can see it’s the recommend mailman setup, don’t know why it doesn’t work the first time.

Cheers