[Mailman-Users] distributing of the mail is not ok
Stefan Förster
cite+mailman-users at incertum.net
Mon Jun 9 17:00:10 CEST 2008
Am 09.06.2008 um 16:05 schrieb sfantar at snurf.info:
> Stefan Förster wrote:
>>
>> Am 09.06.2008 um 10:16 schrieb sfantar at snurf.info:
>>
>>> I installed mailman. I created a mailing list to test if mailman
>>> works
>>> fine or not. Well, mailman seems alsmot to work but there is just a
>>> problem.
>>>
>>> Let's assume, I have a mailing list : "test". And the mail used
>>> for this
>>> mailing list is "test at lists.mydomain.tld", the members have to send
>>> their mails at test at lists.mydomain.tld, sure, this email exists,
>>> but if
>>> a member sends a mail to this address, the mail sticks with the
>>> folder
>>> of the email (/var/spool/vmail/lists.mydomain.tld/test/new/), and
>>> so the
>>> email is not distributed to the list.
>>>
>>> I didn't find a solution, I think this is a problem with the
>>> configuration... Any ideas?
>>
>>
>> Obviously, you did not configure your MTA (Sendmail, Exim, Postfix)
>> to
>> forward those mails to Mailman. Instead, the mail is delivered to the
>> correspondent maildir in /var/spool. Mailman integration for various
>> MTAs is described here:
>>
>> http://www.list.org/mailman-install/mail-server.html
>>
>
> Oops, yeah, I've forgotten to configure my MTA. So, it's done, alsmot:
>
> Jun 9 15:50:46 kaduma-hosting postfix/smtpd[28245]: warning: database
> /etc/aliases.db is older than source file /etc/aliase
>
> => "postmap aliases" :
>
> "[...]
> Jun 9 16:01:32 kaduma-hosting postfix/postmap[29980]: warning:
> aliases,
> line 27: record is in "key: value" format; is this an alias file?
> Jun 9 16:01:32 kaduma-hosting postfix/postmap[29980]: warning:
> aliases,
> line 30: record is in "key: value" format; is this an alias file?
> Jun 9 16:01:32 kaduma-hosting postfix/postmap[29980]: warning:
> aliases,
> line 31: record is in "key: value" format; is this an alias file?
> Jun 9 16:01:32 kaduma-hosting postfix/postmap[29980]: warning:
> aliases,
> line 32: record is in "key: value" format; is this an alias file?
> Jun 9 16:01:32 kaduma-hosting postfix/postmap[29980]: warning:
> aliases,
> line 33: record is in "key: value" format; is this an alias file?
> [...]"||
The correct command to create a hash file out of a file that is (a)
listed in Postfix's "alias_database" setting is to execute the command
"newaliases". "postmap" OTOH doesn't know how to deal with files
containing "key: value" pairs (note the ":").
> Jun 9 15:50:46 kaduma-hosting postfix/smtpd[28245]: warning:
> dict_nis_init: NIS domain name not set - NIS lookups disabled
> Jun 9 15:50:46 kaduma-hosting postfix/smtpd[28245]: fatal: open
> database /var/lib/mailman/data/virtual-mailman.db: No such file or
> directory
>
> => I've tried many solutions... but it's not fixed.
For the first warning, try to remove the "nis:mail.aliases" entry in
"alias_maps". Execute "postconf alias_maps" to see the current
setting ,then explicitely set it in a way that doesn't include
"nis:mail.aliases".
For the second warning you obviously have to create the "database"
file for "/var/lib/mailman/data/virtual-mailman". See below.
> Im my main.cf (for postfix) :
>
> virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_aliases.cf,
> mysql:/etc/postfix/mysql-virtual_aliases_mailbox.cf,
> hash:/var/lib/mailman/data/aliases
> virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_mailboxes.cf,
> hash:/var/lib/mailman/data/virtual-mailman
It's just plain wrong to reference "/var/lib/mailman/data/virtual-
mailman" in virtual_mailbox_maps. Remove it.
Execute "postmap /var/lib/mailman/data/virtual-mailman". Inspect "/var/
lib/mailman/data/aliases". If this is an alias file and you need the
entries, include it in "alias_maps" and "alias_database". Execute
"newaliases" if needed. If you don't need "/var/lib/mailman/data/
aliases", remove any references to it. Restart Postfix.
Cheers
Stefab
--
Stefan Förster http://www.incertum.net/ Public Key: 0xBBE2A9E9
Mac OS X: Almost perfect. Almost.
More information about the Mailman-Users
mailing list