Re: [Mailman-Users] Two questions ref virtual hosts and mailman[SOLVED (so far)]

2011-08-05 Thread Tom Browder
On Fri, Aug 5, 2011 at 18:09, Tom Browder  wrote:
> On Fri, Aug 5, 2011 at 17:56, Mark Sapiro  wrote:
>> Tom Browder wrote:
...
> Hm, but now I'm having problems because when I reply to a message from
> list posters it has their personal e-mail address in the header like
> this example:
>
> Billy Bob billy.bowl...@gmail.com via virtual-1.org

I now have the headers looking as I expected.  I did it by changing
the list default setting here:

General options:
--

Where are replies to list messages directed? Poster is strongly
recommended for most mailing lists.

[default is POSTER, I set it to THIS LIST]

So my list is looking the way I expect it to, and recipients are
seeing the same.

Tomorrow I try out a new read-only site.

Best regards, and thanks for your patience, Mark.

-Tom

USAFA, CS-24, Class of 1965
Niceville, Florida, USA
--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Two questions ref virtual hosts and mailman[SOLVED (so far)]

2011-08-05 Thread Tom Browder
On Fri, Aug 5, 2011 at 17:56, Mark Sapiro  wrote:
> Tom Browder wrote:
>>
>>Aha, I think all works now.  What I did was comment out this line in
>>/etc/postfix/main.cf:
>>
>>#relay_recipient_maps = hash:/var/lib/mailman/data/virtual-mailman

Hm, but now I'm having problems because when I reply to a message from
list posters it has their personal e-mail address in the header like
this example:

Billy Bob billy.bowl...@gmail.com via virtual-1.org

I have my list configure so it is (by default) supposed to hide
personal addresses.

Maybe something else is amiss.

-Tom
--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Two questions ref virtual hosts and mailman[SOLVED (so far)]

2011-08-05 Thread Mark Sapiro
Tom Browder wrote:
>
>Aha, I think all works now.  What I did was comment out this line in
>/etc/postfix/main.cf:
>
>#relay_recipient_maps = hash:/var/lib/mailman/data/virtual-mailman


OK. That's one more issue with the package you're using and its use of
postfix-to-mailman.py. In order for the above relay_recipient_maps to
work as apparently intended, you would need to have

MTA = 'Postfix'
POSTFIX_STYLE_VIRTUAL_DOMAINS = ['virtual-1.org', 'virtual-2.org']

in mm_cfg.py so that Mailman will actually generate the
/var/lib/mailman/data/virtual-mailman(.db) files for Postfix to use as
relay_recipient_maps, but this would still be an incomplete solution
because the "postmaster" and "abuse" and other 'special' addresses
that postfix-to-mailman.py recognizes will not be included in
virtual-mailman, and thus those addresses in the list domains will be
rejected by Postfix.

Also, I fail to understand why a packager would configure Mailman to
uses postfix-to-mailman.py but still require half or more of standard
Mailman/Postfix integration to work as configured.

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Two questions ref virtual hosts and mailman [SOLVED (so far)]

2011-08-05 Thread Tom Browder
On Fri, Aug 5, 2011 at 14:55, Mark Sapiro  wrote:
> On 8/5/2011 8:07 AM, Tom Browder wrote:
>
>> In my /etc/postfix/main.cf I have this:
>>   relay_domains = virtual-1.org, virtual-2.org
>
>
> I am not a Postfix expert, but I'll tell you what I think. If that
> doesn't solve the problem, you may need to go to a Postfix list.
>
> I know the postfix-to-mailman.py documentation says to put your list
> domains in relay_domains, but I think that's wrong. I don't think it
> normally hurts as long as you haven't specified relay_recipient_maps in
> main.cf, but if you have, then if your list domains are in
> relay_domains, all your list addresses need to be in
> relay_recipient_maps tables. That appears to be the source of your
> current problem.
>
> Bottom line: remove the above relay_domains entry.

Thanks, Mark, I'll try that--I have to say that the docs are somewhat
confusing--especially postfix...

Hm, didn't work--uncommented the change and experimenting a little...

Aha, I think all works now.  What I did was comment out this line in
/etc/postfix/main.cf:

#relay_recipient_maps = hash:/var/lib/mailman/data/virtual-mailman

After a postfix reload I'm reading foreing subscribers on the
list...and no errors noticed yet on  the real host.

Best regards, and thanks again for your help.

Happy mailing all!

-Tom
--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Two questions ref virtual hosts and mailman

2011-08-02 Thread Tom Browder
On Tue, Aug 2, 2011 at 16:37, Mark Sapiro  wrote:
> Tom Browder wrote:
>
>>Question 1:
>>=
>>
>>Current situation:
>>
...
(detailed and helpful answers...)

Thanks, Mark!  I'm going to jump in again!

By the way, I have a Perl script and module I use to destroy and regen
the lists easily while testing if anyone is interested.

Best regards,

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA
--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Two questions ref virtual hosts and mailman

2011-08-02 Thread Mark Sapiro
Tom Browder wrote:

>Question 1:
>=
>
>Current situation:
>
>
>I have now pretty much a working solution for this situation (postfix
>and mailman installed with Ubuntu packages on 64-bit 10.04 LTS (Lucid
>Lynx) :
>
>  1 server
>  1 "real" domain: realdomain.com
>  2 virtual domains: virtual-1.org
>virtual-2.org
>
>All are accessed successfully through SSL/TLS (https).
>
>Desired situation:
>
>
>I can get new lists at the virtual domains okay, but here's what I
>would like to do: change the mailing list virtual domains to:
>
>  2 virtual domains: lists.virtual-1.org # this is my default domain for 
> mailman
>lists.virtual-2.org
>
>BUT present the lists to the users as, say, i...@virtual-1.org


Every list has two attributes, a web_page_url with a host name of the
web domain and a host_name which is the name of the email domain. so,
yes, you can do what you want.

In mm_cfg.py you want

DEFAULT_URL_HOST = 'lists.virtual-1.org'
DEFAULT_EMAIL_HOST = 'virtual-1.org'
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
add_virtualhost('lists.virtual-2.org', 'virtual-2.org')

and only if you are using Mailman/Postfix integration

MTA = 'Postfix'
POSTFIX_STYLE_VIRTUAL_DOMAINS = ['virtual-1.org', 'virtual-2.org']

If you are using postfix_to_mailman.py, you want

MTA = None

and you want both virtual-1.org and virtual-2.org mapped to the mailman
transport in transport_maps, but this won't work if you have real
users with addresses @virtual-1.org or @virtual-2.org

See the FAQ at  for more info.

After making those mm_cfg.py changes, run fix_url as follows

For lists in the virtual-1.org domain (DEFAULT_*_HOST), run

  bin/withlist -l -r fix_url LISTNAME

For lists in the virtual-2.org domain, run

  bin/withlist -l -r fix_url LISTNAME -u lists.virtual-2.org

Following that, if you are using Mailman/Postfix integration, run

  bin/genaliases

to rebuild data/mailman* and data/virtual-mailman*.

>I had some mixed success early on, but other problems intervened.  Now
>that the other problems have been solved, I want to blow everything
>away and start over but only if the "Desired situation" is feasible:
>
>Question 2:
>=
>
>Can I also do this on the real domain:
>
>Create a new subdomain and mailing lists:
>
>  lists.realdomain.com <= let postfix and mailman handle this as a
>virtual domain
>
>And also as desired for "Question 1,"
>
>  BUT present the lists to the users as, say, n...@realdomain.com


Just add another

add_virtualhost('lists.realdomain.com', 'realdomain.com')

in mm_cfg.py and treat this like the others, except if realdomain.com
is local in Postfix and has real users, you can't use
postfix_to_mailman.py[1], and you don't add 'realdomain.com' to the
POSTFIX_STYLE_VIRTUAL_DOMAINS list.

[1] You really can still use postfix_to_mailman.py, but you can't
simply put "realdomain.com: mailman" in your transport_maps table. You
have to do things like

somel...@realdomain.com: mailman
somelist-boun...@realdomain.com: mailman
somelist-conf...@realdomain.com: mailman
(etc)

for all 10 addresses for each realdomain.com list at which point, you
are much better off using regular Mailman/Postfix integration.

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] Two questions ref virtual hosts and mailman

2011-08-02 Thread Tom Browder
Question 1:
=

Current situation:


I have now pretty much a working solution for this situation (postfix
and mailman installed with Ubuntu packages on 64-bit 10.04 LTS (Lucid
Lynx) :

  1 server
  1 "real" domain: realdomain.com
  2 virtual domains: virtual-1.org
virtual-2.org

All are accessed successfully through SSL/TLS (https).

Desired situation:


I can get new lists at the virtual domains okay, but here's what I
would like to do: change the mailing list virtual domains to:

  2 virtual domains: lists.virtual-1.org # this is my default domain for mailman
lists.virtual-2.org

BUT present the lists to the users as, say, i...@virtual-1.org

I had some mixed success early on, but other problems intervened.  Now
that the other problems have been solved, I want to blow everything
away and start over but only if the "Desired situation" is feasible:

Question 2:
=

Can I also do this on the real domain:

Create a new subdomain and mailing lists:

  lists.realdomain.com <= let postfix and mailman handle this as a
virtual domain

And also as desired for "Question 1,"

  BUT present the lists to the users as, say, n...@realdomain.com

Best regards,

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA
--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org