Re: [Mailman-Users] Issue with postfix-to-mailman.py (Command died with status 127)

2015-04-19 Thread Laura Creighton
In a message of Sun, 19 Apr 2015 18:01:17 +0200, Matthieu Berjon writes:
>
>
>On 04/19/2015 05:27 PM, Mark Sapiro wrote:
>> On 04/19/2015 02:30 AM, Matthieu Berjon wrote:
>>> Hello to all,
>>>
>>> I met an issue in trying to set up Mailman. Here is the error message I
>>> get from postfix:
>>>
>>>  Command died with status 127:
>>>  "/usr/local/mailman/postfix-to-mailman.py". Command
>>>  output: env: python: No such file or directory
>> ...
>>> /usr/local/mailman/postfix-to-mailman.py
>>>
>>> # Configuration variables - Change these for your site if necessary.
>>> MailmanHome = "/usr/local/mailman"; # Mailman home directory.
>>> MailmanOwner = "postmas...@earswideopen.net"; # Postmaster and abuse
>>> mail recipient.
>>
>>
>> Is the above missing something? I suspect the above is actually preceded
>> by something like
>>
>> #! /usr/bin/env python
>>
>> and env is complaining that it can't find 'python' because there is no
>> 'python' in $PATH (i.e. Postfix's search path).
>>
>> Also, please read  and the things
>> linked from the last paragraph thereof.
>
>Thanks a lot to all of you. You let me to understand that 
>postfix-to-mailman.py was unecessary and not part of inital project. I 
>removed it from the equation, updated the postfix configuration and it 
>worked like a charm.
>
>Many thanks to all of you :)
>
>Have a good evening,
>-- 
>Matthieu Berjon

Very happy to help.  Thank you for letting us know that things worked.

Laura Creighton

--
Mailman-Users mailing list Mailman-Users@python.org
https://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: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Issue with postfix-to-mailman.py (Command died with status 127)

2015-04-19 Thread Matthieu Berjon


On 04/19/2015 05:27 PM, Mark Sapiro wrote:

On 04/19/2015 02:30 AM, Matthieu Berjon wrote:

Hello to all,

I met an issue in trying to set up Mailman. Here is the error message I
get from postfix:

 Command died with status 127:
 "/usr/local/mailman/postfix-to-mailman.py". Command
 output: env: python: No such file or directory

...

/usr/local/mailman/postfix-to-mailman.py

# Configuration variables - Change these for your site if necessary.
MailmanHome = "/usr/local/mailman"; # Mailman home directory.
MailmanOwner = "postmas...@earswideopen.net"; # Postmaster and abuse
mail recipient.



Is the above missing something? I suspect the above is actually preceded
by something like

#! /usr/bin/env python

and env is complaining that it can't find 'python' because there is no
'python' in $PATH (i.e. Postfix's search path).

Also, please read  and the things
linked from the last paragraph thereof.


Thanks a lot to all of you. You let me to understand that 
postfix-to-mailman.py was unecessary and not part of inital project. I 
removed it from the equation, updated the postfix configuration and it 
worked like a charm.


Many thanks to all of you :)

Have a good evening,
--
Matthieu Berjon
--
Mailman-Users mailing list Mailman-Users@python.org
https://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: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Issue with postfix-to-mailman.py (Command died with status 127)

2015-04-19 Thread Laura Creighton
>On 4/19/2015 4:30 AM, Matthieu Berjon wrote:
>> Hello to all,
>>
>> I met an issue in trying to set up Mailman. Here is the error message I
>> get from postfix:
>>
>>  Command died with status 127:
>>  "/usr/local/mailman/postfix-to-mailman.py". Command
>>  output: env: python: No such file or directory
>>
>>
>> I have a working postfix server running (at least, that's what I believe
>> as emails for user account works). When I sent a message a message to
>> the list, postfix seems to manage correctly the email and doesn't
>> complain about it.

Your problem is that env is complaining that it cannot find python.

Therefore I would conclude that there is no python in Postfix's search
path.

Laura Creighton
--
Mailman-Users mailing list Mailman-Users@python.org
https://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: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Issue with postfix-to-mailman.py (Command died with status 127)

2015-04-19 Thread Mark Sapiro
On 04/19/2015 02:30 AM, Matthieu Berjon wrote:
> Hello to all,
> 
> I met an issue in trying to set up Mailman. Here is the error message I
> get from postfix:
> 
> Command died with status 127:
> "/usr/local/mailman/postfix-to-mailman.py". Command
> output: env: python: No such file or directory
...
> /usr/local/mailman/postfix-to-mailman.py
> 
> # Configuration variables - Change these for your site if necessary.
> MailmanHome = "/usr/local/mailman"; # Mailman home directory.
> MailmanOwner = "postmas...@earswideopen.net"; # Postmaster and abuse
> mail recipient.


Is the above missing something? I suspect the above is actually preceded
by something like

#! /usr/bin/env python

and env is complaining that it can't find 'python' because there is no
'python' in $PATH (i.e. Postfix's search path).

Also, please read  and the things
linked from the last paragraph thereof.

-- 
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
https://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: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Issue with postfix-to-mailman.py (Command died with status 127)

2015-04-19 Thread Barry S. Finkel

On 4/19/2015 4:30 AM, Matthieu Berjon wrote:

Hello to all,

I met an issue in trying to set up Mailman. Here is the error message I
get from postfix:

 Command died with status 127:
 "/usr/local/mailman/postfix-to-mailman.py". Command
 output: env: python: No such file or directory


I have a working postfix server running (at least, that's what I believe
as emails for user account works). When I sent a message a message to
the list, postfix seems to manage correctly the email and doesn't
complain about it.

My guess is that I probably missed something obvious or didn't
understand something in the configuration.

What I'm using:

- FreeBSD 10.1-RELEASE-p6
- Postfix 2.11.4,1
- Mailman 2.1.20

Here some outputs that maybe would help.

postconf -n

alias_maps = hash:/etc/postfix/aliases,
hash:/usr/local/mailman/data/aliases
command_directory = /usr/local/sbin
config_directory = /usr/local/etc/postfix
daemon_directory = /usr/local/libexec/postfix
data_directory = /var/db/postfix
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd
$daemon_directory/$process_name $process_id & sleep 5
home_mailbox = Maildir/
html_directory = /usr/local/share/doc/postfix
inet_protocols = ipv4
mail_owner = postfix
mailman_destination_recipient_limit = 1
mailq_path = /usr/local/bin/mailq
manpage_directory = /usr/local/man
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = earswideopen.net
myhostname = smtp.earswideopen.net
mynetworks_style = host
myorigin = $mydomain
newaliases_path = /usr/local/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/local/share/doc/postfix
recipient_delimiter = +
relay_domains = lists.earswideopen.net
sample_directory = /usr/local/etc/postfix
sendmail_path = /usr/local/sbin/sendmail
setgid_group = maildrop
smtpd_banner = $myhostname ESMTP $mail_name
soft_bounce = no
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550

/etc/postfix/master.cf

smtp  inet  n   -   n   -   -   smtpd
mailman   unix  -   n   n   -   -   pipe
   flags=FR user=mailman:mailman
argv=/usr/local/mailman/postfix-to-mailman.py
   ${nexthop} ${user}

/usr/local/mailman/postfix-to-mailman.py

# Configuration variables - Change these for your site if necessary.
MailmanHome = "/usr/local/mailman"; # Mailman home directory.
MailmanOwner = "postmas...@earswideopen.net"; # Postmaster and abuse
mail recipient.

By the way, this file belongs to mailman:mailman


I'm quite lost on this error and didn't find any information about this
kind of issue lately. If someone has some ideas, that would be much
appreciated. If I forgot to mention something or if you need any more
clarification, please ask, I will be more than happy to help.

Have a great Sunday,

--
Matt


Look at


http://wiki.list.org/DOC/How%20do%20I%20configure%20postfix_to_mailman.py%3F

That postfix_to_mailman module is not part of the SourceForge
Mailman; it has been added by Debian (and Ubuntu) as part of their
Mailman package.  The basic response that you will get from subscribers
to this list is that this module should not be used.  I have not looked
at the module code, so I have no idea what "problem" it was written to
solve.

As a related side issue - When I was managing a Mailman system on
an Ubuntu server, I researched the patches in the Ubuntu package.
Many were not documented, and I could find nothing about the problem(s)
they were written to solve.  And one patch removes a library that is
sometimes needed.   I decided at that time that it was better for me to
create my own Ubuntu package from the SourceForge source and install
that.  If I had a problem, I could post it on this list and get
expert advice.

--Barry Finkel



--
Mailman-Users mailing list Mailman-Users@python.org
https://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: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Port is closed

2015-04-19 Thread Mark Sapiro
On 04/19/2015 02:23 AM, EyeLand wrote:
> control panel mailman http://vps1.ournet.biz/cgi-bin/mailman/admin/mailman


It works for me. What is your issue? That URL works and returns
Mailman's admin login page in Russian.

If you are still having a problem, the issue is either your particular
IP is being blocked by the server or it is somewhere in the route from
you to the server.


> root@vps1:~# netstat -L -n -t
> netstat: invalid option -- 'L'


Sorry, that should have been

 netstat -l -n -t

but that is no longer relevant as we have already determined that the
server is listening.

-- 
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
https://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: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] Issue with postfix-to-mailman.py (Command died with status 127)

2015-04-19 Thread Matthieu Berjon

Hello to all,

I met an issue in trying to set up Mailman. Here is the error message I 
get from postfix:


Command died with status 127:
"/usr/local/mailman/postfix-to-mailman.py". Command
output: env: python: No such file or directory


I have a working postfix server running (at least, that's what I believe 
as emails for user account works). When I sent a message a message to 
the list, postfix seems to manage correctly the email and doesn't 
complain about it.


My guess is that I probably missed something obvious or didn't 
understand something in the configuration.


What I'm using:

- FreeBSD 10.1-RELEASE-p6
- Postfix 2.11.4,1
- Mailman 2.1.20

Here some outputs that maybe would help.

postconf -n

alias_maps = hash:/etc/postfix/aliases, hash:/usr/local/mailman/data/aliases
command_directory = /usr/local/sbin
config_directory = /usr/local/etc/postfix
daemon_directory = /usr/local/libexec/postfix
data_directory = /var/db/postfix
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd 
$daemon_directory/$process_name $process_id & sleep 5

home_mailbox = Maildir/
html_directory = /usr/local/share/doc/postfix
inet_protocols = ipv4
mail_owner = postfix
mailman_destination_recipient_limit = 1
mailq_path = /usr/local/bin/mailq
manpage_directory = /usr/local/man
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = earswideopen.net
myhostname = smtp.earswideopen.net
mynetworks_style = host
myorigin = $mydomain
newaliases_path = /usr/local/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/local/share/doc/postfix
recipient_delimiter = +
relay_domains = lists.earswideopen.net
sample_directory = /usr/local/etc/postfix
sendmail_path = /usr/local/sbin/sendmail
setgid_group = maildrop
smtpd_banner = $myhostname ESMTP $mail_name
soft_bounce = no
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550

/etc/postfix/master.cf

smtp  inet  n   -   n   -   -   smtpd
mailman   unix  -   n   n   -   -   pipe
  flags=FR user=mailman:mailman 
argv=/usr/local/mailman/postfix-to-mailman.py

  ${nexthop} ${user}

/usr/local/mailman/postfix-to-mailman.py

# Configuration variables - Change these for your site if necessary.
MailmanHome = "/usr/local/mailman"; # Mailman home directory.
MailmanOwner = "postmas...@earswideopen.net"; # Postmaster and abuse 
mail recipient.


By the way, this file belongs to mailman:mailman


I'm quite lost on this error and didn't find any information about this 
kind of issue lately. If someone has some ideas, that would be much 
appreciated. If I forgot to mention something or if you need any more 
clarification, please ask, I will be more than happy to help.


Have a great Sunday,

--
Matt
--
Mailman-Users mailing list Mailman-Users@python.org
https://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: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org