Re: [Mailman-Users] Postfix & Mailman not playing well together

2011-05-23 Thread Mark Sapiro
Geoff Shang wrote:

>On Mon, 23 May 2011, Mark Sapiro wrote:
>
>> I think Geoff Shang's reply (at
>>  -
>> only one of the problems of posting as a non-subscriber) was on target.
>
>Sorry, I didn't realise this list accepted non-member posts.


In theory it doesn't, but exceptions are made more often than not. In
any case, you (Geoff) did nothing wrong. It is or should be up to the
non-member poster to check the archives for replies not explicitly
addressed to the poster.

-- 
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] Postfix & Mailman not playing well together

2011-05-23 Thread Geoff Shang

On Mon, 23 May 2011, Mark Sapiro wrote:


I think Geoff Shang's reply (at
 -
only one of the problems of posting as a non-subscriber) was on target.


Sorry, I didn't realise this list accepted non-member posts.

Geoff.

--
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] Postfix & Mailman not playing well together

2011-05-23 Thread Mark Sapiro
Michael Soh 
>
>On Mon, May 23, 2011 at 3:39 PM, Mark Sapiro  wrote:
>
>> You don't have to reload Postfix after changing aliases and/or
>> virtual-mailman. The commands defined in POSTFIX_ALIAS_CMD and
>> POSTFIX_MAP_CMD are run automatically and update the .db files and
>> Postfix will notice they've changed.
>>
>
>The documentation:
>http://www.list.org/mailman-install/postfix-integration.html
>
>says:
>
>One caveat: when you add or remove a list, the aliases.db file will updated,
>but it will not automatically run *postfix reload*. This is because you need
>to be root to run this and suid-root scripts are not secure. The only effect
>of this is that it will take about a minute for Postfix to notice the change
>to the aliases.db file and update its tables.
>
>I assumed that this applied to virtual domains as well.  I guess it doesn't.


It does to the extent that it applies at all, but see


-- 
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] Postfix & Mailman not playing well together

2011-05-23 Thread Michael Soh
On Mon, May 23, 2011 at 3:39 PM, Mark Sapiro  wrote:

> add_virtualhost is not mentioned in the postfix section because it's
> not a postfix related setting per se.
>
> Section 7 Review your site defaults urges you to read Defaults.py
>

Good to know.


> You don't have to reload Postfix after changing aliases and/or
> virtual-mailman. The commands defined in POSTFIX_ALIAS_CMD and
> POSTFIX_MAP_CMD are run automatically and update the .db files and
> Postfix will notice they've changed.
>

The documentation:
http://www.list.org/mailman-install/postfix-integration.html

says:

One caveat: when you add or remove a list, the aliases.db file will updated,
but it will not automatically run *postfix reload*. This is because you need
to be root to run this and suid-root scripts are not secure. The only effect
of this is that it will take about a minute for Postfix to notice the change
to the aliases.db file and update its tables.

I assumed that this applied to virtual domains as well.  I guess it doesn't.


> What's in the postfix log?
>

I guess these e-mails are getting out of order.  I'll post the log for
posterity:

May 23 14:57:03 hotdog postfix/smtpd[19500]: connect from
mail-ey0-f181.google.com[209.85.215.181]
May 23 14:57:03 hotdog postfix/smtpd[19500]: setting up TLS connection from
mail-ey0-f181.google.com[209.85.215.181]
May 23 14:57:04 hotdog postfix/smtpd[19500]: Anonymous TLS connection
established from mail-ey0-f181.google.com[209.85.215.181]: TLSv1 with cipher
RC4-SHA (128/128 bits)
May 23 14:57:04 hotdog postfix/smtpd[19500]: 5AAE1518820E: client=
mail-ey0-f181.google.com[209.85.215.181]
May 23 14:57:04 hotdog postfix/cleanup[26459]: 5AAE1518820E:
message-id=
May 23 14:57:04 hotdog postfix/qmgr[1375]: 5AAE1518820E: from=<
michael.c@gmail.com>, size=1995, nrcpt=1 (queue active)
May 23 14:57:04 hotdog postfix/error[29964]: 5AAE1518820E: to=<
epicf...@mikesoh.com>, orig_to=, relay=none,
delay=0.44, delays=0.42/0/0/0.02, dsn=5.0.0, status=bounced (User unknown i
n virtual alias table)
May 23 14:57:04 hotdog postfix/cleanup[26459]: AA043518820F: message-id=<
20110523185704.aa0435188...@hotdog.mikesoh.com>
May 23 14:57:04 hotdog postfix/bounce[29979]: 5AAE1518820E: sender
non-delivery notification: AA043518820F
May 23 14:57:04 hotdog postfix/qmgr[1375]: AA043518820F: from=<>, size=3885,
nrcpt=1 (queue active)
May 23 14:57:04 hotdog postfix/qmgr[1375]: 5AAE1518820E: removed

May 23 15:02:03 hotdog postfix/smtpd[9810]: connect from
mail-ew0-f53.google.com[209.85.215.53]
May 23 15:02:04 hotdog postfix/smtpd[9810]: setting up TLS connection from
mail-ew0-f53.google.com[209.85.215.53]
May 23 15:02:04 hotdog postfix/smtpd[9810]: Anonymous TLS connection
established from mail-ew0-f53.google.com[209.85.215.53]: TLSv1 with cipher
RC4-SHA (128/128 bits)
May 23 15:02:04 hotdog postfix/smtpd[9810]: AB276518820E: client=
mail-ew0-f53.google.com[209.85.215.53]
May 23 15:02:04 hotdog postfix/cleanup[19618]: AB276518820E:
message-id=
May 23 15:02:04 hotdog postfix/qmgr[23652]: AB276518820E: from=<
michael.c@gmail.com>, size=1989, nrcpt=1 (queue active)
May 23 15:02:04 hotdog postfix/error[23679]: AB276518820E: to=<
epicf...@mikesoh.com>, orig_to=, relay=none,
delay=0.53, delays=0.51/0/0/0.01, dsn=5.0.0, status=bounced (User unknown in
virtual alias table)
May 23 15:02:05 hotdog postfix/cleanup[19618]: 003A3518820F: message-id=<
20110523190205.003a35188...@hotdog.mikesoh.com>
May 23 15:02:05 hotdog postfix/bounce[23696]: AB276518820E: sender
non-delivery notification: 003A3518820F
May 23 15:02:05 hotdog postfix/qmgr[23652]: 003A3518820F: from=<>,
size=3879, nrcpt=1 (queue active)
May 23 15:02:05 hotdog postfix/qmgr[23652]: AB276518820E: removed



> >If worse comes to worse, I can just host all of my mailman lists on the
> >lists.mikesoh.com subdomain but would like to be able to use all of my
> >domains to create mailing lists.
>
> Do all your  email domains use the same web domain?
>

Yes.


> Do you care if list mail from the l...@example.net list refers to the
> example.com domain in web URLs?
>

No, as long as it does within e-mails.  For example, on the list page, I
don't care if it says foobar.tld when it really is mikesoh.com but I DO care
if l...@foobar.tld resolves to l...@mikesoh.com.

Thanks again for all of your help!
--
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] Postfix & Mailman not playing well together

2011-05-23 Thread Mark Sapiro
Michael Soh wrote:
>
>On Mon, May 23, 2011 at 3:05 PM, Mark Sapiro  wrote:
>
>> This is documented in Defaults.py in the paragraphs immediately
>> preceding the definitions of DEFAULT_URL_HOST and DEFAULT_EMAIL_HOST.
>>
>
>I was just following the directions on the website, specifically:
>http://www.list.org/mailman-install/postfix-virtual.html


add_virtualhost is not mentioned in the postfix section because it's
not a postfix related setting per se.

Section 7 Review your site defaults urges you to read Defaults.py


>> >add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
>> >
>> >I'm assuming then I'll have to add the following lines:
>> >add_virtualhost(DEFAULT_URL_HOST, 'mikesoh.com')
>> >add_virtualhost(DEFAULT_URL_HOST, 'linuslive.com')
>>
>>
>> No. The url hosts in add_virtualhost directives must be unique.
>> Otherwise each just replaces the prior one.
>>
>> If you aren't going to create lists via the web and are going to create
>> all lists via bin/newlist with the same (default) url host and the -e
>> option for specifying email host (or setting the email host via the
>> list's host_name in the web admin GUI). You don't need add_virtualhost
>> directives.
>>
>
>This is what I would like to do.  I'm a command-line person myself.  And
>since I'd have to run postfix reload after creating the aliases anyway, it
>makes more sense for me to run it via command-line.


You don't have to reload Postfix after changing aliases and/or
virtual-mailman. The commands defined in POSTFIX_ALIAS_CMD and
POSTFIX_MAP_CMD are run automatically and update the .db files and
Postfix will notice they've changed.


>> If you have multiple web domains and want to keep them separate, you
>> need add_virtualhost('web_host_for_this_email_domain', 'email_domain')
>> for each domain.
>>
>
>I didn't put in add_virtualhost() in the Defaults.py or mm_cfg.py and still
>having mail bouncing saying that the alias couldn't be found.


What's in the postfix log?


>If worse comes to worse, I can just host all of my mailman lists on the
>lists.mikesoh.com subdomain but would like to be able to use all of my
>domains to create mailing lists.


Do all your  email domains use the same web domain?

Do you care if list mail from the l...@example.net list refers to the
example.com domain in web URLs?

-- 
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] Postfix & Mailman not playing well together

2011-05-23 Thread Michael Soh
On Mon, May 23, 2011 at 3:05 PM, Mark Sapiro  wrote:

> This is documented in Defaults.py in the paragraphs immediately
> preceding the definitions of DEFAULT_URL_HOST and DEFAULT_EMAIL_HOST.
>

I was just following the directions on the website, specifically:
http://www.list.org/mailman-install/postfix-virtual.html


> >add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
> >
> >I'm assuming then I'll have to add the following lines:
> >add_virtualhost(DEFAULT_URL_HOST, 'mikesoh.com')
> >add_virtualhost(DEFAULT_URL_HOST, 'linuslive.com')
>
>
> No. The url hosts in add_virtualhost directives must be unique.
> Otherwise each just replaces the prior one.
>
> If you aren't going to create lists via the web and are going to create
> all lists via bin/newlist with the same (default) url host and the -e
> option for specifying email host (or setting the email host via the
> list's host_name in the web admin GUI). You don't need add_virtualhost
> directives.
>

This is what I would like to do.  I'm a command-line person myself.  And
since I'd have to run postfix reload after creating the aliases anyway, it
makes more sense for me to run it via command-line.


> If you have multiple web domains and want to keep them separate, you
> need add_virtualhost('web_host_for_this_email_domain', 'email_domain')
> for each domain.
>

I didn't put in add_virtualhost() in the Defaults.py or mm_cfg.py and still
having mail bouncing saying that the alias couldn't be found.

If worse comes to worse, I can just host all of my mailman lists on the
lists.mikesoh.com subdomain but would like to be able to use all of my
domains to create mailing lists.
--
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] Postfix & Mailman not playing well together

2011-05-23 Thread Mark Sapiro
Michael Soh wrote:
>
>On Mon, May 23, 2011 at 2:41 PM, Mark Sapiro  wrote:
>
>> It looks like epicf...@linuslive.com is being mapped to
>> epicf...@mikesoh.com by virtual_alias_maps, but mikesoh.com is in turn
>> a virtual domain (i.e. in virtual_alias_domains).
>>
>
>Yes, this is correct.  I have a lot of e-mail addresses and it's just easier
>to virtualize the entire domain (hence the mysql hook).
>
>
>> It looks like mydomain is set to mikesoh.com because it defaults
>> myhostname with the first component removed. You either want to set
>> mydomain explicitly to some domain in mydestination or if your Mailman
>> is recent enought to support it, set
>>
>> VIRTUAL_MAILMAN_LOCAL_DOMAIN = 'localhost'
>>
>> in mm_cfg.py and run Mailman's bin/genaliases to rebuild
>> virtual-mailman.
>>
>
>I've tried putting in the variable in mm_cfg.py to no avail.  Still the same
>results.


Did you run Mailman's bin/genaliases after changing mm_cfg.py?

What Mailman version is this?

What's in data/virtual-mailman? Do the 'to' addresses have @localhost
appended. If not, you can append it manually and there are ways to
automate this.


>I've also tried setting mydomain to a destination (
>hotdog.mikesoh.com) and that didn't work either.


What were the postfix log messages in that case?

-- 
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] Postfix & Mailman not playing well together

2011-05-23 Thread Michael Soh
On Mon, May 23, 2011 at 2:41 PM, Mark Sapiro  wrote:

> It looks like epicf...@linuslive.com is being mapped to
> epicf...@mikesoh.com by virtual_alias_maps, but mikesoh.com is in turn
> a virtual domain (i.e. in virtual_alias_domains).
>

Yes, this is correct.  I have a lot of e-mail addresses and it's just easier
to virtualize the entire domain (hence the mysql hook).


> It looks like mydomain is set to mikesoh.com because it defaults
> myhostname with the first component removed. You either want to set
> mydomain explicitly to some domain in mydestination or if your Mailman
> is recent enought to support it, set
>
> VIRTUAL_MAILMAN_LOCAL_DOMAIN = 'localhost'
>
> in mm_cfg.py and run Mailman's bin/genaliases to rebuild
> virtual-mailman.
>

I've tried putting in the variable in mm_cfg.py to no avail.  Still the same
results.  I've also tried setting mydomain to a destination (
hotdog.mikesoh.com) and that didn't work either.  And tried the default
(localdomain) and that failed as well.
--
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] Postfix & Mailman not playing well together

2011-05-23 Thread Michael Soh
On Mon, May 23, 2011 at 2:23 PM, Mark Sapiro  wrote:

> What's in mm_cfg.py?
>
> In particular, is 'linuslive.com' in POSTFIX_STYLE_VIRTUAL_DOMAINS and
> in an add_virtualhost() directive.
>

POSTFIX_STYLE_VIRTUAL_DOMAINS = ['linuslive.com', 'mikesoh.com']

And it looks like there isn't anything listed in the add_virtualhost()
outside of the default.  Modifying these settings weren't in the
documentation.

add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)

I'm assuming then I'll have to add the following lines:
add_virtualhost(DEFAULT_URL_HOST, 'mikesoh.com')
add_virtualhost(DEFAULT_URL_HOST, 'linuslive.com')


> Is the host_name attribute on the lists admin General Options page
> linuslive.com?
>

Yes.
--
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] Postfix & Mailman not playing well together

2011-05-23 Thread Mark Sapiro
Mark Sapiro wrote:

>Michael Soh wrote:
>>
>>Thanks Mark and Geoff for your help.  The fix did work.  However, now trying
>>to use mailman in my virtual domain is proving problematic.
>>
>>I removed the previous epicf...@lists.mikesoh.com and created
>>epicf...@linuslive.com.  The output of the maillog is:
>[...]
>>May 23 14:06:35 hotdog postfix/qmgr[24277]: D897D518820E: from=<
>>michael.c@gmail.com>, size=1996, nrcpt=1 (queue active)
>>May 23 14:06:35 hotdog postfix/error[24526]: D897D518820E: to=<
>>epicf...@mikesoh.com>, orig_to=, relay=none,
>>delay=0.73, delays=0.53/0.04/0/0.16, dsn=5.0.0, status=bounced (User unknown
>>in virtual alias table)
>[...]
>
>
>What's in mm_cfg.py?
>
>In particular, is 'linuslive.com' in POSTFIX_STYLE_VIRTUAL_DOMAINS and
>in an add_virtualhost() directive.


On closer inspection, Those aren't the appropriate questions. It
appears the problem may be in Postfix.

It looks like epicf...@linuslive.com is being mapped to
epicf...@mikesoh.com by virtual_alias_maps, but mikesoh.com is in turn
a virtual domain (i.e. in virtual_alias_domains).

It looks like mydomain is set to mikesoh.com because it defaults
myhostname with the first component removed. You either want to set
mydomain explicitly to some domain in mydestination or if your Mailman
is recent enought to support it, set

VIRTUAL_MAILMAN_LOCAL_DOMAIN = 'localhost'

in mm_cfg.py and run Mailman's bin/genaliases to rebuild
virtual-mailman.

-- 
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] Postfix & Mailman not playing well together

2011-05-23 Thread Mark Sapiro
Michael Soh wrote:
>
>Thanks Mark and Geoff for your help.  The fix did work.  However, now trying
>to use mailman in my virtual domain is proving problematic.
>
>I removed the previous epicf...@lists.mikesoh.com and created
>epicf...@linuslive.com.  The output of the maillog is:
[...]
>May 23 14:06:35 hotdog postfix/qmgr[24277]: D897D518820E: from=<
>michael.c@gmail.com>, size=1996, nrcpt=1 (queue active)
>May 23 14:06:35 hotdog postfix/error[24526]: D897D518820E: to=<
>epicf...@mikesoh.com>, orig_to=, relay=none,
>delay=0.73, delays=0.53/0.04/0/0.16, dsn=5.0.0, status=bounced (User unknown
>in virtual alias table)
[...]


What's in mm_cfg.py?

In particular, is 'linuslive.com' in POSTFIX_STYLE_VIRTUAL_DOMAINS and
in an add_virtualhost() directive.

Is the host_name attribute on the lists admin General Options page
linuslive.com?

-- 
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] Postfix & Mailman not playing well together

2011-05-23 Thread Michael Soh
Thanks Mark and Geoff for your help.  The fix did work.  However, now trying
to use mailman in my virtual domain is proving problematic.

I removed the previous epicf...@lists.mikesoh.com and created
epicf...@linuslive.com.  The output of the maillog is:
May 23 14:06:34 hotdog postfix/smtpd[11643]: connect from
mail-ey0-f181.google.com[209.85.215.181]
May 23 14:06:34 hotdog postfix/smtpd[11643]: setting up TLS connection from
mail-ey0-f181.google.com[209.85.215.181]
May 23 14:06:34 hotdog postfix/smtpd[11643]: Anonymous TLS connection
established from mail-ey0-f181.google.com[209.85.215.181]: TLSv1 with cipher
RC4-SHA (128/128 bits)
May 23 14:06:34 hotdog postfix/smtpd[11643]: D897D518820E: client=
mail-ey0-f181.google.com[209.85.215.181]
May 23 14:06:35 hotdog postfix/cleanup[21957]: D897D518820E: message-id=<
banlktikh5qc7-yqcva8vvyyjxx2+kwc...@mail.gmail.com>
May 23 14:06:35 hotdog postfix/qmgr[24277]: D897D518820E: from=<
michael.c@gmail.com>, size=1996, nrcpt=1 (queue active)
May 23 14:06:35 hotdog postfix/error[24526]: D897D518820E: to=<
epicf...@mikesoh.com>, orig_to=, relay=none,
delay=0.73, delays=0.53/0.04/0/0.16, dsn=5.0.0, status=bounced (User unknown
in virtual alias table)
May 23 14:06:35 hotdog postfix/cleanup[21957]: 78F51518820F: message-id=<
20110523180635.78f515188...@hotdog.mikesoh.com>
May 23 14:06:35 hotdog postfix/bounce[25719]: D897D518820E: sender
non-delivery notification: 78F51518820F
May 23 14:06:35 hotdog postfix/qmgr[24277]: 78F51518820F: from=<>,
size=3886, nrcpt=1 (queue active)
May 23 14:06:35 hotdog postfix/qmgr[24277]: D897D518820E: removed
May 23 14:06:48 hotdog postfix/smtp[28082]: 78F51518820F: to=<
michael.c@gmail.com>, relay=gmail-smtp-in.l.google.com[74.125.67.27]:25,
delay=13, delays=0.09/0.01/4.4/8.7, dsn=2.0.0, status=sent (250 2.0.0 OK
1306174008 k11si7074639yba.80)
May 23 14:06:49 hotdog postfix/qmgr[24277]: 78F51518820F: removed
May 23 14:07:05 hotdog postfix/smtpd[11643]: disconnect from
mail-ey0-f181.google.com[209.85.215.181]


I did remember to reload postfix after creating the list.  No other changes
to postfix have been made.


On Mon, May 23, 2011 at 1:44 PM, Mark Sapiro  wrote:

> On 5/23/2011 10:17 AM, Michael Soh wrote:
> >
> > On Sat, May 21, 2011 at 1:12 AM, Mark Sapiro  wrote:
> >
> > If you want someone to actually look at your Postfix configuration,
> > paste the output from 'postconf -n' rather than the entire 643 line
> > 'postconf' configuration.
> >
> >
> >  http://paste.ubuntu.com/611943/
>
>
> I think Geoff Shang's reply (at
>  -
> only one of the problems of posting as a non-subscriber) was on target.
>
> hash:/var/lib/mailman/data/aliases does not belong in
>
> virtual_alias_maps = hash:/var/lib/mailman/data/virtual-mailman,
> hash:/var/lib/mailman/data/aliases,
> mysql:/etc/postfix/virtual/aliases.cf
>
> It should be
>
> virtual_alias_maps = hash:/var/lib/mailman/data/virtual-mailman,
> mysql:/etc/postfix/virtual/aliases.cf
>
> hash:/var/lib/mailman/data/aliases should only be in alias_maps as it is.
>
> Fix that and see if that fixes the problem.
>
> --
> 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] Postfix & Mailman not playing well together

2011-05-23 Thread Mark Sapiro
On 5/23/2011 10:17 AM, Michael Soh wrote:
> 
> On Sat, May 21, 2011 at 1:12 AM, Mark Sapiro  wrote:
> 
> If you want someone to actually look at your Postfix configuration,
> paste the output from 'postconf -n' rather than the entire 643 line
> 'postconf' configuration.
> 
> 
>  http://paste.ubuntu.com/611943/


I think Geoff Shang's reply (at
 -
only one of the problems of posting as a non-subscriber) was on target.

hash:/var/lib/mailman/data/aliases does not belong in

virtual_alias_maps = hash:/var/lib/mailman/data/virtual-mailman,
hash:/var/lib/mailman/data/aliases,
mysql:/etc/postfix/virtual/aliases.cf

It should be

virtual_alias_maps = hash:/var/lib/mailman/data/virtual-mailman,
 mysql:/etc/postfix/virtual/aliases.cf

hash:/var/lib/mailman/data/aliases should only be in alias_maps as it is.

Fix that and see if that fixes the problem.

-- 
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] Postfix & Mailman not playing well together

2011-05-23 Thread Michael Soh
Sorry my master.cf paste was incomplete:
http://paste.ubuntu.com/611947/

On Mon, May 23, 2011 at 1:17 PM, Michael Soh wrote:

> Thanks so much for your clues.  I've replied in-line
>
> On Sat, May 21, 2011 at 1:12 AM, Mark Sapiro  wrote:
>
>> Don't assume that your HTML markup will pass through a list's content
>> filtering.
>>
>
> Noted.
>
>
>> The problem is that mail to the lists.mikesoh.com domain is delivered
>> by a relay other than Postfix's 'local' delivery and that relay
>> doesn't understand 'pipe' delivery so the string
>> "|/var/lib/mailman/mail/mailman post somelist" in the alias is
>> interpreted as a 'local' address rather than a pipe and thus gets
>> appended with $mydomain.
>>
>
>
>> Right, and if Postfix is using the 'local' relay for this domain, it
>>
>> will run the correct command too.
>>
>
> So how do I get Postfix to correctly run the command?
>
>  >I can't seem to figure out why this is.  I've posted my postfix config on
>> a
>> >pastebin:
>> >http://paste.ubuntu.com/610641/
>>
>>
>> If you want someone to actually look at your Postfix configuration,
>> paste the output from 'postconf -n' rather than the entire 643 line
>> 'postconf' configuration.
>>
>
>  http://paste.ubuntu.com/611943/
>
>  In addition to the above clues, look in the Postfix log (maillog) to
>> see what 'relay' is being used for this mail and figure out why it is
>> what it is rather than 'local'. This may require looking at
>> transport_maps and/or master.cf.
>>
>
> Here is the output from the mail.log:
>
> May 19 15:18:45 hotdog postfix/smtpd[9652]: 957453430E4B: client=
> mail-ey0-f179.google.com[209.85.215.179]
> May 19 15:18:45 hotdog postfix/cleanup[23878]: 957453430E4B: message-id=<
> banlktikskn_wntvgjbkypcq7gnbbuau...@mail.gmail.com>
> May 19 15:18:46 hotdog postfix/qmgr[5173]: 957453430E4B: from=<
> michael.c@gmail.com>, size=1994, nrcpt=1 (queue active)
> May 19 15:18:46 hotdog postfix/error[28625]: 957453430E4B:
> to=<|/var/lib/mailman/mail/mailman post epicf...@mikesoh.com>, orig_to=<
> epicf...@lists.mikesoh.com>, relay=none, delay=1, delays=0.9/0.07/0/0.05,
> dsn=5.0.0, status=bounced (User unknown in virtual alias table)
> May 19 15:18:46 hotdog postfix/cleanup[23878]: 47DAA3430E51: message-id=<
> 20110519191846.47daa3430...@hotdog.mikesoh.com>
> May 19 15:18:46 hotdog postfix/bounce[30003]: 957453430E4B: sender
> non-delivery notification: 47DAA3430E51
> May 19 15:18:46 hotdog postfix/qmgr[5173]: 47DAA3430E51: from=<>,
> size=3968, nrcpt=1 (queue active)
>
>
> And here is my master.cf:
> http://paste.ubuntu.com/611944/
>
> Thanks again for the help!
>
--
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] Postfix & Mailman not playing well together

2011-05-23 Thread Michael Soh
Thanks so much for your clues.  I've replied in-line

On Sat, May 21, 2011 at 1:12 AM, Mark Sapiro  wrote:

> Don't assume that your HTML markup will pass through a list's content
> filtering.
>

Noted.


> The problem is that mail to the lists.mikesoh.com domain is delivered
> by a relay other than Postfix's 'local' delivery and that relay
> doesn't understand 'pipe' delivery so the string
> "|/var/lib/mailman/mail/mailman post somelist" in the alias is
> interpreted as a 'local' address rather than a pipe and thus gets
> appended with $mydomain.
>


> Right, and if Postfix is using the 'local' relay for this domain, it
> will run the correct command too.
>

So how do I get Postfix to correctly run the command?

>I can't seem to figure out why this is.  I've posted my postfix config on a
> >pastebin:
> >http://paste.ubuntu.com/610641/
>
>
> If you want someone to actually look at your Postfix configuration,
> paste the output from 'postconf -n' rather than the entire 643 line
> 'postconf' configuration.
>

 http://paste.ubuntu.com/611943/

In addition to the above clues, look in the Postfix log (maillog) to
> see what 'relay' is being used for this mail and figure out why it is
> what it is rather than 'local'. This may require looking at
> transport_maps and/or master.cf.
>

Here is the output from the mail.log:

May 19 15:18:45 hotdog postfix/smtpd[9652]: 957453430E4B: client=
mail-ey0-f179.google.com[209.85.215.179]
May 19 15:18:45 hotdog postfix/cleanup[23878]: 957453430E4B: message-id=<
banlktikskn_wntvgjbkypcq7gnbbuau...@mail.gmail.com>
May 19 15:18:46 hotdog postfix/qmgr[5173]: 957453430E4B: from=<
michael.c@gmail.com>, size=1994, nrcpt=1 (queue active)
May 19 15:18:46 hotdog postfix/error[28625]: 957453430E4B:
to=<|/var/lib/mailman/mail/mailman post epicf...@mikesoh.com>, orig_to=<
epicf...@lists.mikesoh.com>, relay=none, delay=1, delays=0.9/0.07/0/0.05,
dsn=5.0.0, status=bounced (User unknown in virtual alias table)
May 19 15:18:46 hotdog postfix/cleanup[23878]: 47DAA3430E51: message-id=<
20110519191846.47daa3430...@hotdog.mikesoh.com>
May 19 15:18:46 hotdog postfix/bounce[30003]: 957453430E4B: sender
non-delivery notification: 47DAA3430E51
May 19 15:18:46 hotdog postfix/qmgr[5173]: 47DAA3430E51: from=<>, size=3968,
nrcpt=1 (queue active)


And here is my master.cf:
http://paste.ubuntu.com/611944/

Thanks again for the help!
--
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] Postfix & Mailman not playing well together

2011-05-21 Thread Geoff Shang

On Fri, 20 May 2011, Michael Soh wrote:


<"|/var/lib/mailman/mail/
mailman post somelist"@mikesoh.com> (expanded from
  >): User unknown
in virtual alias table


I'm not a Postfix expert, but the following entry in your configuration 
file is problematic:


virtual_alias_maps = hash:/var/lib/mailman/data/virtual-mailman, 
hash:/var/lib/mailman/data/aliases, 
mysql:/etc/postfix/virtual/aliases.cf


I can't comment on your database setup, but your Mailman aliases should 
not be here, they should be in alias_maps.  And in fact they are also.  So 
I'm sure this doesn't help your situation.


Geoff.

--
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] Postfix & Mailman not playing well together

2011-05-20 Thread Mark Sapiro
Michael Soh wrote:
>
>When I e-mail the list, I get a bounce with the following information:
>
>This is the mail system at host hotdog.mikesoh.com.
>
>I'm sorry to have to inform you that your message could not
>be delivered to one or more recipients. It's attached below.
>
>For further assistance, please send mail to postmaster.
>
>If you do so, please include this problem report. You can
>delete your own text from the attached returned message.
>
>  The mail system
>
><"|/var/lib/mailman/mail/
>mailman post somelist"@mikesoh.com> (expanded from
>   >): User unknown
>in virtual alias table
[...]
>
>The weird part is the command that I've highlighted in green.


Don't assume that your HTML markup will pass through a list's content
filtering.


>For some
>reason, postfix or mailman (I haven't been able to determine which one) is
>appending "@mikesoh.com" to the command.


The problem is that mail to the lists.mikesoh.com domain is delivered
by a relay other than Postfix's 'local' delivery and that relay
doesn't understand 'pipe' delivery so the string
"|/var/lib/mailman/mail/mailman post somelist" in the alias is
interpreted as a 'local' address rather than a pipe and thus gets
appended with $mydomain.


When I run the command exactly
>within a terminal, it says no such list exists.  However, if I only run the
>command within the quotes, it runs correctly.


Right, and if Postfix is using the 'local' relay for this domain, it
will run the correct command too.


>I can't seem to figure out why this is.  I've posted my postfix config on a
>pastebin:
>http://paste.ubuntu.com/610641/


If you want someone to actually look at your Postfix configuration,
paste the output from 'postconf -n' rather than the entire 643 line
'postconf' configuration.


>Can anyone offer me a clue?


In addition to the above clues, look in the Postfix log (maillog) to
see what 'relay' is being used for this mail and figure out why it is
what it is rather than 'local'. This may require looking at
transport_maps and/or master.cf.

-- 
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] Postfix & Mailman not playing well together

2011-05-20 Thread Michael Soh
Good morning all!

I'm hoping you guys might be able to help me figure out what's going on with
my mailman setup.

I'm running 2.1.13 on a Ubuntu 10 installation.  I'm running postfix as my
MTA.  I've set up postfix as instructed on the list.org documentation.  I'm
running into a problem that I can't seem to get my head around.

When I e-mail the list, I get a bounce with the following information:

This is the mail system at host hotdog.mikesoh.com.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

  The mail system

<"|/var/lib/mailman/mail/
mailman post somelist"@mikesoh.com> (expanded from
   >): User unknown
in virtual alias table

Final-Recipient: rfc822; "|/var/lib/mailman/mail/mailman post somelist"@
mikesoh.com
Original-Recipient:
rfc822;somel...@lists.mikesoh.com
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; User unknown in virtual alias table

The weird part is the command that I've highlighted in green.  For some
reason, postfix or mailman (I haven't been able to determine which one) is
appending "@mikesoh.com" to the command.  When I run the command exactly
within a terminal, it says no such list exists.  However, if I only run the
command within the quotes, it runs correctly.

I can't seem to figure out why this is.  I've posted my postfix config on a
pastebin:
http://paste.ubuntu.com/610641/

Can anyone offer me a clue?

Thanks!

Mike
--
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