|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
RE: Listar users... anybody?
Subject: RE: Listar users... anybody?
From: Alex Miller (postfix
bannerclub.com)
Date: Sun Jan 16 2000 - 11:27:44 CST
- Next message: Noam Freedman: "Re: Question about valid_hostname"
- Previous message: LaMont Jones: "Re: Question about valid_hostname"
- Next in thread: Alex Miller: "RE: Listar users... anybody?"
- Maybe reply: Alex Miller: "RE: Listar users... anybody?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Copyright (C) 2000 Acme Conscience, Inc.
My guess is that you are using virtual hosting.
Listar and postfix virtual hosting works quite
nicely but there's some extra work involved
and, in fact, I've written some scripts that
make list creation easier. Soon I'll publish
those scripts GPL, this email is helping me
write the doc.
For security reasons, postfix doesn't let
you run programs from virtual mail maps. That's
ok, there is a solution, redirecting the mail
maps to mail aliases. Listar needs to
be run that way.
To simplify things, first make sure that you can
send mail to janedoenewuser
moongroup.com
Assuming that you CANNOT do this here's how to
make moongroup.com a virtual alias and let's
also cut to the chase and set things up so
listar works great.
In /postfix/etc/main.cf create this line
alias_maps = hash:/etc/aliases, hash:/var/listar/listar.aliases
(Listar is going to create a lot of dummy aliases
for the purpose of program routing. It's very
convenient to separate your listar aliases from
the regular aliases)
Also in /postfix/etc/main.cf create this line
virtual_maps = hash:/etc/postfix/virtual, hash:/home/listar/listar.virtual
(Again this distinguishes your listar virtual maps
from your other maps)
(I would strongly recommend using a special CNAME
record for mailing lists, like lists.moongroup.org
This will allow you to make sure that you don't
set up a catchall map for the domain which will
interfere with listar's bounce handling)
Now you just need to populate that aliases, listar.aliases,
virtual, and listar.virtual files.
/etc/postfix/virtual contains:
------------------------------
# remember to run "postmap /etc/postfix/virtual" after editing this file
moongroup.org dummyvalue
user1
moongroup.org user1
user2nickname
moongroup.org user2
# because moongroup.org has a catchall it shouldn't be used for listar
moongroup.org moongroupall
# all the virtual maps for lists.moongroup.org are in
/var/listar/listar.virtual
lists.moongroup.org dummyvalue
/var/listar/listar.virtual contains:
(the "dots" will be handled by the aliase
file which in postfix CAN route to programs!)
------------------------------------
# remember to run "postmap /var/listar/listar.virtual" after editing this
file
listar
lists.moongroup.org listar.lists.lists.moongroup.org
listar-admin
lists.moongroup.org chuckmead
list-owner
lists.moongroup chuckmead
#each mailing list has seven addresses, as there are seven wandering
#stars; the sun, the moon, saturn, jupiter, mars, venus, and mercury
test
lists.moongroup.org test.lists.moongroup.org
test-request
lists.moongroup.org test-request.lists.moongroup.org
test-repost
lists.moongroup.org test-repost.lists.moongroup.org
test-admins
lists.moongroup.org test-admins.lists.moongroup.org
test-moderators
lists.moongroup.org test-moderators.lists.moongroup.org
test-bounce
lists.moongroup.org test-bounce.lists.moongroup.org
test-owner
lists.moongroup.org list-owner
lists.moongroup.org
/var/listar/listar.aliases contains
-----------------------------------
# remember to run postalias /var/listar/listar.aliases after editing this
file
listar.lists.moongroup.org: "|/var/listar/listar -c cfg.lists.moongroup.org"
listar.lists.anotherdomain.tld: "|/var/listar/listar -c
cfg.lists.anotherdomain.tld"
listar.lists.yetanotherdomain.tld: "|/var/listar/listar -c
cfg.lists.yetanotherdomain.tld"
...
# each mailing list contains seven aliases
test.lists.moongroup.org: "|/home/listar/listar -c
cfg.lists.moongroup.org -s test"
test-request.lists.moongroup.org: "|/home/listar/listar -c
cfg.lists.moongroup.org -r test"
test-repost.lists.moongroup.org: "|/home/listar/listar -c
cfg.lists.moongroup.org -a test"
test-admins.lists.moongroup.org: "|/home/listar/listar -c
cfg.lists.moongroup.org -admins test"
test-moderators.lists.moongroup.org: "|/home/listar/listar -c
cfg.lists.moongroup.org -moderators test"
test-bounce.lists.moongroup.org: "|/home/listar/listar -c
cfg.lists.moongroup.org -bounce test"
I didn't want to throw the kitchen sink at you the other day,
since the problem you were having was very specific, but I did
mention that IF you were doing virtual domains and running listar
you would need help.
Alex Miller
The copyright notice is used to reserve copyright. It is my intention
to write an open-source doc regarding postfix/listar issues.
The copyright above therefore reserves the my right to do so.
> -----Original Message-----
> From: chuck
moongroup.com [mailto:chuck
moongroup.com]On Behalf Of Chuck
> Mead
> Sent: Friday, January 14, 2000 10:09 PM
> To: Alex Miller
> Subject: RE: Listar users... anybody?
>
>
> On Fri, 14 Jan 2000, Alex Miller said:
>
> AM>Chuck,
> AM>
> AM>Yes,
> AM>
> AM>for starters you have:
> AM>listar: |"//home/listar/listar"
> AM>
> AM>it should be
> AM>listar: "|/home/listar/listar"
> AM>
> AM>that is it reads
> AM>listar (name of alias)
> AM>: (is an alias)
> AM> (next parameter)
> AM>" (begin substitution string)
> AM>| (pipe all data sent to alias to a program)
> AM>/home/listar/listar (path/program)
> AM>" (end substition string)
> AM>
> AM>You need to do that for all your aliases.
> AM>That should help get you started.
>
> Done... see below...
>
> AM>If you are using postfix and want to do virtual aliases you will
> AM>need help. It's easy and great but it takes a while because
> AM>the doc isn't ready yet.
>
> I understand it... I was reading the archives about it when I got
> your message!
>
> AM>You should DEFINITELY join the listar-support list as well.
> AM>Email listar-support-request
listar.org with the word subscribe in the
> AM>subject.
>
> Already joined but it's friday night and I wasn't seeing any
> traffic so I was
> reading the archives...
>
> AM>> Anybody have a clue what could be wrong with these aliases?
> AM>>
> AM>> # listar aliases
> AM>> listar: |"//home/listar/listar"
> AM>> listar-owner: chuck
[10.0.0.50]
>
> # listar aliases
> listar: "|/home/listar/listar"
> listar-owner: chuck
[10.0.0.50]
>
> AM>> # Aliases for 'family' mailing list.
> AM>> family: |"//home/listar/listar -s family"
> AM>> family-request: |"//home/listar/listar -r family"
> AM>> family-repost: |"//home/listar/listar -a family"
> AM>> family-admins: |"//home/listar/listar -admins family"
> AM>> family-moderators: |"//home/listar/listar -moderators family"
> AM>> family-bounce: |"//home/listar/listar -bounce family"
> AM>> family-owner: chuck
[10.0.0.50]
>
> # Aliases for 'family' mailing list.
> family: "|/home/listar/listar -s family"
> family-request: "|/home/listar/listar -r family"
> family-repost: "|/home/listar/listar -a family"
> family-admins: "|/home/listar/listar -admins family"
> family-moderators: "|/home/listar/listar -moderators family"
> family-bounce: "|/home/listar/listar -bounce family"
> family-owner: chuck
[10.0.0.50]
>
> Now I see:
>
> [root
ns postfix]# postalias -q family aliases
> "|/home/listar/listar -s family"
>
> But when I send a mail to family I get:
>
> <family
moongroup.org>: unknown user: "family"
>
> Nothing's changed...
>
> ------------------------------------------------------------------------
> Chuck Mead / Director of Corporate Relations / Treasurer
> chuck
lpi.org / Linux Professional Institute / http://www.lpi.org/
> ------------------------------------------------------------------------
>
>
>
- Next message: Noam Freedman: "Re: Question about valid_hostname"
- Previous message: LaMont Jones: "Re: Question about valid_hostname"
- Next in thread: Alex Miller: "RE: Listar users... anybody?"
- Maybe reply: Alex Miller: "RE: Listar users... anybody?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
This archive was generated by hypermail 2b27 : Sun Jan 16 2000 - 11:34:23 CST