Postfix/virtual/mailman - user unknown

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Postfix/virtual/mailman - user unknown

bronto
This is on a brand new ubuntu 8.04 server and the latest mailman.  I am
getting "user unknown" when I try and send a message to a new mailing
list.  Otherwise postfix seems to be working well.

I've searched the archives and found many references, but it seems
everyone has a different problem.  None look applicable to mine.

Here's main.cf:

.................................
# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = sub.dom.ain
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = sub.dom.ain, localhost.dom.ain, localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
virtual_alias_maps =
hash:/etc/postfix/virtual,hash:/usr/local/mailman/data/virtual-mailman,hash:/usr/local/mailman/data/aliases
home_mailbox = Maildir/
content_filter = smtp-amavis:[127.0.0.1]:10024
debug_peer_list = sub.dom.ain

unknown_local_recipient_reject_code = 550
...............................................

Here's what the log said:

Jun  7 19:20:10 sub postfix/local[7930]: 49D2A4284A:
to=<[hidden email]>, relay=local, delay=0.06,
delays=0.02/0.02/0/0.03, dsn=5.1.1, status=bounced (unknown user: "test2")

where the mailing list is named [hidden email]

Also in the log, is this warning:

Jun  7 19:28:20 amd64 postfix/postmap[8214]: warning:
/usr/local/mailman/data/aliases, line 50: record is in "key: value"
format; is this an alias file?

in /usr/local/mailman/data is:

# LOOP ADDRESSES START
[hidden email] mailman-loop
# LOOP ADDRESSES END

# STANZA START: test2
# CREATED: Sat Jun  7 16:54:34 2008
[hidden email]              test2
(among other items)
# STANZA END: test2

and in /usr/local/mailman/data/aliases is

test2:             "|/usr/local/mailman/mail/mailman post test2"
(among other things)

Where do I go from here?

Rob

Reply | Threaded
Open this post in threaded view
|

Re: Postfix/virtual/mailman - user unknown

bronto
Rob Brandt wrote:

> in /usr/local/mailman/data is:
>
> # LOOP ADDRESSES START
> [hidden email]    mailman-loop
> # LOOP ADDRESSES END
>
> # STANZA START: test2
> # CREATED: Sat Jun  7 16:54:34 2008
> [hidden email]              test2
> (among other items)
> # STANZA END: test2

Sorry, the file above is

/usr/local/mailman/data/virtual-mailman

Rob

Reply | Threaded
Open this post in threaded view
|

Re: Postfix/virtual/mailman - user unknown

mouss-2
In reply to this post by bronto
Rob Brandt wrote:
> This is on a brand new ubuntu 8.04 server and the latest mailman.  I
> am getting "user unknown" when I try and send a message to a new
> mailing list.  Otherwise postfix seems to be working well.
>
> I've searched the archives and found many references, but it seems
> everyone has a different problem.  None look applicable to mine.
>
> Here's main.cf:

next time, send output of 'postconf -n' instead of main.cf. more
comments below.

> [snip]
>
> myhostname = sub.dom.ain
> alias_maps = hash:/etc/aliases
> alias_database = hash:/etc/aliases
> myorigin = /etc/mailname
> mydestination = sub.dom.ain, localhost.dom.ain, localhost
> relayhost =
> mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
> mailbox_size_limit = 0
> recipient_delimiter = +
> inet_interfaces = all
> virtual_alias_maps =
> hash:/etc/postfix/virtual,hash:/usr/local/mailman/data/virtual-mailman,hash:/usr/local/mailman/data/aliases
>
> home_mailbox = Maildir/
> content_filter = smtp-amavis:[127.0.0.1]:10024
> debug_peer_list = sub.dom.ain
>
> unknown_local_recipient_reject_code = 550
> ...............................................
>
> Here's what the log said:
>
> Jun  7 19:20:10 sub postfix/local[7930]: 49D2A4284A:
> to=<[hidden email]>, relay=local, delay=0.06,
> delays=0.02/0.02/0/0.03, dsn=5.1.1, status=bounced (unknown user:
> "test2")
>
> where the mailing list is named [hidden email]
>
> Also in the log, is this warning:
>
> Jun  7 19:28:20 amd64 postfix/postmap[8214]: warning:
> /usr/local/mailman/data/aliases, line 50: record is in "key: value"
> format; is this an alias file?

you have put
    hash:/usr/local/mailman/data/aliases
but this file is an alias file, not a virtual aliases file. virtual
aliases do not have a ":" to separate the key and value, and do not
execute commands, ... etc.

so put this in alias_maps instead of virtual_alias_maps.



>
> in /usr/local/mailman/data is:
>
> # LOOP ADDRESSES START
> [hidden email]    mailman-loop
> # LOOP ADDRESSES END
>
> # STANZA START: test2
> # CREATED: Sat Jun  7 16:54:34 2008
> [hidden email]              test2
> (among other items)
> # STANZA END: test2
>
> and in /usr/local/mailman/data/aliases is
>
> test2:             "|/usr/local/mailman/mail/mailman post test2"
> (among other things)
>
> Where do I go from here?
>
> Rob
>

Reply | Threaded
Open this post in threaded view
|

Re: Postfix/virtual/mailman - user unknown

bronto
Thanks, seems to be working now...

mouss wrote:

> Rob Brandt wrote:
>> This is on a brand new ubuntu 8.04 server and the latest mailman.  I
>> am getting "user unknown" when I try and send a message to a new
>> mailing list.  Otherwise postfix seems to be working well.
>>
>> I've searched the archives and found many references, but it seems
>> everyone has a different problem.  None look applicable to mine.
>>
>> Here's main.cf:
>
> next time, send output of 'postconf -n' instead of main.cf. more
> comments below.
>> [snip]
>>
>> myhostname = sub.dom.ain
>> alias_maps = hash:/etc/aliases
>> alias_database = hash:/etc/aliases
>> myorigin = /etc/mailname
>> mydestination = sub.dom.ain, localhost.dom.ain, localhost
>> relayhost =
>> mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
>> mailbox_size_limit = 0
>> recipient_delimiter = +
>> inet_interfaces = all
>> virtual_alias_maps =
>> hash:/etc/postfix/virtual,hash:/usr/local/mailman/data/virtual-mailman,hash:/usr/local/mailman/data/aliases
>>
>> home_mailbox = Maildir/
>> content_filter = smtp-amavis:[127.0.0.1]:10024
>> debug_peer_list = sub.dom.ain
>>
>> unknown_local_recipient_reject_code = 550
>> ...............................................
>>
>> Here's what the log said:
>>
>> Jun  7 19:20:10 sub postfix/local[7930]: 49D2A4284A:
>> to=<[hidden email]>, relay=local, delay=0.06,
>> delays=0.02/0.02/0/0.03, dsn=5.1.1, status=bounced (unknown user:
>> "test2")
>>
>> where the mailing list is named [hidden email]
>>
>> Also in the log, is this warning:
>>
>> Jun  7 19:28:20 amd64 postfix/postmap[8214]: warning:
>> /usr/local/mailman/data/aliases, line 50: record is in "key: value"
>> format; is this an alias file?
>
> you have put
>    hash:/usr/local/mailman/data/aliases
> but this file is an alias file, not a virtual aliases file. virtual
> aliases do not have a ":" to separate the key and value, and do not
> execute commands, ... etc.
>
> so put this in alias_maps instead of virtual_alias_maps.
>
>
>
>>
>> in /usr/local/mailman/data is:
>>
>> # LOOP ADDRESSES START
>> [hidden email]    mailman-loop
>> # LOOP ADDRESSES END
>>
>> # STANZA START: test2
>> # CREATED: Sat Jun  7 16:54:34 2008
>> [hidden email]              test2
>> (among other items)
>> # STANZA END: test2
>>
>> and in /usr/local/mailman/data/aliases is
>>
>> test2:             "|/usr/local/mailman/mail/mailman post test2"
>> (among other things)
>>
>> Where do I go from here?
>>
>> Rob
>>
>