----- Original Message -----
From: Ramon Alonso
To: coba-e (at mark) bluequartz.org
Sent: Friday, March 02, 2007 7:04 PM
Subject: [coba-e:08977] Re: website URL rewrite feature?
This doesn't correct the problem.
All my majordomo list in the /etc/mail/virtusertable still have the wrong
domain. i.e. list (at mark) www.webgander.com. If I send mail to list (at mark) webgander.com,
I get the following error message.
<<< 550 5.1.1 <list (at mark) www.webgander.com>... User unknown
If I edit the /etc/mail/virtusertable to and remove the www from
www.webgander.com, the list works.
Is there no way to correct this? I getting frustrated with all the request
to edit the /etc/mail/virtusertable.
On Fri, 23 Feb 2007 15:50:18 +0200, Arthur Sherman wrote
> go to the site settings (GUI), find there "email server alias", add and
> save.
>
>
> Best,
>
> --
> Arthur Sherman
>
> +972-52-4878851
> CPTeam
>
>
>
From: Ramon Alonso [mailto:ramon (at mark) osnola.com]
> Sent: Friday, February 23, 2007 3:22 PM
> To: coba-e (at mark) bluequartz.org
> Subject: [coba-e:08925] Re: website URL rewrite feature?
>
>
> Unfortunately, I entered nothing for the email server alias during the
> creation of the domain. Is there a post configure option using the GUI or
> config file?
>
> On Fri, 23 Feb 2007 03:15:38 -0500, Darrell D. Mobley wrote
> > If you enter "webgander.com" as an email server alias for
> > "www.webgander.com" then the majordomo lists will work like you want
> > them to. list (at mark) webgander.com will work the same as
> > list (at mark) www.webgander.com.
> >
> >
> >
> > From: Ramon Alonso [mailto:ramon (at mark) osnola.com]
> > Sent: Friday, February 23, 2007 12:23 AM
> > To: coba-e (at mark) bluequartz.org
> > Subject: [coba-e:08922] Re: website URL rewrite feature?
> >
> > That seem to work. The only problem is that my domains mail list ,
> > majordomo, doesn't create the /etc/mail/virtusertable correctly. All
> > the domains have www. prepended to it. i.e. list (at mark) www.webgander.com
> >
> > Is there a fix?
> >
> > On Wed, 21 Feb 2007 05:16:02 -0800, Ramon Alonso wrote
> > > Thank you Bill. I'll give that a try.
> > >
> > > On Tue, 20 Feb 2007 20:17:17 -0600, William J.A. Brillinger wrote
> > > > hostname = www
> > > > domain = webgander.com
> > > > alias = webgander.com
> > > >
> > > > ... the above change will solve your problem.
> > > >
> > > > Cheers,
> > > > - Bill
> > > >
> > > > At 07:48 PM 2/20/2007, you wrote:
> > > >
> > I'm new to BQ. So if this has been asked before, I apologize.
> > > >
> > > > I have a new site with the following settings...
> > > >
> > > > hostname=webgander, domain=com
> > > > web alias= www.webgander.com
> > > >
> > > > When I visit the site http://www.webgander.com, it rewrites the URL
> > > > to
> > > > MailScanner has detected a possible fraud attempt from
> > > > "webgander.com." claiming to be http://webgander.com. How do I stop
> > > > this from happening. I want email SMTP
> > > > and majordomo lists to use the webgander.com FQDN. I want all HTTP
> > > > references to use MailScanner has detected a possible fraud attempt
> > > > from "www.webgander.com." claiming to be www.webgander.com.
> > > >
> > > > Any clues comrades?
> > > >
> > > > --
> > > > This message has been scanned for viruses and
> > > > dangerous content by MailScanner, and is
> > > > believed to be clean.
> >
> > > >
> > > > ---------------------------------
> > > > William J.A. Brillinger
> > > > Precision Design Co.
> > > >
> > > > E-Mail: mailto:billy (at mark) pdcweb.net
> > > > Web site: MailScanner has detected a possible fraud attempt from
> > > > "www.pdcweb.net" claiming to be http://www.pdcweb.net
> > > > Phone: (204) 327-5524
> > > >
> > > > --
> > > > This message has been scanned for viruses and
> > > > dangerous content by MailScanner, and is
> > > > believed to be clean.
> > >
> > >
> > > --
> > > This message has been scanned for viruses and
> > > dangerous content by MailScanner, and is
> > > believed to be clean.
> >
> >
> >
> > --
> > This message has been scanned for viruses and
> > dangerous content by MailScanner, and is
> > believed to be clean.
> > --
> > This message has been scanned for viruses and
> > dangerous content by MailScanner, and is
> > believed to be clean.
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
What if you run this script with a cron:
#!/usr/bin/perl
# Copyright (c) 2005 by Herb Rubin herbr (at mark) pfinders.com
$version = "1.00";
# Purpose: To Fix mailing lists for Bluequartz majordomo to work with
Sendmail 8.12
# This script does 3 things:
# 1) Append lines to virtusertable for all mailing lists but use real
hostname
# 2) Remove group write permissions on majordomo list files to make sendmail
happy
# 3) patch majordomo.cf files to avoid an error email to admin upon every
post to list
#
# Note: You should patch
/usr/sausalito/handlers/base/maillist/listmod_virtusertable
# based on Patrick's Post at:
http://bluequartz.org/ml/archive/coba-e/1500/1590.html
#
# Supported Platform: Blue Quartz, tested on FC1
# Script covered under GPL license
# Begin User Defined Section
#----------------------------
my $hostname = `hostname`;
chomp $hostname;
my $mail_file = "/etc/mail/virtusertable";
my $major_dir = "/usr/local/majordomo";
#----------------------------
# End User Defined Section
$progname = $0;
$progname = $1 if ($progname =~ /([\w\._]+)$/); # trim off path
use Getopt::Std;
&getopts("tmhvV",\%Options); # get cmd line args, ":" means parameter
follows letter
&usage if ($Options{'h'}); # then exit
if ($Options{"V"}) {
print "$progname version $version\n";
exit 0; # good exit
}
chdir "/etc/mail";
$lists = `grep approval $mail_file`; # find all majordomo approval lines
$added = 0;
foreach $line (split /\n/, $lists) {
chomp $line;
if ($line =~ /^(\S+)-approval\@(\S+)\s+(\S+)-approval$/) {
[ "www" not found ]
[root (at mark) raq85server kentest66]# cat ~admin/install/fix_majordomo.pl
#!/usr/bin/perl
# Copyright (c) 2005 by Herb Rubin herbr (at mark) pfinders.com
$version = "1.00";
# Purpose: To Fix mailing lists for Bluequartz majordomo to work with
Sendmail 8.12
# This script does 3 things:
# 1) Append lines to virtusertable for all mailing lists but use real
hostname
# 2) Remove group write permissions on majordomo list files to make sendmail
happy
# 3) patch majordomo.cf files to avoid an error email to admin upon every
post to list
#
# Note: You should patch
/usr/sausalito/handlers/base/maillist/listmod_virtusertable
# based on Patrick's Post at:
http://bluequartz.org/ml/archive/coba-e/1500/1590.html
#
# Supported Platform: Blue Quartz, tested on FC1
# Script covered under GPL license
# Begin User Defined Section
#----------------------------
my $hostname = `hostname`;
chomp $hostname;
my $mail_file = "/etc/mail/virtusertable";
my $major_dir = "/usr/local/majordomo";
#----------------------------
# End User Defined Section
$progname = $0;
$progname = $1 if ($progname =~ /([\w\._]+)$/); # trim off path
use Getopt::Std;
&getopts("tmhvV",\%Options); # get cmd line args, ":" means parameter
follows letter
&usage if ($Options{'h'}); # then exit
if ($Options{"V"}) {
print "$progname version $version\n";
exit 0; # good exit
}
chdir "/etc/mail";
$lists = `grep approval $mail_file`; # find all majordomo approval lines
$added = 0;
foreach $line (split /\n/, $lists) {
chomp $line;
if ($line =~ /^(\S+)-approval\@(\S+)\s+(\S+)-approval$/) {
$external_list = $1;
$virt_hostname = $2;
$internal_list = $3;
$virt_left = $internal_list . "-list\@$hostname";
$virt_right = $internal_list . "-list";
$site = `ls -l /home/sites/$virt_hostname`;
chomp $site;
if ($site =~ /\/(site\d+)$/) {
#############################################
# remove group write to make sendmail happy #
#############################################
$sitenum = $1;
if (($Options{'v'}) or ($Options{'m'})) {
print "$virt_hostname ($sitenum) mailing
list:\t$external_list\n";
}
if ($Options{'t'}) {
print "chmod g-w: $major_dir/sites/$sitenum/lists/*\n";
} else {
print "chmod g-w: $major_dir/sites/$sitenum/lists/*\n" if
($Options{'v'});
`chmod g-w $major_dir/sites/$sitenum/lists/*`;
}
###########################################################
# fix majordomo.cf files including template. Its to avoid #
# an error email to admin on every post to mailing list. #
###########################################################
&fix_cf("$major_dir/sites/$sitenum/majordomo.cf");
}
$grep = `grep $virt_left $mail_file`;
chomp $grep;
if ($grep eq "") {
if ($Options{'t'}) {
print "append virtusertable: $virt_left\t$virt_right\n";
} else {
`echo $virt_left\t$virt_right >> $mail_file`;
$added ++;
}
}
}
}
if ($added) {
if ($Options{'t'}) {
print "running make in /etc/mail\n";
} else {
print "running make in /etc/mail\n" if ($Options{'v'});
my $make = `make`;
print $make if ($Options{'v'});
}
}
print "added $added lines to $mail_file\n" if ($Options{'v'});
#
##########################
# subroutines start here #
##########################
sub fix_cf {
###########################################################
# change undef to "" on line 255 in majordomo.cf to avoid #
# excessive error emails to admin. #
###########################################################
my ($fname) = @_;
my $new_cf = "";
my $patched = 0;
if (open CF, "<$fname") {
while ($line = <CF>) {
chomp $line;
if ($line =~ /^\$admin_body = undef/) {
$new_cf .= "#$line\n"; # comment it out
$new_cf .= "\$admin_body = \"\";\n";
$patched = 1;
} else {
$new_cf .= "$line\n"; # keep original lines
}
}
close CF;
if ($patched) {
if (open CF, ">$fname") {
print CF $new_cf;
close CF;
print "patched $fname\n";
} else {
print "Error: could not open $fname for writing\n";
}
}
}
}
sub usage {
print <<EOF;
$progname usage:
$progname [-hmtvV]
Fixes mailing lists for Bluequartz majordomo to work with Sendmail 8.12
This script does 3 things:
1) Appends lines to virtusertable for all mailing lists but uses real
hostname
2) Removes group write permissions on majordomo list files to make
sendmail happy
3) patches all majordomo.cf files to avoid an error email to admin upon
every post to list
Recommendation: Run this as a cronjob on a regular basis.
where:
-h Display this help
-m Minimal Verbose mode
-t Test mode, just report what will be done
-v Verbose mode
-V Show $progname version.
EOF
}