Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Postfix Integration with Mailman - Recipient address rejected: User unknown in virtual mailbox table

2 views
Skip to first unread message

Thaths

unread,
Aug 28, 2005, 1:23:21 AM8/28/05
to
Hi,

I am trying to integrate mailman (2.1.5) with postfix (2.2.4) on a
Debian box. When I try to send an email to a mailing list configured
in mailman, I am getting the error 'Recipient address rejected: User
unknown in virtual mailbox table'. I know I must be doing something
silly. However, I am unable to figure out my mistake that is causing
this error.

The relevant portios from my main.cf are:

myhostname = europa
alias_maps = hash:/etc/aliases,hash:/var/lib/mailman/data/aliases
alias_database = hash:/etc/aliases

# Virtual hosting
virtual_mailbox_domains = foo.com
virtual_mailbox_base = /virtuals
virtual_mailbox_maps = ldap:/etc/postfix/ldap-accounts.cf
virtual_uid_maps = static:1000
virtual_gid_maps = static:106
home_mailbox = Maildir/

# Filter incoming mail through Amavis
content_filter=smtp-amavis:[127.0.0.1]:10024

owner_request_special = no
recipient_delimiter = +
unknown_local_recipient_reject_code = 550

Relevant portions from my /etc/aliases looks like so:

## mailman mailing list
mailman: "|/var/lib/mailman/mail/mailman post mailman"
mailman-admin: "|/var/lib/mailman/mail/mailman admin mailman"
mailman-bounces: "|/var/lib/mailman/mail/mailman bounces mailman"
mailman-confirm: "|/var/lib/mailman/mail/mailman confirm mailman"
mailman-join: "|/var/lib/mailman/mail/mailman join mailman"
mailman-leave: "|/var/lib/mailman/mail/mailman leave mailman"
mailman-owner: "|/var/lib/mailman/mail/mailman owner mailman"
mailman-request: "|/var/lib/mailman/mail/mailman request mailman"
mailman-subscribe: "|/var/lib/mailman/mail/mailman subscribe mailman"
mailman-unsubscribe: "|/var/lib/mailman/mail/mailman unsubscribe mailman

My /var/lib/mailman/data/aliases looks like so:

# STANZA START: ac
# CREATED: Sat Aug 20 15:41:43 2005
ac: "|/var/lib/mailman/mail/mailman post ac"
ac-admin: "|/var/lib/mailman/mail/mailman admin ac"
ac-bounces: "|/var/lib/mailman/mail/mailman bounces ac"
ac-confirm: "|/var/lib/mailman/mail/mailman confirm ac"
ac-join: "|/var/lib/mailman/mail/mailman join ac"
ac-leave: "|/var/lib/mailman/mail/mailman leave ac"
ac-owner: "|/var/lib/mailman/mail/mailman owner ac"
ac-request: "|/var/lib/mailman/mail/mailman request ac"
ac-subscribe: "|/var/lib/mailman/mail/mailman subscribe ac"
ac-unsubscribe: "|/var/lib/mailman/mail/mailman unsubscribe ac"
# STANZA END: ac

Any help would be appreciated.

Thanks.

Thaths

Thaths

unread,
Aug 28, 2005, 3:06:43 AM8/28/05
to
On 8/28/05, Thaths <tha...@gmail.com> wrote:
> I am trying to integrate mailman (2.1.5) with postfix (2.2.4) on a
> Debian box. When I try to send an email to a mailing list configured
> in mailman, I am getting the error 'Recipient address rejected: User
> unknown in virtual mailbox table'. I know I must be doing something
> silly. However, I am unable to figure out my mistake that is causing
> this error.

I was able to proceed to one more step. Postfix is now accepting
emails to mailman mailing lists but it is bouncing it back to sender
saying "no such user".

I configured mailman with

MTA='Postfix'
POSTFIX_STYLE_VIRTUAL_DOMAINS = ['foo.com']

I then configured postfix like so:

main.cf portions:
----------------------


alias_maps = hash:/etc/aliases,hash:/var/lib/mailman/data/aliases

alias_database = hash:/etc/aliases,hash:/var/lib/mailman/data/aliases


virtual_mailbox_domains = foo.com
virtual_mailbox_base = /virtuals
virtual_mailbox_maps = ldap:/etc/postfix/ldap-accounts.cf
virtual_uid_maps = static:1000
virtual_gid_maps = static:106
home_mailbox = Maildir/

virtual_alias_maps = hash:/var/lib/mailman/data/virtual-mailman,
hash:/etc/postfix/foo.com/forwards
content_filter=smtp-amavis:[127.0.0.1]:10024
mailbox_command = procmail -a "$EXTENSION"


owner_request_special = no
recipient_delimiter = +
unknown_local_recipient_reject_code = 550

My /var/lib/mailman/data/virtual-mailman has entries like so:

# STANZA START: foo
# CREATED: Sun Aug 28 11:53:18 2005
f...@foo.com foo
foo-...@foo.com foo-admin
foo-b...@foo.com foo-bounces
foo-c...@foo.com foo-confirm
foo-...@foo.com foo-join
foo-...@foo.com foo-leave
foo-...@foo.com foo-owner
foo-r...@foo.com foo-request
foo-su...@foo.com foo-subscribe
foo-uns...@fo.com foo-unsubscribe
# STANZA E...@foo.com # STANZA END

My /var/lib/mailman/data/aliases has corresponding entries like so:

# STANZA START: foo
# CREATED: Sun Aug 28 11:53:18 2005
foo: "|/var/lib/mailman/mail/mailman post foo"
foo-admin: "|/var/lib/mailman/mail/mailman admin foo"
foo-bounces: "|/var/lib/mailman/mail/mailman bounces foo"
foo-confirm: "|/var/lib/mailman/mail/mailman confirm foo"
foo-join: "|/var/lib/mailman/mail/mailman join foo"
foo-leave: "|/var/lib/mailman/mail/mailman leave foo"
foo-owner: "|/var/lib/mailman/mail/mailman owner foo"
foo-request: "|/var/lib/mailman/mail/mailman request foo"
foo-subscribe: "|/var/lib/mailman/mail/mailman subscribe foo"
foo-unsubscribe: "|/var/lib/mailman/mail/mailman unsubscribe foo"
# STANZA END: foo

When the bounce happens my logs look like so:


Aug 28 12:29:12 europa postfix/qmgr[10305]: 24515CED17:
from=<sudhakar...@foo.com>, size=921, nrcpt=1 (queue active)Aug
28 12:29:12 europa postfix/smtpd[10313]: disconnect from
localhost.localdomain[127.0.0.1]
Aug 28 12:29:12 europa amavis[28938]: (28938-08) Passed,
<sudhakar...@foo.com> -> <te...@comat.com>, Message-ID:
<20050828065854.DE1A8CED07@europa>, Hits: -1.31
Aug 28 12:29:12 europa amavis[28938]: (28938-08) TIMING [total 221 ms]
- SMTP EHLO: 1 (0%), SMTP pre-MAIL: 0 (0%), SMTP pre-DATA-flush: 1
(1%), SMTP DATA: 39 (18%), body hash: 0 (0%), mime_decode: 4 (2%),
get-file-type: 9 (4%), decompose_part: 1 (0%), parts: 0 (0%),
AV-scan-1: 1 (0%), SA msg read: 1 (0%), SA parse: 1 (0%), SA check: 67
(30%), fwd-connect: 16 (7%), fwd-mail-from: 1 (0%), fwd-rcpt-to: 2
(1%), write-header: 2 (1%), fwd-data: 0 (0%), fwd-data-end: 73 (33%),
fwd-rundown: 1 (0%), unlink-1-files: 2 (1%), rundown: 0 (0%)
Aug 28 12:29:12 europa postfix/smtp[10310]: DE1A8CED07:
to=<f...@foo.com>, relay=127.0.0.1[127.0.0.1], delay=18, status=sent
(250 2.6.0 Ok, id=28938-08, from MTA: 250 Ok: queued as 24515CED17)
Aug 28 12:29:12 europa postfix/qmgr[10305]: DE1A8CED07: removed
Aug 28 12:29:12 europa postfix/virtual[10314]: warning:
dict_ldap_open: /etc/postfix/ldap-accounts.cf ignoring cache
Aug 28 12:29:12 europa postfix/virtual[10314]: 24515CED17:
to=<f...@foo.com>, relay=virtual, delay=0, status=bounced (unknown
user: "f...@foo.com")
Aug 28 12:29:12 europa postfix/cleanup[10309]: 453EFCED1A:
message-id=<20050828065912.453EFCED1A@europa>
Aug 28 12:29:12 europa postfix/qmgr[10305]: 453EFCED1A: from=<>,
size=2477, nrcpt=1 (queue active)
Aug 28 12:29:12 europa postfix/qmgr[10305]: 24515CED17: removed
Aug 28 12:29:12 europa postfix/virtual[10314]: 453EFCED1A:
to=<sudhakar...@foo.com>, relay=virtual, delay=0, status=sent
(delivered to maildir)
Aug 28 12:29:12 europa postfix/qmgr[10305]: 453EFCED1A: removed


S.

--
"This is everybody's fault but mine!" -- Homer J. Simpson

Magnus Bäck

unread,
Aug 28, 2005, 5:08:12 AM8/28/05
to
On Sunday, August 28, 2005 at 09:06 CEST,
Thaths <tha...@gmail.com> wrote:

> I was able to proceed to one more step. Postfix is now accepting
> emails to mailman mailing lists but it is bouncing it back to sender
> saying "no such user".
>
> I configured mailman with
>
> MTA='Postfix'
> POSTFIX_STYLE_VIRTUAL_DOMAINS = ['foo.com']

[...]

> My /var/lib/mailman/data/virtual-mailman has entries like so:
>
> # STANZA START: foo
> # CREATED: Sun Aug 28 11:53:18 2005
> f...@foo.com foo

[...]

> Aug 28 12:29:12 europa postfix/virtual[10314]: 24515CED17:
> to=<f...@foo.com>, relay=virtual, delay=0, status=bounced (unknown
> user: "f...@foo.com")

The addresses in the right-hand side of a virtual alias map are not
necessarily local. Unqualified address are qualified with @$myorigin,
which is your case apparently is foo.com (i.e. f...@foo.com is rewritten
to f...@foo.com). You need to either

a) make sure myorigin is a local domain so that the Mailman messages
will be passed to local(8) and eventually to your aliases, or
b) qualify the addresses in the RHS of the virtual alias map with a
local domain.

This exact question has been covered on the list many times before.

[...]

--
Magnus Bäck
mag...@dsek.lth.se

Thaths

unread,
Aug 28, 2005, 5:36:06 AM8/28/05
to
On 8/28/05, Magnus Bäck <mag...@dsek.lth.se> wrote:
> This exact question has been covered on the list many times before.

Thanks for the answer. It is true that this exact question has been
answered in this list many times. I even search far and wide before
posting here. My problem was that I had set $myorigin twice. Once at
the top where I saw it. And once in the middle of main.cf which my
brain did not see. I kept changing the first one but not the second.

Thanks, once again.

Thaths

mouss

unread,
Aug 28, 2005, 5:04:02 PM8/28/05
to
Thaths a écrit :

>On 8/28/05, Magnus Bäck <mag...@dsek.lth.se> wrote:
>
>
>>This exact question has been covered on the list many times before.
>>
>>
>
>Thanks for the answer. It is true that this exact question has been
>answered in this list many times. I even search far and wide before
>posting here. My problem was that I had set $myorigin twice. Once at
>the top where I saw it. And once in the middle of main.cf which my
>brain did not see. I kept changing the first one but not the second.
>
>

that's why "postconf -n" is the recommended way to check the value of a
variable.


0 new messages