Majordomo 1.94.5 requires a fully qualified email address in return addresses.
If you use the command line to echo commands via email to majordomo, and you
are using a default/unmodified sendmail.cf, only the part in front of the @
sign is used for a return address.
You can fix this by modifying several lines in your sendmail.cf, or accomplish
the same thing by changing/adding one line to sendmail.mc and rebuilding the
sendmail.cf with m4, or you can modify one line (605) in majordomo.pl.
If you choose to rebuild your sendmail.cf via the sendmail.mc file, add;
FEATURE(always_add_domain)dnl
If you choose to edit sendmail.cf directly, UNcomment these lines;
in ruleset 10 (S10),
#R$+ $: $>50 $1 add local domain if needed
in ruleset 30 (S30),
#R$+ $: $>50 $1 add local domain if needed
in ruleset 40 (S40),
#R$+ $: $>50 $1 add local domain if needed
and in ruleset 50 (S50),
#R$+ $@ $1 < @ *LOCAL* > add local qualification
If you choose to modify majordomo.pl line 605, change it from;
if (!(/\@/ && /\./)) { # 1.94.5
to the way it was in 1.94.4
if (/\@/ && !/\./) { # 1.94.4
Dan Liston
Marijn wrote:
>
> To: majordomo-users@greatcircle.com Subject: Majordomo error
>
> Hello,
> After I compiled and installed majordomo and do 'touch
> /home/majordomo/lists/test' and then 'echo 'lists' | mail majordomo',
> I get this message returned to majordomo-owner:
> MAJORDOMO ABORT (mj_majordomo)!!
> majordomo@213.207.9.130: majordomo <majordomo> is not a valid return address.
> What have I done wrong? I set the aliases like in
> majordomo-1.94.5/majordomo.aliases.
> I use RedHat Linux 6.2 with sendmail 8.11.0 and kernel 2.2.16.
> I hope this can be fixed,
> Marijn.
>
> At 15:19 6-8-00, you wrote:
>
> > > After I compiled and installed majordomo and do 'touch
> > > /home/majordomo/lists/test' and then 'echo 'lists' | mail majordomo',
> > > I get this message returned to majordomo-owner:
> > >
> > > MAJORDOMO ABORT (mj_majordomo)!!
> > > majordomo@213.207.9.130: majordomo <majordomo> is not a valid return
> > address.
> > >
> > > What have I done wrong? I set the aliases like in
> >
> >OK, I see now- You CANT use majordomo as an alias- sending a message to
> >"majordomo@yourdomain.com" evokes the mj program.
> >
> >Change the mailing alias to majordomo-owner@yourdomain.com or
> >yourlistname@yourdomain.com.
> >
> >| mail majordomo-owner@213.207.9.130
> >
> >
> >-sid
>
> At 15:15 6-8-00, you wrote:
>
> > > After I compiled and installed majordomo and do 'touch
> > > /home/majordomo/lists/test' and then 'echo 'lists' | mail majordomo',
> >
> >either you need to expand your alias to majordomo@yourdomain.com
> >
> >or make sure that "majordomo" is the correct user alias (not majordom, or
> >mj, etc), and is
> >entered in your alias file.
> >
> > > I get this message returned to majordomo-owner:
> > >
> > > MAJORDOMO ABORT (mj_majordomo)!!
> > > majordomo@213.207.9.130: majordomo <majordomo> is not a valid return
> > address.
> >
> >
> >Sid MacLeod
>
> I don't understand, I got this in /etc/mail/aliases (i know that it isn't
> /etc/aliases but this is the correct alias file):
> majordomo: "|/home/majordomo/wrapper majordomo"
> majordomo-owner: sunmar@g2works.com
> owner-majordomo: sunmar@g2works.com
> test: "|/home/majordomo/wrapper resend -l test test-list"
> test-list: :include:/home/majordomo/lists/test
> owner-test: sunmar@g2works.com
> test-owner: sunmar@g2works.com
> test-request: sunmar@g2works.com
>
> What is wrong with my aliases?
> I got that touch/echo/mail thing from the INSTALL file.
>
> Marijn.
Follow-Ups:
References:
|
|