FAQ
I'm having difficulty getting mailman with sendmail to work on a RedHat
5 box.

First, I check that sendmail's prog mailer is working. I add an alias

test: "|/bin/logger -i -p local3.info test"

to my aliases file, restart sendmail, and send test an email

Mar 24 14:26:06 wwwtest sendmail[12555]: o2OEQ6Bi012555: from=root,
sizeH, class=0, nrcpts=1,
msgid=<201003241426.o2OEQ6Bi012555 at wwwtest.xxx.uk>, relay=root at localhost

Mar 24 14:26:06 wwwtest sendmail[12556]: o2OEQ6AN012556:
from=<root at wwwtest.xxx.uk>, size58, class=0, nrcpts=1,
msgid=<201003241426.o2OEQ6Bi012555 at wwwtest.xxx.uk>, proto=ESMTP,
daemon=MTA, relay=localhost.localdomain [127.0.0.1]Mar 24 14:26:06
wwwtest sendmail[12555]: o2OEQ6Bi012555: to=test at wwwtest.xxx.uk,
ctladdr=root (0/0), delay�:00:00, xdelay�:00:00, mailer=relay,
pri0048, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent
(o2OEQ6AN012556 Message accepted for delivery)

Mar 24 14:26:06 wwwtest sendmail[12557]: o2OEQ6AN012556:
to="|/bin/logger -i -p local3.info test", ctladdr=(51/0), delay�:00:00, xdelay�:00:00, mailer=prog, pri0599,
dsn=2.0.0, stat=Sent


Syslog contains

Mar 24 14:26:06 wwwtest logger[12558]: test

So it worked.


/usr/local/mailman/Mailman/mm_cfg.py contains

DEFAULT_URL_HOST = "wwwtest.xxx.uk"

DEFAULT_EMAIL_HOST = "wwwtest.xxx.uk"

DEFAULT_URL_PATTERN = 'http://%s/mailman/'

#add_virtualhost('wwwtest.xxx.uk')

add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)

[root at wwwtest mail]#


I've a mailman list set up, with a few members, and the appropriate
aliases are there.


mail -s test mailman at wwwtest.xxx.uk


/var/log/maillog contains


Mar 24 14:27:13 wwwtest sendmail[12565]: o2OERDl0012565: from=root,
sizeQ, class=0, nrcpts=1,
msgid=<201003241427.o2OERDl0012565 at wwwtest.xxx.uk>, relay=root at localhost

Mar 24 14:27:13 wwwtest sendmail[12566]: o2OERDDM012566:
from=<root at wwwtest.xxx.uk>, size64, class=0, nrcpts=1,
msgid=<201003241427.o2OERDl0012565 at wwwtest.xxx.uk>, proto=ESMTP,
daemon=MTA, relay=localhost.localdomain [127.0.0.1]Mar 24 14:27:13
wwwtest sendmail[12565]: o2OERDl0012565: to=mailman at wwwtest.xxx.uk,
ctladdr=root (0/0), delay�:00:00, xdelay�:00:00, mailer=relay,
pri0051, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent
(o2OERDDM012566 Message accepted for delivery)

Mar 24 14:27:13 wwwtest sendmail[12567]: o2OERDDM012566:
to="|/usr/local/mailman/mail/mailman post mailman",
ctladdr=(51/0), delay�:00:00,
xdelay�:00:00, mailer=prog, pri0608, dsn=2.0.0, stat=Sent


Now things go wrong, mailman (or sendmail) forwards the mail to the site
relay, mercury, which rejects it, user unknown. I _think_ it is mailman
forwarding the mail because if it were sendmail, there would be a log
entry of sendmail talking to the site relay.


Mar 24 14:27:14 wwwtest sendmail[12569]: o2OEREo5012569:
from=<mailman-bounces at mercury.xxx.uk>, size84, class=-60, nrcpts=1,
msgid=<mailman.6.1269440833.27154.mailman at mercury.xxx.uk>, proto=ESMTP,
daemon=MTA, relay=localhost.localdomain [127.0.0.1]

Mar 24 14:27:14 wwwtest sendmail[12570]: o2OEREo5012569:
to=<root at wwwtest.xxx.uk>, delay�:00:00, xdelay�:00:00, mailer=local,
pri9300, dsn=2.0.0, stat=Sent

Mar 24 14:27:14 wwwtest sendmail[12572]: o2OERET3012572:
from=<mailman-bounces at mercury.xxx.uk>, size&25, class=-60, nrcpts=1,
msgid=<mailman.8.1269440833.27154.mailman at mercury.xxx.uk>, proto=ESMTP,
daemon=MTA, relay=localhost.localdomain [127.0.0.1]

Mar 24 14:27:14 wwwtest sendmail[12574]: o2OERET3012572:
to=<mailman-owner at mercury.xxx.uk>, delay�:00:00, xdelay�:00:00,
mailer=relay, pri#0625, relay=mercury.xxx.uk. [xxx.xxx.240.183],
dsn=5.1.1, stat=User unknown

Mar 24 14:27:14 wwwtest sendmail[12574]: o2OERET3012572: o2OERET3012574:
DSN: User unknown

Mar 24 14:27:14 wwwtest sendmail[12574]: o2OERET3012574:
to=<mailman-bounces at mercury.xxx.uk>, delay�:00:00, xdelay�:00:00,
mailer=relay, pri0000, relay=mercury.xxx.uk. [xxx.xxx.240.183],
dsn=5.1.1, stat=User unknown

Mar 24 14:27:14 wwwtest sendmail[12574]: o2OERET3012574: o2OERET4012574:
return to sender: User unknown

Mar 24 14:27:14 wwwtest sendmail[12574]: o2OERET4012574: to=root,
delay�:00:00, xdelay�:00:00, mailer=local, pri0000, dsn=2.0.0,
stat=Sent


This appears in the relay logs at the same time.


Mar 24 14:27:14 mercury sendmail[19882]: o2OEREiM019882:
<mailman-owner at mercury.xxx.uk>... User unknown

Mar 24 14:27:14 mercury sendmail[19882]: o2OEREiM019882:
from=<mailman-bounces at mercury.xxx.uk>, size(51, class=0, nrcpts=0,
proto=ESMTP, daemon=MTA, relay=wwwtest [xxx.xxx.240.139]

Mar 24 14:27:14 mercury sendmail[19882]: o2OEREiO019882:
<mailman-bounces at mercury.xxx.uk>... User unknown

Mar 24 14:27:14 mercury sendmail[19882]: o2OEREiO019882: from=<>,
size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=wwwtest
[xxx.xxx.240.139]


the site relay is configured in sendmail.cf in the DS parameter (smart
host).


Anyone got an idea of what I'm doing wrong?


tia, Dick

--
Richard Gillman
IST UNIX Systems Group, Maclean Building, Wallingford OX10 8BB
Tel: 01491 - 692 339
Fax: 01491 - 692 424

Search Discussions

  • Mark Sapiro at Mar 25, 2010 at 2:56 pm

    Richard Gillman wrote:
    Now things go wrong, mailman (or sendmail) forwards the mail to the site
    relay, mercury, which rejects it, user unknown. I _think_ it is mailman
    forwarding the mail because if it were sendmail, there would be a log
    entry of sendmail talking to the site relay.


    Mar 24 14:27:14 wwwtest sendmail[12569]: o2OEREo5012569:
    from=<mailman-bounces at mercury.xxx.uk>, size84, class=-60, nrcpts=1,
    msgid=<mailman.6.1269440833.27154.mailman at mercury.xxx.uk>, proto=ESMTP,
    daemon=MTA, relay=localhost.localdomain [127.0.0.1]

    Mailman delivers the message by SMTP to the server listening at the
    host and port defined by SMTPHOST and SMTPPORT. You haven't changed
    the defaults in mm_cfg.py, so they are

    SMTPHOST = 'localhost'
    SMTPPORT = 0 # default from smtplib

    (SMTPPORT = 0 tells smtplib to use the standard SMTP port - 25)

    So as indicated by the above message, Mailman is delivering to your
    local sendmail.

    Mar 24 14:27:14 wwwtest sendmail[12570]: o2OEREo5012569:
    to=<root at wwwtest.xxx.uk>, delay�:00:00, xdelay�:00:00, mailer=local,
    pri9300, dsn=2.0.0, stat=Sent

    Which appears to deliver locally to root at wwwtest.xxx.uk.

    Mar 24 14:27:14 wwwtest sendmail[12572]: o2OERET3012572:
    from=<mailman-bounces at mercury.xxx.uk>, size&25, class=-60, nrcpts=1,
    msgid=<mailman.8.1269440833.27154.mailman at mercury.xxx.uk>, proto=ESMTP,
    daemon=MTA, relay=localhost.localdomain [127.0.0.1]

    Mar 24 14:27:14 wwwtest sendmail[12574]: o2OERET3012572:
    to=<mailman-owner at mercury.xxx.uk>, delay�:00:00, xdelay�:00:00,
    mailer=relay, pri#0625, relay=mercury.xxx.uk. [xxx.xxx.240.183],
    dsn=5.1.1, stat=User unknown

    Mar 24 14:27:14 wwwtest sendmail[12574]: o2OERET3012572: o2OERET3012574:
    DSN: User unknown

    The above is a separate message from Mailman to
    mailman-owner at mercury.xxx.uk which bounces for "User unknown". Do you
    have an alias

    mailman-owner: "|/usr/local/mailman/mail/mailman owner mailman"


    Mar 24 14:27:14 wwwtest sendmail[12574]: o2OERET3012574:
    to=<mailman-bounces at mercury.xxx.uk>, delay�:00:00, xdelay�:00:00,
    mailer=relay, pri0000, relay=mercury.xxx.uk. [xxx.xxx.240.183],
    dsn=5.1.1, stat=User unknown

    Mar 24 14:27:14 wwwtest sendmail[12574]: o2OERET3012574: o2OERET4012574:
    return to sender: User unknown

    Mar 24 14:27:14 wwwtest sendmail[12574]: o2OERET4012574: to=root,
    delay�:00:00, xdelay�:00:00, mailer=local, pri0000, dsn=2.0.0,
    stat=Sent

    And here it appears that the DSN bounced too and was sent to root
    instead. Do you have an alias

    mailman-bounces: "|/usr/local/mailman/mail/mailman bounces mailman"

    This appears in the relay logs at the same time.


    Mar 24 14:27:14 mercury sendmail[19882]: o2OEREiM019882:
    <mailman-owner at mercury.xxx.uk>... User unknown

    Mar 24 14:27:14 mercury sendmail[19882]: o2OEREiM019882:
    from=<mailman-bounces at mercury.xxx.uk>, size(51, class=0, nrcpts=0,
    proto=ESMTP, daemon=MTA, relay=wwwtest [xxx.xxx.240.139]

    Mar 24 14:27:14 mercury sendmail[19882]: o2OEREiO019882:
    <mailman-bounces at mercury.xxx.uk>... User unknown

    Mar 24 14:27:14 mercury sendmail[19882]: o2OEREiO019882: from=<>,
    size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=wwwtest
    [xxx.xxx.240.139]


    the site relay is configured in sendmail.cf in the DS parameter (smart
    host).


    Anyone got an idea of what I'm doing wrong?

    Do you have a full set of 10 aliases for each list

    LIST: "|/usr/local/mailman/mail/mailman post LIST"
    LIST-admin: "|/usr/local/mailman/mail/mailman admin LIST"
    LIST-bounces: "|/usr/local/mailman/mail/mailman bounces LIST"
    LIST-confirm: "|/usr/local/mailman/mail/mailman confirm LIST"
    LIST-join: "|/usr/local/mailman/mail/mailman join LIST"
    LIST-leave: "|/usr/local/mailman/mail/mailman leave LIST"
    LIST-owner: "|/usr/local/mailman/mail/mailman owner LIST"
    LIST-request: "|/usr/local/mailman/mail/mailman request LIST"
    LIST-subscribe: "|/usr/local/mailman/mail/mailman subscribe LIST"
    LIST-unsubscribe: "|/usr/local/mailman/mail/mailman unsubscribe LIST"

    It is also curious that all your outgoing messages have mailman
    generated message IDs indicating they are not the original post with
    Message-ID: <201003241427.o2OERDl0012565 at wwwtest.xxx.uk> but rather
    they are Mailman notices of some kind.

    --
    Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupmailman-users @
categoriespython
postedMar 24, '10 at 3:08p
activeMar 25, '10 at 2:56p
posts2
users2
websitelist.org

2 users in discussion

Mark Sapiro: 1 post Richard Gillman: 1 post

People

Translate

site design / logo © 2022 Grokbase