[Mailman-Users] distributing of the mail is not ok

sfantar at snurf.info sfantar at snurf.info
Mon Jun 9 17:26:57 CEST 2008


Stefan Förster wrote:
>
> 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 ":").
>

Ok, so I executed newaliases.

>> 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".
# postconf alias_maps
alias_maps = hash:/etc/aliases,hash:/var/lib/mailman/data/aliases

There isn't nis:mail.aliases in "alias_maps".

>
> 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". 

postmap: fatal: open /var/lib/mailman/data/virtual-mailman: No such file
or directory

Grr :/

> 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

Best regards,

-- 
http://snurf.info (http://snurf.info/sfantar.gpg)
« A book is like a garden carried in the pocket. »



More information about the Mailman-Users mailing list