Re: problem with virtual domains and mailman

2009-02-11 Thread Göran Höglund

Hi
Thanks that helped!

Now i just have to get the listmanager deliver the mails ... But that is 
another list I assume.


/GH

Wietse Venema skrev:

G?ran H?glund:
  
virtual_alias_maps = 
proxy:mysql:/etc/postfix/mysql-virtual-alias-maps.cf, 
proxy:mysql:/etc/postfix/mysql-virtual-mailbox-to-alias-maps.cf 
hash:/usr/local/mailman/data/aliases



As I suspected, you are mixing local alias syntax with virtual
alias syntax.

The two have different syntax.  In particular, virtual aliases do
not support |command syntax, and local aliases never have a
@domain part.

Remove the domain from virtual_alias_domains, and remove
mailman/data/aliases from virtual_alias_maps.

Add the domain to mydestination, and add mailman/data/aliases to
the alias_maps and alias_database parameters.

Wietse
  




problem with virtual domains and mailman

2009-02-08 Thread Göran Höglund

Hi

I have been running a postfix/courier mailserver with virtual users and 
Maildir for a while.

Now I need to setup a mailinglist and I have choosen mailman.

The installation of mailman did work well but somewhere I fail to get 
the aliasing work properlly.

I get the following errorlog in maillog:

Feb  8 11:34:11 apollo postfix/smtpd[11557]: NOQUEUE: reject: RCPT from 
unknown[172.16.254.4]: 550 5.1.1 test-...@x.se: Recipient address 
rejected: User unknown in virtual mailbox table; from=go...@x.se 
to=test-...@x.se proto=ESMTP helo=[192.168.0.4]


My main.cf is configured as follows:

alias_maps = hash:/etc/aliases, hash:/usr/local/mailman/data/aliases
alias_database = hash:/etc/aliases, hash:/usr/local/mailman/data/aliases
virtual_alias_maps =
proxy:mysql:/etc/postfix/mysql-virtual-alias-maps.cf,
proxy:mysql:/etc/postfix/mysql-virtual-mailbox-to-alias-maps.cf
hash:/usr/local/mailman/data/aliases

The aliases in /usr/local/mailman/data/aliases looks like
# STANZA START: mailman
# CREATED: Thu Feb  5 17:30:26 2009
mailman: |/usr/local/mailman/mail/mailman post mailman
mailman-admin:   |/usr/local/mailman/mail/mailman admin mailman
mailman-bounces: |/usr/local/mailman/mail/mailman bounces mailman
mailman-confirm: |/usr/local/mailman/mail/mailman confirm mailman
mailman-join:|/usr/local/mailman/mail/mailman join mailman
mailman-leave:   |/usr/local/mailman/mail/mailman leave mailman
mailman-owner:   |/usr/local/mailman/mail/mailman owner mailman
mailman-request: |/usr/local/mailman/mail/mailman request mailman
mailman-subscribe:   |/usr/local/mailman/mail/mailman subscribe mailman
mailman-unsubscribe: |/usr/local/mailman/mail/mailman unsubscribe mailman
# STANZA END: mailman

# STANZA START: test_all
# CREATED: Sun Feb  8 11:22:01 2009
test_all: |/usr/local/mailman/mail/mailman post test_all
test_all-admin:   |/usr/local/mailman/mail/mailman admin test_all
test_all-bounces: |/usr/local/mailman/mail/mailman bounces test_all
test_all-confirm: |/usr/local/mailman/mail/mailman confirm test_all
test_all-join:|/usr/local/mailman/mail/mailman join test_all
test_all-leave:   |/usr/local/mailman/mail/mailman leave test_all
test_all-owner:   |/usr/local/mailman/mail/mailman owner test_all
test_all-request: |/usr/local/mailman/mail/mailman request test_all
test_all-subscribe:   |/usr/local/mailman/mail/mailman subscribe test_all
test_all-unsubscribe: |/usr/local/mailman/mail/mailman unsubscribe 
test_all

# STANZA END: test_all

Any one who out there who might tell me what I have done wrong??
regards Göran


Re: problem with virtual domains and mailman

2009-02-08 Thread Göran Höglund

Hi
Sorry my fault! I did change the original listname and made an error in 
the snippet.

Here is the correct errorlog:
Feb  8 13:06:05 apollo postfix/smtpd[12115]: NOQUEUE: reject: RCPT from 
unknown[172.16.254.4]: 550 5.1.1 test_...@telemar.se: Recipient 
address rejected: User unknown in virtual mailbox table; 
from=goran.hogl...@telemar.se to=test_...@telemar.se proto=ESMTP 
helo=[192.168.0.4]


And my alias file looks as below. It seems as if Postfix ignores this 
alias file or do I need to define a mailbox for the list, I have lost 
track here.


/GH


mouss skrev:

Göran Höglund a écrit :
  

[snip]

Feb  8 11:34:11 apollo postfix/smtpd[11557]: NOQUEUE: reject: RCPT from
unknown[172.16.254.4]: 550 5.1.1 test-...@x.se: Recipient address
rejected: User unknown in virtual mailbox table; from=go...@x.se
to=test-...@x.se proto=ESMTP helo=[192.168.0.4]

[snip]
test_all: |/usr/local/mailman/mail/mailman post test_all
[snip]

Any one who out there who might tell me what I have done wrong??
regards Göran



test-all != test_all