Postfix + virtual_alias + mailman cholera...
Jan Widel
jwnews w debian.maszyna.pl
Pon, 15 Sie 2005, 13:47:44 CEST
Witam, problem z w/w zestawem
jasiek w jkc mailman$ rpm -q mailman postfix
mailman-2.1.5-6
postfix-2.2.3-2
w mm_cfg.py:
mam:
POSTFIX_STYLE_VIRTUAL_DOMAINS = ['cvs.jkc.pl','lists.jkc.pl']
zakładam nową liste:
mailman w jkc bin$ ./newlist test w lists.jkc.pl
Podaj email osoby opiekującej się listą: jasw w cvs.jkc.pl
Początkowe hasło listy test:
Naciśnij Enter powiadomić opiekuna listy test...
mailman aktualizuje pliki virtual-mailman oraz aliases
mailman w jkc bin$ cat /var/spool/mailman/data/virtual-mailman | grep test
# STANZA START: test
test w lists.jkc.pl test
test-admin w lists.jkc.pl test-admin
test-bounces w lists.jkc.pl test-bounces
test-confirm w lists.jkc.pl test-confirm
test-join w lists.jkc.pl test-join
test-leave w lists.jkc.pl test-leave
test-owner w lists.jkc.pl test-owner
test-request w lists.jkc.pl test-request
test-subscribe w lists.jkc.pl test-subscribe
test-unsubscribe w lists.jkc.pl test-unsubscribe
# STANZA END: test
mailman w jkc bin$ cat /var/spool/mailman/data/aliases | grep test
# STANZA START: test
test: "|/usr/lib/mailman/mail/mailman post test"
test-admin: "|/usr/lib/mailman/mail/mailman admin test"
test-bounces: "|/usr/lib/mailman/mail/mailman bounces test"
test-confirm: "|/usr/lib/mailman/mail/mailman confirm test"
test-join: "|/usr/lib/mailman/mail/mailman join test"
test-leave: "|/usr/lib/mailman/mail/mailman leave test"
test-owner: "|/usr/lib/mailman/mail/mailman owner test"
test-request: "|/usr/lib/mailman/mail/mailman request test"
test-subscribe: "|/usr/lib/mailman/mail/mailman subscribe test"
test-unsubscribe: "|/usr/lib/mailman/mail/mailman unsubscribe test"
# STANZA END: test
w postfixie odpowiednie wpisy (zgdnie z REDME.POSTFIX - dokumentacji
mailmana):
mailman w jkc bin$ cat /etc/mail/main.cf | grep -w
'alias_maps\|virtual_alias_maps'
local_recipient_maps = $alias_maps $virtual_alias_maps
alias_maps = hash:/etc/mail/aliases, hash:/var/spool/mailman/data/aliases
virtual_alias_maps = hash:/var/spool/mailman/data/virtual-mailman,
pgsql:/etc/postfix/pgsql_virtual_alias_maps.cf
tak dla sprwdzenia:
mailman w jkc bin$ postmap -q test-request w lists.jkc.pl
/var/spool/mailman/data/virtual-mailman
test-request
mailman w jkc bin$ postmap -q test-request /var/spool/mailman/data/aliases
"|/usr/lib/mailman/mail/mailman request test"
próbuje wysłać maila do test-request i dupa, w logach:
Aug 15 13:23:44 jkc postfix/smtpd[22293]: connect from unknown[127.0.0.1]
Aug 15 11:23:44 jkc postfix/smtpd[22293]: NOQUEUE: reject: RCPT from
unknown[127.0.0.1]: 550 <test-request w jkc.pl>: Recipient address
rejected: User unknown in virtual mailbox table;
from=<jasiek w debian.maszyna.pl> to=<test-request w jkc.pl> proto=ESMTP
helo=<localhost>
Aug 15 13:23:44 jkc amavis[21835]: (21835-06) mail_via_smtp: DATA
skipped, no valid recips, 0
Aug 15 11:23:44 jkc postfix/smtpd[22293]: disconnect from unknown[127.0.0.1]
Aug 15 13:23:44 jkc amavis[21835]: (21835-06) mail_via_smtp: 550 5.1.0
<test-request w jkc.pl>: Recipient address rejected: User unknown in
virtual mailbox table
Aug 15 13:23:45 jkc amavis[21835]: (21835-06) Blocked CLEAN,
[83.18.51.118] [83.18.51.118] <jasiek w debian.maszyna.pl> ->
<test-request w jkc.pl>, Message-ID:
<Pine.LNX.4.61L.0508151318020.22230 w jkc.pl>, Hits: -1.303, 516 ms
Aug 15 13:23:45 jkc postfix/smtp[22290]: 667E214DFDC6:
to=<test-request w jkc.pl>, orig_to=<test-request w lists.jkc.pl>,
relay=127.0.0.1[127.0.0.1], delay=1, status=bounced (host
127.0.0.1[127.0.0.1] said: 550 5.1.0 <test-request w jkc.pl>: Recipient
address rejected: User unknown in virtual mailbox table (in reply to end
of DATA command))
jak dla mnie postfix czyta virtua-mailman.db wie że test-rewuest w lists..
to test-request w jkc.pl , ale już aliases.db z /var/spool/.../aliases.db
nie czyta, więc sprawdzam.
root w jkc postfix# postmap -q webmaster /etc/mail/aliases
jasiek w debian.maszyna.pl
root w jkc postfix# mail webmaster
Subject: asd
asd
Cc:
w logach to samo co wyżej. Czemu postfix _nie_ czyta mapy aliasów, a
tylko mapy wirtual_alias?
--
** Pozdrawiam Jan Wideł ** Linux Registered User #39454 **
** PLD Linux Developer ** jasw(at)pld-linux.org **
** http://debian.maszyna.pl ** jasiek(at)debian.maszyna.pl **
** http://www.jkc.pl ** jan.widel(at)jkc.pl **
Więcej informacji o liście dyskusyjnej pld-users-pl