[Mailman-Users] unknown user: "|/usr/local/mailman/mail/mailman post mylist at mydomain.com"
Mark Sapiro
mark at msapiro.net
Sat Nov 27 04:40:26 CET 2010
On 11/26/2010 6:57 PM, Gustavo Delfino wrote:
> As directed, I have moved my mailman/data/aliases from
virtual_alias_maps to alias_maps. Also I have configured the additional
domain as instructed. I now feel that I am getting closer, but
unfortunately it didn't worked.
>
> Then I read the "Mailing Lists" section in
http://www.postfix.org/VIRTUAL_README.html and realized that I also
needed to put additional aliases in the /etc/postfix/virtual_alias file.
I did that and it still doesn't work. It seems like postfix is ignoring
the non-virtual aliases (yes I did run postmap .., newaliases, postalias
& postfix restart).
You shouldn't need to do this. If Mailman is properly configured it will
create the necessary virtual mappings in data/virtual-mailman.
> This is what I get in the /var/log/maillog when I send a message for
distribution:
>
[...]
> Nov 26 21:32:59 admin postfix/qmgr[10066]: BA4F22FA801F:
from=<abcdef at gmail.com>, size=2458, nrcpt=1 (queue active)
> Nov 26 21:32:59 admin postfix/virtual[10100]: BA4F22FA801F:
to=<testlist5 at gdsolutions.com.ve>, relay=virtual, delay=0.02,
delays=0.01/0.01/0/0.01, dsn=5.1.1, status=bounced (unknown user:
"testlist5 at gdsolutions.com.ve")
> Nov 26 21:32:59 admin postfix/cleanup[10095]: BE13E2FA801E:
message-id=<20101127020259.BE13E2FA801E at admin.gdsolutions.com.ve>
There is apparently no entry of the form
testlist5 at gdsolutions.com.ve testlist5
in data/virtual-mailman to map the virtual domain address
testlist5 at gdsolutions.com.ve to the local (aliased) address testlist5.
However, there is such an entry in /etc/postfix/virtual_alias according
to the below, so I don't know why this didn't work unless you neglected
to run
postmap /etc/postfix/virtual_alias
after adding those entries.
> The updated postfix configuration:
>
> # postconf -n
> alias_database = hash:/etc/aliases
> alias_maps = hash:/etc/aliases, hash:/usr/local/mailman/data/aliases
> command_directory = /usr/sbin
> config_directory = /etc/postfix
> daemon_directory = /usr/libexec/postfix
> debug_peer_level = 2
> html_directory = no
> inet_interfaces = all
> mail_owner = postfix
> mailq_path = /usr/bin/mailq.postfix
> manpage_directory = /usr/share/man
> mydestination = $myhostname, localhost.$mydomain, localhost
> mydomain = gdsolutions.com.ve
> myhostname = admin.gdsolutions.com.ve
> mynetworks_style = host
> myorigin = $mydomain
> newaliases_path = /usr/bin/newaliases.postfix
> queue_directory = /var/spool/postfix
> readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
> sample_directory = /usr/share/doc/postfix-2.3.3/samples
> sendmail_path = /usr/sbin/sendmail.postfix
> setgid_group = postdrop
> unknown_local_recipient_reject_code = 550
> virtual_alias_maps = hash:/etc/postfix/virtual_alias
hash:/usr/local/mailman/data/virtual-mailman
> virtual_gid_maps = static:517
> virtual_mailbox_base = /home/vmail
> virtual_mailbox_domains = /etc/postfix/virtual_domains
> virtual_mailbox_maps = hash:/etc/postfix/vmailbox
> virtual_uid_maps = static:506
>
> # cat /etc/postfix/virtual_domains
> gdsolutions.com.ve
> bosque-encantado.org.ve
>
> # cat /etc/postfix/virtual_alias
> (...)
> testlist5 at gdsolutions.com.ve testlist5
> testlist5-admin at gdsolutions.com.ve testlist5-admin
> testlist5-bounces at gdsolutions.com.ve testlist5-bounces
> testlist5-confirm at gdsolutions.com.ve testlist5-confirm
> testlist5-join at gdsolutions.com.ve testlist5-join
> testlist5-leave at gdsolutions.com.ve testlist5-leave
> testlist5-owner at gdsolutions.com.ve testlist5-owner
> testlist5-request at gdsolutions.com.ve testlist5-request
> testlist5-subscribe at gdsolutions.com.ve testlist5-subscribe
> testlist5-unsubscribe at gdsolutions.com.ve testlist5-unsubscribe
If Mailman is properly configured, the above will be generated in
/usr/local/mailman/data/virtual-mailman.
> # cat /usr/local/mailman/data/aliases
> (...)
> testlist5: "|/usr/local/mailman/mail/mailman post testlist5"
> testlist5-admin: "|/usr/local/mailman/mail/mailman admin testlist5"
> testlist5-bounces: "|/usr/local/mailman/mail/mailman bounces
testlist5"
> testlist5-confirm: "|/usr/local/mailman/mail/mailman confirm
testlist5"
> testlist5-join: "|/usr/local/mailman/mail/mailman join testlist5"
> testlist5-leave: "|/usr/local/mailman/mail/mailman leave testlist5"
> testlist5-owner: "|/usr/local/mailman/mail/mailman owner testlist5"
> testlist5-request: "|/usr/local/mailman/mail/mailman request
testlist5"
> testlist5-subscribe: "|/usr/local/mailman/mail/mailman subscribe
testlist5"
> testlist5-unsubscribe: "|/usr/local/mailman/mail/mailman unsubscribe
testlist5"
The above are good.
> # cat /usr/local/mailman/Mailman/mm_cfg.py
> (...)
> MTA = 'Postfix'
> POSTFIX_STYLE_VIRTUAL_DOMAINS = [ 'gdsolutions.com.ve',
'bosque-encantado.org.ve' ]
> DEFAULT_EMAIL_HOST = 'gdsolutions.com.ve'
> DEFAULT_URL_HOST = 'gdsolutions.com.ve'
> add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
> add_virtualhost('bosque-encantado.org.ve', 'bosque-encantado.org.ve')
> DEFAULT_SERVER_LANGUAGE = 'es'
This looks good too.
Do the following:
Remove the virtual mappings for testlist5 from
/etc/postfix/virtual_alias and run "postmap /etc/postfix/virtual_alias".
As root or mailman, run
/usr/local/mailman/bin/withlist -l -a -r fix_url
and
/usr/local/mailman/bin/genaliases
This should make sure all your lists are in the gdsolutions.com.ve
domain as far as Mailman is concerned and generate the appropriate
data/aliases and data/virtual-mailman files.
Then retry your test.
> Once I get my mailing list at gdsolutions.com.ve working, I'll
configure another one at the bosque-encantado.org.ve domain.
>
> Regards,
>
> Gustavo Delfino
--
Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
More information about the Mailman-Users
mailing list