I'm in the process of installing majordomo ver 1.62 and have run
into the following problem. Forgive me if this is a FAQ, but I
haven't had a chance to scan through all the list archives yet.
On our servers, when a mail message is sent to majordomo from a
user on the same server, the message is formatted as in the
following test message:
> From debbie Wed Apr 27 09:03:53 EDT 1994
> To: majordomo
> Subject: Test
> Status: R
>
> help
It is bounced by majordomo with the following message:
> Majordomo@dstest.internic.net: is not a valid return address.
In checking majordomo's header processing to build the $reply-to
address, the ParseMailHeaders subroutine in majordomo.pl only
checks for keywords that end in ":" which means it ignores the
"From xxxxxx" line.
For a quick and dirty fix, I patched majordomo.pl as follows:
> sub main'ParseMailHeader ## Public
> {
> local($save1, $save2) = ($*, $/);
> local($FH, *array) = @_;
> local ($keyw, $val);
>
> %array = ();
>
> # force unqualified filehandles into callers' package
> local($package) = caller;
> $FH =~ s/^[^']+$/$package'$&/;
>
> ($*, $/) = (1, '');
> $array = $_ = <$FH>;
> s/\n\s+/ /g;
>
> @array = split('\n');
> foreach $_ (@array)
> {
> #
> # start patch to check for "From xxxx" in the mail header
> if( m/^From\s*(\S*)\s*.*$/g )
> {
> ($keyw, $val) = ("From", $1);
> }
> else
> {
> ($keyw, $val) = m/^([^:]+):\s*(.*\S)\s*$/g;
>
> }
> # end patch
> #
>
> $keyw =~ y/A-Z/a-z/;
>
For security reasons, we've replaced sendmail with an internally
developed mail transport system which interacts with /bin/mail.
I was wondering if anyone else had experienced this problem and
why the "From " line is being ignored. I need this patch since our
administrators will be interfacing with majordomo on the same
server.
Thanks,
Debbie Hamilton
InterNIC Directory and Database Services Support
AT&T Bell Laboratories
908-949-9459
debbie@qsun.att.com
Follow-Ups:
|
|