OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Postfix Archives: FW: Listar users... anybody?

FW: Listar users... anybody?


Subject: FW: Listar users... anybody?
From: Alex Miller (postfixbannerclub.com)
Date: Sun Jan 16 2000 - 13:29:46 CST


Copyright (c) 2000 by Acme Conscience, Inc.
This material may be distributed only subject
to the terms and conditions set forth in the
Open Publication License, Draft v0.4, 8 June 1999
(the latest version is presently available at
http://www.opencontent.org/opl.shtml/).

In lay terms this means that you can publish
what is written here, include it in opencontent
works. If you are interested in open content
and open software I highly recommend reading
the full license.

The following was published with copyright earlier
but did not contain a statement regarding the
open content license, only a statement regarding
an intent to do so. The content is hereby licensed
as open content as was intended.
----------------------------------------------

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 janedoenewusermoongroup.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
user1moongroup.org user1
user2nicknamemoongroup.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
listarlists.moongroup.org listar.lists.lists.moongroup.org
listar-adminlists.moongroup.org chuckmead
list-ownerlists.moongroup chuckmead

#each mailing list has seven addresses, as there are seven wandering
#stars; the sun, the moon, saturn, jupiter, mars, venus, and mercury
testlists.moongroup.org test.lists.moongroup.org
test-requestlists.moongroup.org test-request.lists.moongroup.org
test-repostlists.moongroup.org test-repost.lists.moongroup.org
test-adminslists.moongroup.org test-admins.lists.moongroup.org
test-moderatorslists.moongroup.org test-moderators.lists.moongroup.org
test-bouncelists.moongroup.org test-bounce.lists.moongroup.org
test-ownerlists.moongroup.org list-ownerlists.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: chuckmoongroup.com [mailto:chuckmoongroup.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-requestlistar.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:
>
> [rootns postfix]# postalias -q family aliases
> "|/home/listar/listar -s family"
>
> But when I send a mail to family I get:
>
> <familymoongroup.org>: unknown user: "family"
>
> Nothing's changed...
>
> ------------------------------------------------------------------------
> Chuck Mead / Director of Corporate Relations / Treasurer
> chucklpi.org / Linux Professional Institute / http://www.lpi.org/
> ------------------------------------------------------------------------
>
>
>



This archive was generated by hypermail 2b27 : Sun Jan 16 2000 - 13:39:19 CST