Mailman and / or Postfix problem

Hello,
I am not sure
if sending below question to this discussion list is the best way to resolve a problem that we are are getting in our
university. Otherwise, please, send me a better way
to relate this problem.
Here, in University of
Rio de Janeiro State (Universidade do Estado do Rio de Janeiro - UERJ), we are trying to
migrate a Mailman Server 2.1.9 with
Postfix Server 2.3.3 to a newer computer with Postfix 2.6.6
and Mailman 2.1.12 , registered as
e-listas2.uerj.br in DNS. We do not have any problems with the first (old) system and it is running ok.
At the second system we
have installed and configurated Mailman and Postfix. Also, we have created a test list (dit-so@e-listas2.uerj.br)
and everything seems ok, according web
interface administration of Mailman.
Files in /var/lib/mailman seems ok, too.
The problem is that
when I am trying to post a mail from E-mail server (which runs in a separated server) to the list that
we have created , it is logged in the /var/log/maillog
of the new lists server (Mailman 2.1.12) the following messages:
May 23 21:33:12 e-listas2 postfix/smtpd[1918]:
connect from master.uerj.br[152.92.1.9] (our E-mail Server)
May 23 21:33:12 e-listas2 postfix/smtpd[1918]:
B734CDF713: client=master.uerj.br[152.92.1.9]
May 23 21:33:12 e-listas2 postfix/cleanup[1921]:
B734CDF713: message-id=<0e0fb214e9b853dc75424da0890f918a.squirrel@master.uerj.br>
May 23 21:33:12 e-listas2 postfix/qmgr[1761]:
B734CDF713: from=<jovino@uerj.br>, size=1409, nrcpt=1 (queue active)
May 23 21:33:12 e-listas2 postfix/smtpd[1918]:
disconnect from master.uerj.br[152.92.1.9]
May 23 21:33:12 e-listas2 postfix/local[1922]:
B734CDF713: to=<dit-so@e-listas2.uerj.br>, relay=local, delay=0.23, delays=0.03/0.03/0/0.17, dsn=2.0.0, status=sent (delivered to command: /usr/lib/mailman/mail/mailman post dit-so)
May 23 21:33:12 e-listas2 postfix/qmgr[1761]:
B734CDF713: removed
May 23 21:33:13 e-listas2 postfix/smtpd[1918]:
connect from localhost[::1]
May 23 21:33:13 e-listas2 postfix/smtpd[1918]:
NOQUEUE: reject: RCPT from localhost[::1]: 554 5.7.1 <mselecto@uerj.br>: Relay access denied; from=<dit-so-bounces@e-listas2.uerj.br> to=<mselecto@uerj.br> proto=ESMTP helo=<e-listas2.uerj.br>
May 23 21:33:13 e-listas2 postfix/smtpd[1918]:
NOQUEUE: reject: RCPT from localhost[::1]: 554 5.7.1 <jovino@uerj.br>: Relay access denied; from=<dit-so-bounces@e-listas2.uerj.br> to=<jovino@uerj.br> proto=ESMTP helo=<e-listas2.uerj.br>
May 23 21:33:13 e-listas2 postfix/smtpd[1918]:
disconnect from localhost[::1]
I think we have already exhausted our knowledge
about these softwares.
Configuration files /etc/mailman/mm_cc.py
and /etc/postfix/main.cf follow:
======================================================================================
mm_cc.py
========
# Copyright (C) 1998,1999,2000,2001,2002 by the Free
Software Foundation, Inc.
from Defaults import *
import pwd, grp
MAILMAN_UID = pwd.getpwnam('mailman')[2]
MAILMAN_GID = grp.getgrnam('mailman')[2]
from socket import *
try:
fqdn = getfqdn()
except:
fqdn =
'mm_cfg_has_unknown_host_domains'
DEFAULT_URL_HOST = 'e-listas2.uerj.br'
DEFAULT_EMAIL_HOST = 'e-listas2.uerj.br'
DEFAULT_URL_PATTERN = 'https://%s/mailman'
PRIVATE_ARCHIVE_URL = '/cgi-bin/mailman/private'
add_virtualhost(DEFAULT_URL_HOST,
DEFAULT_EMAIL_HOST)
MTA = 'Postfix'
=========================================================================================
conf.cf
=======
myhostname = e-listas2.uerj.br
mydomain = e-listas2.uerj.br
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain,
localhost, $mydomain
mynetworks = 127.0.0.1/32 152.92.1.9
relay_domains =
home_mailbox = Mailbox
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/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
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory =
/usr/share/doc/postfix-2.6.6/samples
readme_directory =
/usr/share/doc/postfix-2.6.6/README_FILES
unknown_local_recipient_reject_code = 550
alias_maps =
hash:/etc/aliases,hash:/etc/mailman/aliases
alias_database = hash:/etc/aliases
Thanks a lot for any information.
==============================
Jovino de Vasconcelos Borret
UERJ - DINFO - DIT

On 05/24/2013 05:19 PM, jovino@uerj.br wrote:
[...]
Here the message was properly posted to the mail wrapper which queued it. Everything up to this point is good.
[...]
May 23 21:33:13 e-listas2 postfix/smtpd[1918]:
connect from localhost[::1]
Your localhost is connecting via IPv6.
Here Mailman is trying to send the post to the list members or maybe sending a notice to the list moderators and Postfix won't relay to those addresses.
mm_cc.py
I assume this is really mm_cfg.py, but I don't think any of it is relevant to this issue.
[...]
conf.cf
And this I assume in main.cf. Tip: in general people don't want to see your main.cf. It's too unwieldy. You should post the output from 'postconf -n'.
[...]
mydestination = $myhostname, localhost.$mydomain,
localhost, $mydomain
mydestination doesn't include the uerj.br domain.
mynetworks = 127.0.0.1/32 152.92.1.9
and mynetworks does not include the IPv6 address of localhost. Thus, uerj.br is not a local domain and the originating server is not in what Postfix is told is the local network so Postfix won't relay the mail.
There are various ways to fix this.
add either localhost or ::1 to mynetworks.
edit /etc/hosts so that the name localhost is 127.0.0.1 instead of ::1
put
SMTPHOST = 'the /etc/hosts name of 127.0.0.1'
in mm_cfg.py.
These three solutions are mutually exclusive. You only need one of them. Which one is best depends on what else your server is used for.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

Hello Mark, Thanks a lot for your help. We have used your second option (Edit /etc/hosts....) and server seems run fine now.
Jovino de Vasconcelos Borret UERJ - Brazil
On 05/24/2013 05:19 PM, jovino@uerj.br wrote:
The problem is that
when I am trying to post a mail from E-mail server (which
runs in a separated server) to the list that
we have created , it is logged in the /var/log/maillog
of the new lists server (Mailman 2.1.12) the following
messages:
[...]
May 23 21:33:12 e-listas2 postfix/local[1922]:
B734CDF713: to=<dit-so@e-listas2.uerj.br>, relay=local, delay=0.23,
delays=0.03/0.03/0/0.17, dsn=2.0.0, status=sent (delivered to command:
/usr/lib/mailman/mail/mailman post dit-so)
Here the message was properly posted to the mail wrapper which queued
it. Everything up to this point is good.
[...]
May 23 21:33:13 e-listas2 postfix/smtpd[1918]:
connect from localhost[::1]
Your localhost is connecting via IPv6.
May 23 21:33:13 e-listas2 postfix/smtpd[1918]:
NOQUEUE: reject: RCPT from localhost[::1]: 554 5.7.1
<mselecto@uerj.br>: Relay access denied;
from=<dit-so-bounces@e-listas2.uerj.br> to=<mselecto@uerj.br>
proto=ESMTP helo=<e-listas2.uerj.br>
May 23 21:33:13 e-listas2 postfix/smtpd[1918]:
NOQUEUE: reject: RCPT from localhost[::1]: 554 5.7.1
<jovino@uerj.br>: Relay access denied;
from=<dit-so-bounces@e-listas2.uerj.br> to=<jovino@uerj.br>
proto=ESMTP helo=<e-listas2.uerj.br>
Here Mailman is trying to send the post to the list members or maybe
sending a notice to the list moderators and Postfix won't relay to those
addresses.
mm_cc.py
I assume this is really mm_cfg.py, but I don't think any of it is
relevant to this issue.
[...]
conf.cf
And this I assume in main.cf. Tip: in general people don't want to see
your main.cf. It's too unwieldy. You should post the output from
'postconf -n'.
[...]
mydestination = $myhostname, localhost.$mydomain,
localhost, $mydomain
mydestination doesn't include the uerj.br domain.
mynetworks = 127.0.0.1/32 152.92.1.9
and mynetworks does not include the IPv6 address of localhost. Thus,
uerj.br is not a local domain and the originating server is not in what
Postfix is told is the local network so Postfix won't relay the mail.
There are various ways to fix this.
SMTPHOST = 'the /etc/hosts name of 127.0.0.1'
in mm_cfg.py.
These three solutions are mutually exclusive. You only need one of them.
Which one is best depends on what else your server is used for.
--
Mark Sapiro <mark@msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan

On 05/24/2013 05:19 PM, jovino@uerj.br wrote:
[...]
Here the message was properly posted to the mail wrapper which queued it. Everything up to this point is good.
[...]
May 23 21:33:13 e-listas2 postfix/smtpd[1918]:
connect from localhost[::1]
Your localhost is connecting via IPv6.
Here Mailman is trying to send the post to the list members or maybe sending a notice to the list moderators and Postfix won't relay to those addresses.
mm_cc.py
I assume this is really mm_cfg.py, but I don't think any of it is relevant to this issue.
[...]
conf.cf
And this I assume in main.cf. Tip: in general people don't want to see your main.cf. It's too unwieldy. You should post the output from 'postconf -n'.
[...]
mydestination = $myhostname, localhost.$mydomain,
localhost, $mydomain
mydestination doesn't include the uerj.br domain.
mynetworks = 127.0.0.1/32 152.92.1.9
and mynetworks does not include the IPv6 address of localhost. Thus, uerj.br is not a local domain and the originating server is not in what Postfix is told is the local network so Postfix won't relay the mail.
There are various ways to fix this.
add either localhost or ::1 to mynetworks.
edit /etc/hosts so that the name localhost is 127.0.0.1 instead of ::1
put
SMTPHOST = 'the /etc/hosts name of 127.0.0.1'
in mm_cfg.py.
These three solutions are mutually exclusive. You only need one of them. Which one is best depends on what else your server is used for.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

Hello Mark, Thanks a lot for your help. We have used your second option (Edit /etc/hosts....) and server seems run fine now.
Jovino de Vasconcelos Borret UERJ - Brazil
On 05/24/2013 05:19 PM, jovino@uerj.br wrote:
The problem is that
when I am trying to post a mail from E-mail server (which
runs in a separated server) to the list that
we have created , it is logged in the /var/log/maillog
of the new lists server (Mailman 2.1.12) the following
messages:
[...]
May 23 21:33:12 e-listas2 postfix/local[1922]:
B734CDF713: to=<dit-so@e-listas2.uerj.br>, relay=local, delay=0.23,
delays=0.03/0.03/0/0.17, dsn=2.0.0, status=sent (delivered to command:
/usr/lib/mailman/mail/mailman post dit-so)
Here the message was properly posted to the mail wrapper which queued
it. Everything up to this point is good.
[...]
May 23 21:33:13 e-listas2 postfix/smtpd[1918]:
connect from localhost[::1]
Your localhost is connecting via IPv6.
May 23 21:33:13 e-listas2 postfix/smtpd[1918]:
NOQUEUE: reject: RCPT from localhost[::1]: 554 5.7.1
<mselecto@uerj.br>: Relay access denied;
from=<dit-so-bounces@e-listas2.uerj.br> to=<mselecto@uerj.br>
proto=ESMTP helo=<e-listas2.uerj.br>
May 23 21:33:13 e-listas2 postfix/smtpd[1918]:
NOQUEUE: reject: RCPT from localhost[::1]: 554 5.7.1
<jovino@uerj.br>: Relay access denied;
from=<dit-so-bounces@e-listas2.uerj.br> to=<jovino@uerj.br>
proto=ESMTP helo=<e-listas2.uerj.br>
Here Mailman is trying to send the post to the list members or maybe
sending a notice to the list moderators and Postfix won't relay to those
addresses.
mm_cc.py
I assume this is really mm_cfg.py, but I don't think any of it is
relevant to this issue.
[...]
conf.cf
And this I assume in main.cf. Tip: in general people don't want to see
your main.cf. It's too unwieldy. You should post the output from
'postconf -n'.
[...]
mydestination = $myhostname, localhost.$mydomain,
localhost, $mydomain
mydestination doesn't include the uerj.br domain.
mynetworks = 127.0.0.1/32 152.92.1.9
and mynetworks does not include the IPv6 address of localhost. Thus,
uerj.br is not a local domain and the originating server is not in what
Postfix is told is the local network so Postfix won't relay the mail.
There are various ways to fix this.
SMTPHOST = 'the /etc/hosts name of 127.0.0.1'
in mm_cfg.py.
These three solutions are mutually exclusive. You only need one of them.
Which one is best depends on what else your server is used for.
--
Mark Sapiro <mark@msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
jovino@uerj.br
-
Mark Sapiro