OK, I need another reminder. Sendmail 8.11.?, majordomo 1.94.5?, and
RedHat 7.1?
If so, sendmail uses smrsh. (SendMailRestrictedSHell) The majordomo
rpm should have created a link to wrapper in /etc/smrsh for you. If
not, as root do `cd /etc/smrsh; ln -s /usr/lib/majordomo/wrapper`.
Now to clear up something else. Lets work from a SHORT example name
instead of the long name of your real list. I will call the <list>
"test". These are the aliases;
test: "|/usr/lib/majordomo/wrapper resend -l test test-outgoing,nobody"
^--^^^^^-------------------------^ ^----^ ^-----^ ^-----------^^^----^^
a |||| f g h i | o |
bcde n j
"a" is the name of the list and a sendmail alias.
"b" is a required delimiter between the key and the value
"c" is an optional delimiter
"d" indicates the value will contain spaces
"e" indicates a program will be run
"f" is the fully qualified name of the program to run (and must have
a link in /etc/smrsh for RedHat sendmail rpm installs)
"ghi" are parameters to "f"
"hi" are arguments to "g"
"g" is what reads the .config file for argument "h" and forwards
the email on to the addresses listed in argument "i".
"i" is the address to "resend" to after processing completes
"j" signifies the ending of "d"
Your subscribers communicate to the list using "a" at your.domain.
test-outgoing: :include:/var/lib/majordomo/lists/test,some,more
^-----------^^^^-------^^-----------------------^^--^^^--^^^--^
k ||| l m a | o | o
bcd n n
"k" is the address (alias) forwarded to by "g"
"l" indicates sendmail should read addresses from a file
"m" is the fully qualified path of the file containing addresses
to be delivered to "a".
"n" indicates more addresses follow, and tells sendmail not to
disclose translation has occured when writing its "Received:"
header line to the message.
"o" are the optional additional addresses, where nobody, some,
and more can be other aliases, real addresses, files containing
addresses, files to append to, or executable programs.
Your subscribers should NEVER talk directly to "k" at your.domain.
In fact, this address should be hidden from your users by adding
the ",nobody" onto "i".
More clarification:
The only alias that is actually a filename under the lists
directory of majordomo in this case is "a". If you were
using digests, you would also have test-digest as a filename,
but the alias would just redirect messages back to test, and
the test-outgoing alias would change "some" to an executable
that does the digesting for you.
test-digest: test
test-outgoing: :include:/var/lib/majordomo/lists/test,"|/usr/lib/majordomo digest -r -C -l test-digest test-digest-outgoing,nobody",more
See the similarities/confusion? The RHS (Right Hand Side) is
no longer easily human readable and wrapping makes it even more
difficult. This is why we create additional aliases like;
test-digestify: "|/usr/lib/majordomo digest -r -C -l test-digest test-digest-outgoing,nobody"
so we can shorten our test-outgoing address back into something
more readable. Sendmail does not care one way or the other.
test-outgoing: :include:/var/lib/majordomo/lists/test,test-digestify
I might have gotten off track. The bottom line, is when you use "resend"
your mailer gives you an "unknown mailer error 9". Adding the symbolic
link to /etc/smrsh should make the problem go away.
Majordomo does not write to the null device, sendmail does.
In fact, majordomo does not even send the list messages, sendmail
does that too. Majordomo just bundles the addresses to the email
properly for sendmail to handle.
Dan Liston
PS. I am not sure what you are doing with the following alias;
approved-free-pctech-news-owner: mrwelch
Neither sendmail, nor majordomo use this. Do you have this
address configured as your sender or moderator in the .config
file? Otherwise, you can/should remove it.
"Michael R. Welch" wrote:
>
> Hi, I took your suggestion but Houston there's a problem
>
> Here's how my new list aliases looks like:
>
> nobody: /dev/null
> free-pctech-news: "|/majordomo/wrapper resend -l
> free-pctech-news-outgoing,nobody"
> free-pctech-news-outgoing: :include:/majordomo/lists/free-pctech-news
> free-pctech-news-owner: mrwelch
> free-pctech-news-outgoing-owner: mrwelch
> approved-free-pctech-news-owner: mrwelch
> free-pctech-news-request: "|/majordomo/wrapper request-answer
> free-pctech-news"
> free-pctech-news-approval: mrwelch
>
> I created a blank list called free-pctech-news-outgoing and posting to that
> works fine except for it shows the from being from
> free-pctech-news-outgoing@free-pctech-news instead of
> free-pctech-news@free-pctech-support.com(easily fixed in config I believe).
> But if I post to free-pctech-news, I get the following error:
>
> ----- The following addresses had permanent fatal errors -----
> "|/majordomo/wrapper resend -l free-pctech-news-outgoing,nobody"
> (expanded from: <free-pctech-news@free-pctech-support.com>)
>
> ----- Transcript of session follows -----
> 554 "|/majordomo/wrapper resend -l free-pctech-news-outgoing,nobody"...
> unknown mailer error 9
>
> I'm assuming this may have someting to do with permissions possibly for
> majordomo to write to the null device? Also if
> I try to subscribe to free-pctech-news Sendmail drops off the edge of the
> earth. Also free-pctech-news outgoing is blank so I know the include is
> working. I took a peek using pico at the config file for my automatically
> generated outgoing list and several of the commented lines were cut-off just
> like was thought to be caused by an email client on my free-pctech-news
> file.
>
> Im sure I'm overlooking something or not understanding how this is supposed
> to actually work.
>
> Thanks
>
> Michael Welch
>
> -----Original Message-----
> From: dliston@impala.sonny.org [mailto:dliston@impala.sonny.org]On
> Behalf Of Daniel Liston
> Sent: Monday, October 22, 2001 11:59 AM
> To: Michael R. Welch
> Cc: Roger B.A. Klorese; Majordomo-users
> Subject: Re: How do I restrict posts?
>
> Assuming sendmail as the MTA, your list alias should look like this;
>
> nobody: /dev/null
> free-pctech-news: "|/majordomo/wrapper resend -l
> free-pctech-news-outgoing,nobody"
> free-pctech-news-outgoing: :include:/majordomo/lists/free-pctech-news
> plus the standard -request, -owner, -approval aliases of course
>
> Dan Liston
>
> "Michael R. Welch" wrote:
> >
> > I'm taking that I am supposed to be going through resend? I setup my
> aliases
> > like this:
Follow-Ups:
References:
|
|