[xmail] User whitelisting script

2009-01-03 Thread Ken Larkman
I found this perl script on the net for using emails to add whitelisted or 
blacklisted email addresses. 

Has anyone implemented this successfully. The instructions provided by the 
author are minimal but I would like to implement it.

Any assistance would be appreciated.

- ken

[SCRIPT]

#!/usr/local/bin/perl
#
# xmsactl.pl v0.1
#
# XMail Filter that adds/removes config entries in SpamAssassin
# control files based on commands in emails sent to a dedicated
# user.
#
# Copyright (C) 2004-01 Hagen Mayer, http://www.hagen-mayer.de/
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA  02111-1307, USA
#

use Getopt::Std;
use vars qw($opt_f $opt_s $opt_g $opt_u $opt_x);

my $lcfname="/etc/mail/spamassassin/local.cf";  # -g on cmdline
my $upfname="";# -u on cmdline
my $xmfname="";# -f on cmdline
my $passcode="HMYXMSACTL";# -p on cmdline
my $retcode=0;# -x on cmdline
my $whitelisted=0;
my $blacklisted=0;
my $splhead="";
my $msghead="";
my $msgbody="";
my @body=();
my $bl="";
my $b=0;
my $w=0;
my $pcode="";
my $cmd="";
my $addr="";


# short usage
sub usage() {
print "Usage:\n";
print "  xmsactl.pl -f xmspoolfile  # name of XMail spoolfile\n";
print " -g local.cf # SpamAssassin local.cf file\n";
print " # Defaults to 
/etc/mail/spamassassin/local.cf\n";
print " -u user_prefs   # usually ~/.spamassassin/user_prefs\n";
print " # if omitted, user prefs are not 
used\n";
print " -p passcode # used in email body to identify 
command\n";
print " # Defaults to HMYXMSACTL\n";
print " -x retcode  # returncode to XMail.\n";
print " # Defaults to 0\n";
print "\n";
print "Commands accepted:\n";
print "  - passcode ADDBLFROM address\n";
print "  - passcode ADDWLFROM address\n";
print "  commands will modify local.cf or if given on cmdline 
user_prefs.\n";
print "  commands will match against local.cf and if given against 
user_prefs.\n";
print "\n";
print "ToDo:\n";
print " - cfglist of valid users/email addresses allowed to do changes\n";
print " - read cfg files into arrays instead processing them for each 
command\n";
}


# convert file globbing expression of SpamAssassin
# to perl regex
sub fp2regex($) {
my $val = shift;
$val =~ s/^\s//g;
$val =~ s/\s$//g;
$val =~ s/\*/\.\*/g;
$val =~ s/\?/\.\?/g;
$val =~ s/\@/\\\@/g;
$val =~ s/\./\\\./g;
return $val;
}


# remove some whitespaces
sub cleankey($) {
my $key = shift;
$key =~ s/^\s//g;
$key =~ s/\s$//g;
return $key;
}


# check if email address is either
# blacklisted or whitelisted
# returns on very first match
sub chkbwlist() {
my $addr = shift;
my $fname = shift;
my $bl = shift;
my $wl = shift;
my $fd;

return ($bl, $wl) if $fname eq "";
return ($bl, $wl) if $bl || $wl;

open($fd, "<", $fname) or die "cannot open $fname\n";
while (<$fd>) {
if (/^whitelist_from\s/) {
($key, $val) = split /\s/, $_, 2;
$val = fp2regex($val);
#$key = cleankey($key);
if ($addr =~ /$val/) {
$wl++;
close $fd;
return $bl, $wl;
}
} elsif (/^blacklist_from\s/) {
($key, $val) = split /\s/, $_, 2;
$val = fp2regex($val);
#$key = cleankey($key);
if ($addr =~ /$val/) {
$bl++;
close $fd;
return $bl, $wl;
}
}
}
close $fd;
return $bl, $wl;
}


# splits xmail spool file into spoolhead, mailhead and mailbody
sub splitsplfile($) {
my ($fname)=...@_;
my $fd;
my $splhead="";
my $mailhead="";
my $mailbody="";
my $t=0;
my $s;

[xmail] Re: xm-spf

2007-09-28 Thread Ken Larkman
--- Vinny Wadding <[EMAIL PROTECTED]> wrote:

> Hi Guys,
> 
> I am looking at the SPF script that Davide published,  I am
> wondering if 
> any one else was using this filter?   I have been trying to trawl
> net 
> and forums for any information about it, but there doesn't seem to
> be 
> any info about how it works, or what parameters you pass it etc.

I am looking for the same information. I would definitely like to
use the filter but there is no documentation for the file that I've
seen. It hasn't been a high priority for me but its rising on the
'to do' list.

- ken


   

Be a better Globetrotter. Get better travel answers from someone who knows. 
Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545469
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: FreeBSD / Xmail 1.24 / anti-spam.sh

2007-06-03 Thread Ken Larkman
--- Ken Larkman <[EMAIL PROTECTED]> wrote:

Never mind. I did something dumb.

- Ken


   

Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for 
today's economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow  
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] FreeBSD / Xmail 1.24 / anti-spam.sh

2007-06-03 Thread Ken Larkman
Using the anti-spam.sh script (from
http://xmail.nomadcf.com/info.php?program=anti-spam-php) I am
getting the following error when trying to send email:

'Server response: 451 Requested action aborted: (-55) local error in
processing'

Any ideas what might be causing this? So far, everything seems to
work individually but I can't send any emails when spamd is
activated.

- Ken




   

Need a vacation? Get great deals
to amazing places on Yahoo! Travel.
http://travel.yahoo.com/
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: XMail 1.24 on OpenBSD 4.0 - not writing logs

2007-05-29 Thread Ken Larkman
--- Davide Libenzi <[EMAIL PROTECTED]> wrote:

> On Tue, 29 May 2007, Ken Larkman wrote:
> 
> > --- Davide Libenzi <[EMAIL PROTECTED]> wrote:
> > 
> > > > Any ideas?
> > > 
> > > Are logging options enabled? Did the script running xmail get
> > > changed by some update script?
> > 
> > Davide,
> > 
> > Thanks for the reply. I meant to include the cmd line options
> from
> > the script:
> > 
> > -Md -Qg -Pl -Sl -Fl -Cl -Ll
> > 
> > The xmail script remains unchanged as far as I can tell and the
> > details for it are:
> > 
> > -rwxrwxrwx   1 root  wheel  2076 Feb 23 20:43 xmail
> > 
> > I looked at the permissions but I don't see anything that should
> > interfere.
> 
> Do you have the "logs" directory inside $MAIL_ROOT?

Yes. The logs directory is located at:

/files/MailRoot/logs

>From the xmail script:

XMAIL_ROOT=/files/MailRoot
XMAIL_CMD_LINE="-Md -Qg -Pl -Sl -Fl -Cl -Ll"
PATH=$XMAIL_ROOT/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=$XMAIL_ROOT/bin/XMail
NAME=XMail
DESC="XMail server"

- Ken


- Ken


   
Be
 a better Heartthrob. Get better relationship answers from someone who knows. 
Yahoo! Answers - Check it out. 
http://answers.yahoo.com/dir/?link=list&sid=396545433
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: XMail 1.24 on OpenBSD 4.0 - not writing logs

2007-05-29 Thread Ken Larkman
--- Davide Libenzi <[EMAIL PROTECTED]> wrote:

> > Any ideas?
> 
> Are logging options enabled? Did the script running xmail get
> changed by some update script?

Davide,

Thanks for the reply. I meant to include the cmd line options from
the script:

-Md -Qg -Pl -Sl -Fl -Cl -Ll

The xmail script remains unchanged as far as I can tell and the
details for it are:

-rwxrwxrwx   1 root  wheel  2076 Feb 23 20:43 xmail

I looked at the permissions but I don't see anything that should
interfere.

- ken


 

No need to miss a message. Get email on-the-go 
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail 
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] XMail 1.24 on OpenBSD 4.0 - not writing logs

2007-05-29 Thread Ken Larkman
For some reason, XMail 1.24 has stopped logging on OpenBSD 4.0 and
seems to have stopped running filters (though, I'm reserving
judgement on this that I may have screwed the filters up
trouble-shooting). I have restarted the system and checked the drive
for errors but no evidence of a physical media issue.

Any ideas?

Thanks,

- Ken


   
Need
 a vacation? Get great deals
to amazing places on Yahoo! Travel.
http://travel.yahoo.com/
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Xm-spf.pl

2004-08-20 Thread Ken Larkman
Hey, Bill!

Yes, they are real tabs. I double-checked.

Xm-spf.tab is in the filters/ foder.

Filters.in.tab and filters.out.tab are in the MailRoot/ folder.

Av-filter and safilter both work fine so I'm really thinking my command
line on xm-spf.tab is the problem.

Thanks!

- Ken

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Bill Healy
> Sent: Friday, August 20, 2004 12:58 PM
> To: '[EMAIL PROTECTED]'
> Subject: [xmail] Re: Xm-spf.pl
> 
> 
> Hi Ken,
> 
> Do you have real tabs between fields?
> Where is your sm-spf.tab file located? 
> Where are the filters.in.tab and filters.out.tab located?
> 
> I haven't used the SPF filter, so these are just generic questions.
> 
> Bill
> 
> >--
> >From:Ken Larkman[SMTP:[EMAIL PROTECTED]
> >Sent:Friday, August 20, 2004 11:47 AM
> >To:  [EMAIL PROTECTED]
> >Subject: [xmail] Xm-spf.pl
> >
> >Having a challenge getting SPF to work on Xmail 1.20 on 
> Fedora Core 2.
> >My xm-spf.tab is as follows:
> >
> >"/var/MailRoot/bin/xm-spf.pl"   "--file""@@FILE"
> >
> >.. and my filters.in.tab and filters.out.tab include the 
> following line:
> >
> >"*" "*" "0.0.0.0/0" "0.0.0.0/0" "xm-spf.tab"
> >
> >This does not seem to be working and no headers are being added to
> >emails.
> >
> >Any thoughts?
> >
> >Thanks,
> >
> >- Ken
> >
> >
> >-
> >To unsubscribe from this list: send the line "unsubscribe xmail" in
> >the body of a message to [EMAIL PROTECTED]
> >For general help: send the line "help" in the body of a message to
> >[EMAIL PROTECTED]
> >
> >
> -
> To unsubscribe from this list: send the line "unsubscribe xmail" in
> the body of a message to [EMAIL PROTECTED]
> For general help: send the line "help" in the body of a message to
> [EMAIL PROTECTED]
> 

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Xm-spf.pl

2004-08-20 Thread Ken Larkman
Having a challenge getting SPF to work on Xmail 1.20 on Fedora Core 2.
My xm-spf.tab is as follows:

"/var/MailRoot/bin/xm-spf.pl"   "--file""@@FILE"

.. and my filters.in.tab and filters.out.tab include the following line:

"*" "*" "0.0.0.0/0" "0.0.0.0/0" "xm-spf.tab"

This does not seem to be working and no headers are being added to
emails.

Any thoughts?

Thanks,

- Ken


-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: DNS Issue

2004-07-27 Thread Ken Larkman
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Jeffrey Laramie
> Sent: Tuesday, July 27, 2004 2:24 PM
> To: [EMAIL PROTECTED]
> Subject: [xmail] Re: DNS Issue
> 
> 
[SNIP]
> 
> 106.136.12.209.in-addr.arpa name = NS1.Trans-Star.net.
> >
> 
> Hmmm... This may be a firewall issue
> 
> Jeff

Jeff,

Dnsreport.com reports that you do not have a reverse dns pointer for MX
records, as well.

I doubt it's a firewall issue since dnsreport.com seems to be loading
the DNS records and pointers just fine.

As an aside, it also looks like you have some RFC tweaking to do on your
DNS records.

Thanks,

- Ken

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Compiling Xmail on OpenBSD 3.4

2004-06-11 Thread Ken Larkman
Anyone with any insight into what missing dependancy this error is referring
to:
g++ -o bin/MkMachDep MkMachDep.o -lkvm -pthread -lc_r
/usr/bin/ld: cannot find -lc_r
collect2: ld returned 1 exit status
gmake: *** [bin/MkMachDep] Error 1

Thanks,

- Ken


-- Binary/unsupported file stripped by Ecartis --
-- Type: application/ms-tnef
-- File: winmail.dat


-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] root@localhost

2004-04-29 Thread Ken Larkman
My time for a dumb question:
I want all messages sent to [EMAIL PROTECTED] sent to my postmaster
account. I've set up the sendmail that comes with Xmail and it seems to
work fine. However, I seem to be missing out on how to configure Xmail
to accept submissions to "root" or "[EMAIL PROTECTED]".

Any pointers or suggestions?

Thanks,

- Ken


-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Script to shut down then start xmail

2004-04-29 Thread Ken Larkman
Thanks, Fred!

That looks like it does exactly what I need.

Thanks,

- Ken

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Fred
Sent: Thursday, April 29, 2004 1:13 PM
To: [EMAIL PROTECTED]
Subject: [xmail] Re: Script to shut down then start xmail


Hi,

Make sure XMAIL_ROOT and path to SH is valid

#!/bin/sh
#
XMAIL_ROOT=/apps/MailRoot
echo "Killing XMail"
kill `ps -aux | grep XMail | grep -v grep | awk '{print $2}'`
wait
echo "Starting XMail"
$XMAIL_ROOT/bin/xmail start
exit 0


Hope this helps

Fred

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On
Behalf Of Ken Larkman
Sent: 29 avril, 2004 14:58
To: [EMAIL PROTECTED]
Subject: [xmail] Script to shut down then start xmail

Does anyone have a script I can run from a crontab on FreeBSD that will
stop Xmail then start it after the service has stopped?
Thanks,

- ken


-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Script to shut down then start xmail

2004-04-29 Thread Ken Larkman
Does anyone have a script I can run from a crontab on FreeBSD that will
stop Xmail then start it after the service has stopped?
Thanks,

- ken


-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: XMail 1.18 (FreeBSD/Ix86) -- zombie?

2004-04-13 Thread Ken Larkman
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of D. Duccini
> Sent: Tuesday, April 13, 2004 6:09 AM
> To: XMail mailing list
> Subject: [xmail] XMail 1.18 (FreeBSD/Ix86) -- zombie?
> 
> 
> 
> As we've loaded a new freebsd/xmail implementation up with 
> more customers,
> we're increasingly finding it go zombie on us -- its still running in
> memory, but no longer accepts connections on either 25/110

I am experiencing the same problem with Xmail 1.18. I've pretty much
narrowed the problem down to a FreeBSD issue, most likely a
configuration issue related to the hard drives. My recent experience
with Ecartis and partition location has cemented my belief that this is
a FreeBSD issue and not a Xmail issue. My current solution is to
auto-reboot the server at midnight every day (my situation makes this an
option) and this seems to completely resolve the issue. It looks like
the "zombiefication" occurred around 3 a.m. or so every night.

I am also running sa_filter and av_filter, both on partitions separate
to Xmail. Needless to say, I haven't ruled either of those out as
potential culprits or parts of the problem. The only thing I'm
relatively sure of is that I don't think the problem is Xmail itself.

- Ken

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Xmail, FreeBSD and ecartis/mailman

2004-04-07 Thread Ken Larkman
Thanks to everyone for their help with Ecartis and Xmail yesterday.

- ken

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Xmail, FreeBSD and ecartis/mailman

2004-04-06 Thread Ken Larkman
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Jeffrey Laramie
> Sent: Tuesday, April 06, 2004 5:19 PM
> To: [EMAIL PROTECTED]
> Subject: [xmail] Re: Xmail, FreeBSD and ecartis/mailman
> 
> 
>
> 
> Now it sounds like a permissions problem. If you used the 
> files off my webpage 
> the /yourdir/ecartis/bin directory and it's contents should 
> be root user and 
> group and all the other /yourdir/ecartis directories should 
> be ecartis user 
> and group. If you used the other version of the files then I believe 
> everything in the /yourdir/ecartis directory should be user and group 
> ecartis.

Actually, the problem was the ecartis.sh script. It was adding a .lst
suffix to the tmpfile ($FILENAME.lst). I removed the .lst suffix from
the script and now everything works.

Looks like the main problem was the drive/partition issue. Have to look
into that more deeply.

Now, let's see if the same holds true for Mailman.

- Ken

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Xmail, FreeBSD and ecartis/mailman

2004-04-06 Thread Ken Larkman
A ha! Progress! I have at least generated an ecartis log entry. :)

The log entry is as such:

[04/06/2004-16:42:36] [9457] Using '/tmp/msrv80ccc02c844.tmp.lst'
instead of STDIN...
[04/06/2004-16:42:36] [9457] Unable to open input file
'/tmp/msrv80ccc02c844.tmp.lst'

Basically, I moved ecartis to the same disk and partition as Xmail,
changed the path to ecartis.sh in the ecartis.tab file and sent a test
message. No other changes were made to either Ecartis or Xmail. This
would seem to support my theory that there was a file system issue
between the two.

This is the first evidence I've had of ecartis actually running when an
email is received.

- ken


-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Xmail, FreeBSD and ecartis/mailman

2004-04-06 Thread Ken Larkman
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Jeffrey Laramie
> Sent: Tuesday, April 06, 2004 4:40 PM
> To: [EMAIL PROTECTED]
> Subject: [xmail] Re: Xmail, FreeBSD and ecartis/mailman
> 
> 
>
> 
> Did you try following this example:
> 
> http://www.ubaight.com/xmail/BeginnersGuide#Ecartis

> I haven't used this in awhile, but it worked when I set up my system.
Make 
> sure you use the files linked from the page. They are a different
version 
> than Davide uses and are not interchangable.

Jeff:

That's the tutorial I used. Now, I'm not sure which version of the files
I'm using and the originals don't seem to be available for download,
right now.

Perhaps this is my whole problem.

- Ken

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Xmail, FreeBSD and ecartis/mailman

2004-04-06 Thread Ken Larkman
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Davide Libenzi
> Sent: Tuesday, April 06, 2004 4:33 PM
> To: [EMAIL PROTECTED]
> Subject: [xmail] Re: Xmail, FreeBSD and ecartis/mailman
> 
> 
> 
> Look tha the lisset.pl that I wrote is not supposed to create 
> symlinks.

This is important information! :) I've been believing all the tutorials
that said it will create the cmdaliases and such.

OK. So, let's forget about lisset.pl because I obviously don't know what
I'm talking about.

I have ecartis on one partition /usr and Xmail on /var1 (two totally
separate disks). I'm beginning to wonder if that isn't my problem. I
mean, I know I'm dumb but I can't believe I'm this dumb.

- Ken

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Xmail, FreeBSD and ecartis/mailman

2004-04-06 Thread Ken Larkman
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Davide Libenzi
> Sent: Tuesday, April 06, 2004 3:45 PM
> To: [EMAIL PROTECTED]
> Subject: [xmail] Re: Xmail, FreeBSD and ecartis/mailman
> 
> 
> 
> Nope, it is called by XMail from the script.

Well, that sux. I re-ran lisset.pl after changing the UID/GID and it
still isn't creating the symlinks. I can't find any evidence that
ecartis is even running. The ecartis.tab is getting called but that's
about it.

- Ken

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Xmail, FreeBSD and ecartis/mailman

2004-04-06 Thread Ken Larkman
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Davide Libenzi
> Sent: Tuesday, April 06, 2004 3:29 PM
> To: [EMAIL PROTECTED]
> Subject: [xmail] Re: Xmail, FreeBSD and ecartis/mailman
> 
> 
> 
> If you have a user:group of ecartis:ecartis, simply do an:
> 
> $ id ecartis
> 
> and put UID and GID in the script.


Still no go. Does Ecartis have to be running as a daemon?

- Ken

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Xmail, FreeBSD and ecartis/mailman

2004-04-06 Thread Ken Larkman
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Davide Libenzi
> Sent: Tuesday, April 06, 2004 3:20 PM
> To: [EMAIL PROTECTED]
> Subject: [xmail] Re: Xmail, FreeBSD and ecartis/mailman
> 
> 
> 
> Do you have a UID and GID of 503/503 in your system?

No. :) But you knew that, didn't you? :)

Can I  just change the ecartis:ecartis to 503/503?

- Ken

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Xmail, FreeBSD and ecartis/mailman

2004-04-06 Thread Ken Larkman
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Davide Libenzi
> Sent: Tuesday, April 06, 2004 3:07 PM
> To: XMail mailing list
> Subject: [xmail] Re: Xmail, FreeBSD and ecartis/mailman
> 
> 
> 
> I never tried Mailman, but XMail+Ecartis is working fine here. Which 
> script are you using to integrated XMail with Ecartis?

Davide;

The only thing I've been able to generate out of Ecartis is a bunch of
errors related to configuration. No responses to emailed instructions.

I'm using the script from the xmailserver.org website (ecartis.sh):

#!/bin/sh

#Disclaimer removed for space

DIRNAME=`dirname $0`
FILENAME=$1
shift
$DIRNAME/econv --mbox --unix --input $FILENAME > $FILENAME.lst
$DIRNAME/swrap 503 503 $DIRNAME/ecartis -f $FILENAME.lst $*
rm -f $FILENAME*

The script is saved in the /usr/local/ecartis directory and chowned to
ecartis:ecartis.

- Ken

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Xmail, FreeBSD and ecartis/mailman

2004-04-06 Thread Ken Larkman
I seem to be consistently running up against two specific problems with
FreeBSD and Xmail in conjunction with Ecartis or Mailman.

The first seems to have to do with the creation of symlinks. Integration
scripts that are supposed to auto-create symlinks are not doing so. I
can manually create them but the scripts are not doing so.

Second, any script I use to integrate Ecartis or Mailman seems to fail
when it comes to using ECONV and tmpfiles.

Given that I have (a) re-done the configurations about 12 times and (b)
seem to have failures happening at exactly the same places, I'm
beginning to think I've come up against one or more FreeBSD
idiosyncracies.

I'm using FreeBSD 5.1 and XMail 1.18. ECONV, Lisset.pl, Swrap, etc.
download from xmailserver.org. Mailman and Ecartis built from FreeBSD
ports.

Has anyone experienced this? If so, any suggestions?

Thanks,

- Ken

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Filter Question

2004-04-06 Thread Ken Larkman
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Scott
> Sent: Tuesday, April 06, 2004 1:47 PM
> To: [EMAIL PROTECTED]
> Subject: [xmail] Re: Filter Question
> 
> 
[SNIP]
> 
> Yes of course the files can be renamed, but then how many users will 
> think of that?  ;)

All it takes is one. :)

- ken

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Filter Question

2004-04-06 Thread Ken Larkman
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Jeffrey L. Conley
> Sent: Tuesday, April 06, 2004 1:29 PM
> To: [EMAIL PROTECTED]
> Subject: [xmail] Re: Filter Question
> 
> 
> 
> Tell that to M$, newer versions of outlook and outlook 
> express do just that
> and there is no way to turn it off.

I suspect there is a way to turn it off. Either a registery hack or
setting somewhere. Outlook, particularly, is pretty customizable if you
know what you're doing with it.

However, the issue isn't client software. There is no reason to block
attachments if you have a good antivirus solution in place. I find Peter
Lindeman's solution in conjunction with ClamAV does a great job.

- Ken

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Filter Question

2004-04-06 Thread Ken Larkman
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Chris L. Franklin
> Sent: Tuesday, April 06, 2004 1:20 PM
> To: [EMAIL PROTECTED]
> Subject: [xmail] Re: Filter Question
> 
> 
> that way you can remove BAd file type from your users,
> 
> examples of bad type:
> ..vbs
> ..js
> ..exe.zip
> ..bin.exe

Why not just run an antivirus program and remove the viruses? Blocking
specific file types strikes me as cutting off your nose to spite your
face.

- ken

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Xmail and mailman

2004-04-02 Thread Ken Larkman
I'm using the instructions located at:

http://xmailforum.homelinux.net/index.php?showtopic=1179

to integrate Xmail and Mailman.

Everything works except sending emails to be processed by mailman.

Mailman.sh seems to execute and the list.tab files in CMDALIASES seem to
redirect email. However, no one gets subsribed and no notifications are
sent back.

Has anyone duplicated this installation? And, if so, anything I might be
missing?

Thanks,

- Ken

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Webmin

2004-04-01 Thread Ken Larkman
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Bill Healy
> Sent: Thursday, April 01, 2004 10:28 AM
> To: '[EMAIL PROTECTED]'
> Subject: [xmail] Webmin
> 
> 
> Has anyone come across a webmin module for xmail?

Bill,

I don't believe there is a webmin module but I really wish there was.
Anyone with experience creating webmin modules could probably create one
very quickly but it doesn't seem to have been done.

- Ken

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Trouble with XMail staying active

2004-02-19 Thread Ken Larkman
The usual error the users are receiving is that the POP server did not
respond appropriately.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Davide Libenzi
Sent: Thursday, February 19, 2004 3:57 PM
To: [EMAIL PROTECTED]
Subject: [xmail] Re: Trouble with XMail staying active


On Thu, 19 Feb 2004, Ken Larkman wrote:

> Any ideas why Xmail might go inactive on FreeBSD? So far, I've not
found
> a log entry that might explain it.

Can you give a lot more info about what you mean for inactive?



- Davide


-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Trouble with XMail staying active

2004-02-19 Thread Ken Larkman
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Davide Libenzi
Sent: Thursday, February 19, 2004 1:09 PM
To: [EMAIL PROTECTED]
Subject: [xmail] Re: Trouble with XMail staying active


On Thu, 19 Feb 2004, Ken Larkman wrote:

> Is this likely to work with FreeBSD 5.1, as well? I am having a
similar
> problem.

No, this is a Linux/glibc only thing.


Crud. I was afraid of that. :)

Any ideas why Xmail might go inactive on FreeBSD? So far, I've not found
a log entry that might explain it.

- Ken

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Trouble with XMail staying active

2004-02-19 Thread Ken Larkman
Is this likely to work with FreeBSD 5.1, as well? I am having a similar
problem.

- Ken

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Davide Libenzi
Sent: Thursday, February 19, 2004 11:14 AM
To: [EMAIL PROTECTED]
Subject: [xmail] Re: Trouble with XMail staying active


On Thu, 19 Feb 2004, Chad Fleenor wrote:

> I'm running XMail 1.17 and RedHat 9.0 and I'm having trouble with
XMail
> staying active.  It seems like I have to restart XMail at least once a
> day.  XMail stops responding so none can send or receive email
messages.
> I have checked the queue and I didn't see anything unusual in it.
Also,
> sometimes XMail will "act like it's working fine" but when I send to a
> specific user it will not write anything out to the mailbox directory
> until I restart XMail.  This is very strange, and it has happened on
> more than one occasion to two different people.  If anyone has any
ideas
> what is going on I'd love to hear it.  Here is the command line
switches
> I have in: -Pl -Sl -Ql -Yl -Fl -Cl -Ll -F.

In your /etc/rc.d/init.d/xmail add:

export LD_ASSUME_KERNEL=2.4



- Davide


-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Error message

2003-03-23 Thread Ken

--- Davide Libenzi <[EMAIL PROTECTED]> wrote:

> Can you show me the result of :
> 
> # ls -l /usr/sbin/sendmail
> 
> 
> 
> - Davide

-rw-r--r--  1 root  bin  12288 Mar 23 13:19 /usr/sbin/sendmail

- Ken

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Error message

2003-03-22 Thread Ken

Hiyas, Davide!

I now get the following error:

delta# sendmail
/usr/sbin/sendmail: Permission denied.
delta#

Thanks!

- Ken

--- Davide Libenzi <[EMAIL PROTECTED]> wrote:
> 
> Try this :
> 
> -
> #!/bin/sh
> 
> if [ -z $MAIL_ROOT ]; then
>   set MAIL_ROOT=/var/MailRoot
>   export MAIL_ROOT
> fi
> 
> /usr/sbin/sendmail.xmail $*
> -
> 
> 
> 
> - Davide


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Error message

2003-03-21 Thread Ken


--- "Andrew H. Joakimsen-Wexler" <[EMAIL PROTECTED]> wrote:
> 
> Do:
> 
> less /usr/lib/sendmail

delta# less /usr/lib/sendmail
/usr/lib/sendmail: No such file or directory
delta#

 
> and 
> 
> less /usr/sbin/sendmail

#!/bin/sh

if [ -z $MAIL_ROOT ]; then
export MAIL_ROOT=/var/MailRoot
fi

/usr/sbin/sendmail.xmail $*
/usr/sbin/sendmail (END)


> What do you have? It should be:
> 
> #!/bin/sh
> 
> 
> if [ -z $MAIL_ROOT ]; then
> export MAIL_ROOT=/var/MailRoot
> fi
> 
> 
> /usr/sbin/sendmail.xmail $*

Only on the first one.

Have I missed a step?

- Ken

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Error message

2003-03-21 Thread Ken

Andrew, 

Compiled from the source tar.gz.

- Ken

--- "Andrew H. Joakimsen-Wexler" <[EMAIL PROTECTED]> wrote:
> 
> Did you compile XMail or install an RPM?


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Error message

2003-03-21 Thread Ken

I think the problem is that xmail script in the /etc folder is not
executing all its commands properly. MAIL_ROOT is set in that folder
but it is not working because I have to set it manually every time.

Email from an external client works fine but nothing sent from inside
a session works.

--- Davide Libenzi <[EMAIL PROTECTED]> wrote:

> If you export MAIL_ROOT in your main profile file, you will be able
> to rename /usr/sbin/sendmail.xmail in /usr/sbin/sendmail and run it
> directly.
> 
> 
> 
> 
> - Davide


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Error message

2003-03-21 Thread Ken

No, I'm not.

I can try CSH or KSH as the shell.

- ken

--- Davide Libenzi <[EMAIL PROTECTED]> wrote:
> 
> Are you sure your /bin/sh point to either a POSIX or a Bourne shell
> ??
> 
> 
> 
> - Davide


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Error message

2003-03-20 Thread Ken

Davide,

OK. This is interesting:

# /usr/sbin/sendmail.xmail
cannot find environment variable: MAIL_ROOT
#

I set the mailroot variable manually and got:

# sendmail [EMAIL PROTECTED] --input-file [EMAIL PROTECTED]
[EMAIL PROTECTED]@dom1 [EMAIL PROTECTED]
if: Expression Syntax.
#

- Ken

--- Davide Libenzi <[EMAIL PROTECTED]> wrote:
> 
> On Thu, 20 Mar 2003, Ken wrote:
> 
> >
> > Hiyas, Davide!
> >
> > This is the output from that command:
> >
> > rwsr-sr-x  1 root  wheel  16384 Mar 20 15:37
> /usr/sbin/sendmail.xmail
> 
> Looks good. Try to run the above executable directly ...
> 
> 
> 
> - Davide
> 
> -
> To unsubscribe from this list: send the line "unsubscribe xmail" in
> the body of a message to [EMAIL PROTECTED]
> For general help: send the line "help" in the body of a message to
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Error message

2003-03-20 Thread Ken

Hiyas, Davide!

This is the output from that command:

rwsr-sr-x  1 root  wheel  16384 Mar 20 15:37 /usr/sbin/sendmail.xmail

- Ken

--- Davide Libenzi <[EMAIL PROTECTED]> wrote:
>
> Try :
> 
> # ls -l /usr/sbin/sendmail.xmail
> 
> 
> 
> - Davide
> 
> -
> To unsubscribe from this list: send the line "unsubscribe xmail" in
> the body of a message to [EMAIL PROTECTED]
> For general help: send the line "help" in the body of a message to
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Error message

2003-03-20 Thread Ken

Thanks, Davide,

I'm using the instructions at:

http://hints.se.linuxfromscratch.org/hints/xmail.txt

 as a template for getting this going. So far, no real problems
but the sendmail script on that page may be giving me some grief.
Here is the suggested script:

===
#!/bin/bash
# This script sets the environment for XMail's sendmail and then
calls it.
# The script exists so that software that expects sendmail can use
XMail.

if [ -z $MAIL_ROOT ]; then
export MAIL_ROOT=/var/MailRoot
fi
/usr/sbin/sendmail.xmail $*
# End /usr/sbin/sendmail
===

The bash shell does not exist, by default, on OpenBSD, so I modified
the shebang line to #!/bin/sh which I suspect won't work but I'm
researching that.

This gives me the following output:

delta# sendmail [EMAIL PROTECTED] --input-file msg.txt
[EMAIL PROTECTED] [EMAIL PROTECTED]
/usr/sbin/sendmail[10]: /root: cannot execute - Is a directory
/usr/sbin/sendmail[11]: /root: cannot execute - Is a directory

So, I'm figuring this script is not working.

Can you tell I'm neither a programmer or a scripter? :)

Any ideas greatfully welcomed!

- Ken


--- Davide Libenzi <[EMAIL PROTECTED]> wrote:
> 
> On Thu, 20 Mar 2003, Ken wrote:
> 
> >
> > Greetings,
> >
> > Encountering a few errors and hoping someone can shed some light.
> I'm
> > thinking the errors below are the OpenBSD sendmail and not
> sendmail
> > from Xmail.
> >
> > Any thoughts?
> 
> IMHO you did not configure XMail's sendmail correctly and you have
> apps on
> your system that are trying to you the real sendmail. You should
> configure
> XMail's sendmail on your system.
> 
> 
> 
> - Davide
> 
> -
> To unsubscribe from this list: send the line "unsubscribe xmail" in
> the body of a message to [EMAIL PROTECTED]
> For general help: send the line "help" in the body of a message to
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Error message

2003-03-20 Thread Ken

Greetings,

Encountering a few errors and hoping someone can shed some light. I'm
thinking the errors below are the OpenBSD sendmail and not sendmail
from Xmail.

Any thoughts?

Thanks,

- Ken

Mar 20 15:17:44 delta sendmail[24738]: h2KMHc5n024738: Losing
../qfh2KMHc5n024738: savemail panic
Mar 20 15:17:44 delta sendmail[24738]: h2KMHc5n024738: Losing
../qfh2KMHc5n024738: savemail panic
Mar 20 15:17:44 delta sendmail[24738]: h2KMHc5n024738: Losing
../qfh2KMHc5n024738: savemail panic
Mar 20 15:17:44 delta sendmail[24738]: h2KMHc5n024738: SYSERR(www):
savemail: cannot save rejected email anywhere
Mar 20 15:17:44 delta sendmail[24738]: h2KMHc5n024738: SYSERR(www):
savemail: cannot save rejected email anywhere
Mar 20 15:18:01 delta sendmail[32288]: h2KMI0ZD032288: Losing
../qfh2KMI0ZD032288: savemail panic
Mar 20 15:18:01 delta sendmail[32288]: h2KMI0ZD032288: Losing
../qfh2KMI0ZD032288: savemail panic
Mar 20 15:18:01 delta sendmail[32288]: h2KMI0ZD032288: Losing
../qfh2KMI0ZD032288: savemail panic
Mar 20 15:18:01 delta sendmail[32288]: h2KMI0ZD032288: SYSERR(www):
savemail: cannot save rejected email anywhere
Mar 20 15:18:01 delta sendmail[32288]: h2KMI0ZD032288: SYSERR(www):
savemail: cannot save rejected email anywhere


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Compile issue on OpenBSD 3.2

2003-03-19 Thread Ken

Davide,

The compile definitely worked. And, I enabled the settings mentioned
below.

I had to fiddle with the sizes a bit for my individual server but so
far it seems to work fine. I haven't had a chance to test it under
load, though.

- Ken


--- Davide Libenzi <[EMAIL PROTECTED]> wrote:
> 
> XMail has not been carefully tested on OpenBSD like it has been on
> Linux/FreeBSD/Windows. While I'm very confident that the core is
> stable ( since the system interface basically uses the same POSIX
> function set ), the code that is underneath the handling of :
> 
> "SmtpMinDiskSpace"
> "Pop3MinDiskSpace"
> "SmtpMinVirtMemSpace"
> "Pop3MinVirtMemSpace"
> 
> rely on funtions that has been OpenBSD specific. A quick test of
> those functionalities would be appreciated ...
> 
> 
> - Davide


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Compile issue on OpenBSD 3.2

2003-03-19 Thread Ken

Davide and Rene,

The combination of these two seems to have worked. Received no errors
on the compile and it looks like it works. I am configuring now so I
will report later today if any issues arise.

XMail rocks!

- Ken

--- Davide Libenzi <[EMAIL PROTECTED]> wrote:
> 
> On Wed, 19 Mar 2003, Rene Rivera wrote:
> 
> > gmake -f Makefile.bsd OSTYPE=OpenBSD
> 
> You might want to try a :
> 
> $ gmake -f Makefile.bsd clean
> 
> before ...


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Compile issue on OpenBSD 3.2

2003-03-18 Thread Ken

Thanks, Rene!

The output is now:

delta# gmake -f Makefile.bsd
c++  -O2 -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__ -DXMAIL_X86
-D_REENTRANT=1 -D_THREAD_SAFE=1 -c SysDep.cpp
In file included from SysDep.cpp:40:
SysDepBSD.cpp: In function `int SysMemoryInfo(SYS_INT64 *, SYS_INT64
*, SYS_INT64 *, SYS_INT64 *)':
SysDepBSD.cpp:2795: implicit declaration of function `int
sysctlbyname(...)'
SysDepBSD.cpp:2836: storage size of `KSwap' isn't known
SysDepBSD.cpp:2837: `SWIF_DEV_PREFIX' undeclared (first use this
function)
SysDepBSD.cpp:2837: (Each undeclared identifier is reported only once
SysDepBSD.cpp:2837: for each function it appears in.)
SysDepBSD.cpp:2837: confused by earlier errors, bailing out
gmake: *** [SysDep.o] Error 1

That one line still says FreeBSD so I'm thinking I'm still having a
problem. And, the problems in SysDepBSD.cpp remain.

Thanks for the help!

- ken
--- Rene Rivera <[EMAIL PROTECTED]> wrote:
> 
> That's basically telling you that it doesn't think your running
> OpenBSD.
> 
> Make sure that your OSTYPE env variable is "OpenBSD".


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Compile issue on OpenBSD 3.2

2003-03-18 Thread Ken

Hello,

I am trying to compile XMail on OpenBSD 3.0 on I386 and I get the
following output:

delta# gmake -f Makefile.bsd
gmake: *** Warning: File `Makefile.bsd' has modification time in the
future (2003-01-17 18:02:06 > 2002-03-18 22:45:46)
c++  -O2 -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__ -DXMAIL_X86
-D_REENTRANT=1 -D_THREAD_SAFE=1 -c BuffSock.cpp
c++  -O2 -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__ -DXMAIL_X86
-D_REENTRANT=1 -D_THREAD_SAFE=1 -c CTRLSvr.cpp
c++  -O2 -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__ -DXMAIL_X86
-D_REENTRANT=1 -D_THREAD_SAFE=1 -c DynDNS.cpp
c++  -O2 -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__ -DXMAIL_X86
-D_REENTRANT=1 -D_THREAD_SAFE=1 -c DNS.cpp
c++  -O2 -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__ -DXMAIL_X86
-D_REENTRANT=1 -D_THREAD_SAFE=1 -c DNSCache.cpp
c++  -O2 -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__ -DXMAIL_X86
-D_REENTRANT=1 -D_THREAD_SAFE=1 -c Errors.cpp
c++  -O2 -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__ -DXMAIL_X86
-D_REENTRANT=1 -D_THREAD_SAFE=1 -c ExtAliases.cpp
c++  -O2 -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__ -DXMAIL_X86
-D_REENTRANT=1 -D_THREAD_SAFE=1 -c FINGSvr.cpp
c++  -O2 -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__ -DXMAIL_X86
-D_REENTRANT=1 -D_THREAD_SAFE=1 -c MailConfig.cpp
c++  -O2 -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__ -DXMAIL_X86
-D_REENTRANT=1 -D_THREAD_SAFE=1 -c MailSvr.cpp
c++  -O2 -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__ -DXMAIL_X86
-D_REENTRANT=1 -D_THREAD_SAFE=1 -c Maildir.cpp
c++  -O2 -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__ -DXMAIL_X86
-D_REENTRANT=1 -D_THREAD_SAFE=1 -c MailDomains.cpp
c++  -O2 -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__ -DXMAIL_X86
-D_REENTRANT=1 -D_THREAD_SAFE=1 -c MD5.cpp
c++  -O2 -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__ -DXMAIL_X86
-D_REENTRANT=1 -D_THREAD_SAFE=1 -c MiscUtils.cpp
c++  -O2 -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__ -DXMAIL_X86
-D_REENTRANT=1 -D_THREAD_SAFE=1 -c LMAILSvr.cpp
c++  -O2 -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__ -DXMAIL_X86
-D_REENTRANT=1 -D_THREAD_SAFE=1 -c AliasDomain.cpp
c++  -O2 -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__ -DXMAIL_X86
-D_REENTRANT=1 -D_THREAD_SAFE=1 -c POP3GwLink.cpp
c++  -O2 -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__ -DXMAIL_X86
-D_REENTRANT=1 -D_THREAD_SAFE=1 -c POP3Svr.cpp
c++  -O2 -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__ -DXMAIL_X86
-D_REENTRANT=1 -D_THREAD_SAFE=1 -c POP3Utils.cpp
c++  -O2 -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__ -DXMAIL_X86
-D_REENTRANT=1 -D_THREAD_SAFE=1 -c PSYNCSvr.cpp
c++  -O2 -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__ -DXMAIL_X86
-D_REENTRANT=1 -D_THREAD_SAFE=1 -c ResLocks.cpp
c++  -O2 -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__ -DXMAIL_X86
-D_REENTRANT=1 -D_THREAD_SAFE=1 -c SList.cpp
c++  -O2 -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__ -DXMAIL_X86
-D_REENTRANT=1 -D_THREAD_SAFE=1 -c SMAILSvr.cpp
c++  -O2 -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__ -DXMAIL_X86
-D_REENTRANT=1 -D_THREAD_SAFE=1 -c TabIndex.cpp
c++  -O2 -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__ -DXMAIL_X86
-D_REENTRANT=1 -D_THREAD_SAFE=1 -c SMAILUtils.cpp
c++  -O2 -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__ -DXMAIL_X86
-D_REENTRANT=1 -D_THREAD_SAFE=1 -c SMTPSvr.cpp
c++  -O2 -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__ -DXMAIL_X86
-D_REENTRANT=1 -D_THREAD_SAFE=1 -c SMTPUtils.cpp
c++  -O2 -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__ -DXMAIL_X86
-D_REENTRANT=1 -D_THREAD_SAFE=1 -c ShBlocks.cpp
c++  -O2 -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__ -DXMAIL_X86
-D_REENTRANT=1 -D_THREAD_SAFE=1 -c StrUtils.cpp
c++  -O2 -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__ -DXMAIL_X86
-D_REENTRANT=1 -D_THREAD_SAFE=1 -c MessQueue.cpp
c++  -O2 -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__ -DXMAIL_X86
-D_REENTRANT=1 -D_THREAD_SAFE=1 -c QueueUtils.cpp
c++  -O2 -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__ -DXMAIL_X86
-D_REENTRANT=1 -D_THREAD_SAFE=1 -c SvrUtils.cpp
c++  -O2 -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__ -DXMAIL_X86
-D_REENTRANT=1 -D_THREAD_SAFE=1 -c SysDep.cpp
In file included from SysDep.cpp:40:
SysDepBSD.cpp: In function `int SysMemoryInfo(SYS_INT64 *, SYS_INT64
*, SYS_INT64 *, SYS_INT64 *)':
SysDepBSD.cpp:2795: implicit declaration of function `int
sysctlbyname(...)'
SysDepBSD.cpp:2836: storage size of `KSwap' isn't known
SysDepBSD.cpp:2837: `SWIF_DEV_PREFIX' undeclared (first use this
function)
SysDepBSD.cpp:2837: (Each undeclared identifier is reported only once
SysDepBSD.cpp:2837: for each function it appears in.)
SysDepBSD.cpp:2837: confused by earlier errors, bailing out
gmake: *** [SysDep.o] Error 1
delta#

This is using the Makefile.bsd included in the Xmail 1.12 source
archive.

Any thoughts about what might be causing this?

Thanks!

- Ken


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]



[xmail] Compiling XMail on OpenBSD

2002-05-28 Thread Ken Larkman


Hello, everyone!


I took a break but I am back working on trying to compile Xmail-1.7 on
OpenBSD. I am trying this on another box I set up as pristine as possible
with simply GCC-core and GCC-C++ installed. This seems to have eliminated a
lot of errors but I am now getting this one:

delta# make -f Makefile.bsd
make: don't know how to make %.cpp. Stop in /home/packages/xmail-1.7.
delta#

Any guidance would be appreciated.

Thanks!

- Ken

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]




[xmail] Re: OpenBSD version of XMail

2002-05-16 Thread Ken L.


David,

Sure. Easy for you programmers. :) I'm just a system administrator.
I try to avoid anything that smacks of programming. :)

- Ken

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Davide Libenzi
> Sent: Thursday, May 16, 2002 11:11 AM
> To: XMail mailing list
> Subject: [xmail] Re: OpenBSD version of XMail
>
>
>
>
> as i told before, the OpenBSD port should be very easy. just a
slight
> change to SysDepFreeBSD.cpp and maybe SysIncludeFreeBSD.h
>
>
>
> - Davide

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]




[xmail] Re: OpenBSD version of XMail

2002-05-15 Thread Ken Larkman


Hello, Rene!

I would love to have a look at both versions.

Thanks!

- Ken

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Rene Rivera
> Sent: Wednesday, May 15, 2002 8:22 PM
> To: [EMAIL PROTECTED]
> Subject: [xmail] Re: OpenBSD version of XMail
> 
> 
> 
> 
> I have a version of 0.74 ported which I run. I started on a 
> 1.3 port but ran
> out of time to spend on it. If it will help I can send you 
> the 0.74 files I
> have, possibly also the 1.3 start. Are you game?

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]




[xmail] Re: OpenBSD version of XMail

2002-05-15 Thread Ken Larkman


David,

No worries. I'll keep fiddling with it and maybe I'll learn something. :)

- Ken

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Davide Libenzi
> Sent: Wednesday, May 15, 2002 8:09 PM
> To: [EMAIL PROTECTED]
> Subject: [xmail] Re: OpenBSD version of XMail
> 
> 
> 
> it should not be difficult at all, but i have not a machine 
> with OpenBSD
> and i have no time :)
> 
> 
> 
> - Davide

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]




[xmail] Re: OpenBSD version of XMail

2002-05-15 Thread Ken Larkman


David et al,

Thanks for your help. It looks like there are several projects looking at
porting Xmail to OpenBSD but none have so far posted files. I'm guessing
that means its not just as easing as compiling the FreeBSD port.

Thanks!

- Ken

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]




[xmail] Re: OpenBSD version of XMail

2002-05-15 Thread Ken Larkman


Hiyas, David!

> which openbsd version are you using ?

OpenBSD 3.0

> try :
> 
> $ find /usr/include -type f -exec grep -H sysctlbyname \{} \;

janus# find /usr/include -type f -exec grep sysctrlbyname \{} \;
janus#

> $ find /usr/include -type f -exec grep -H SWIF_DEV_PREFIX \{} \;

janus# find /usr/include -type f -exec grep SWIF_DEV_PREFIX \{} \;
janus#

I'm assuming this is bad. :)

- Ken 
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]




[xmail] Re: OpenBSD version of XMail

2002-05-15 Thread Ken Larkman


I tried doing a build of the FreeBSD version of XMail on OpenBSD 3.0 and
this is what the output was:

[START CUT & PASTE]
janus# gmake -f Makefile.bsd
c++  -O2 -I. -D__FREEBSD__ -DXMAIL_X86 -D_REENTRANT=1 -D_THREAD_SAFE=1 -c
SysDep.cpp
In file included from SysIncludeFreeBSD.h:38,
 from SysInclude.h:54,
 from SysDepFreeBSD.cpp:24,
 from SysDep.cpp:40:
/usr/include/sys/mount.h:80: warning: keyword 'export' not implemented and
will be ignored
/usr/include/sys/mount.h:88: warning: keyword 'export' not implemented and
will be ignored
/usr/include/sys/mount.h:98: warning: keyword 'export' not implemented and
will be ignored
/usr/include/sys/mount.h:211: warning: keyword 'export' not implemented and
will be ignored
/usr/include/sys/mount.h:231: warning: keyword 'export' not implemented and
will be ignored
In file included from SysDep.cpp:40:
SysDepFreeBSD.cpp: In function `int SysMemoryInfo(SYS_INT64 *, SYS_INT64 *,
SYS_INT64 *, SYS_INT64 *)':
SysDepFreeBSD.cpp:2700: implicit declaration of function `int
sysctlbyname(...)'
SysDepFreeBSD.cpp:2743: storage size of `KSwap' isn't known
SysDepFreeBSD.cpp:2744: `SWIF_DEV_PREFIX' undeclared (first use this
function)
SysDepFreeBSD.cpp:2744: (Each undeclared identifier is reported only once
SysDepFreeBSD.cpp:2744: for each function it appears in.)
SysDepFreeBSD.cpp:2744: confused by earlier errors, bailing out
gmake: *** [SysDep.o] Error 1
janus#

[END CUT & PASTE]

This is the result after the FreeBSD compatibility libraries were loaded on
the OpenBSD box.

Obviously, I am either missing something or I need to tweak the build
parametres.

Any ideas?

Thanks,

- Ken

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]




[xmail] Re: OpenBSD version of XMail

2002-05-15 Thread Ken Larkman


David,

Do you know if I will need the FreeBSD libraries installed for the build to
work?

- Ken

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Davide Libenzi
> Sent: Wednesday, May 15, 2002 5:00 PM
> To: Xmail List (E-mail)
> Subject: [xmail] Re: OpenBSD version of XMail
>
>
>
>
> actually there's no explicit version of XMail for OpenBSD but
> if you've
> gcc you should be able to build the with the FreeBSD makefile.
>
>
>
> - Davide

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]




[xmail] Re: OpenBSD version of XMail

2002-05-15 Thread Ken Larkman


David,

I was afraid you were going to say that. :(

- Ken

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Davide Libenzi
> Sent: Wednesday, May 15, 2002 5:00 PM
> To: Xmail List (E-mail)
> Subject: [xmail] Re: OpenBSD version of XMail
> 
> 
> 
> 
> actually there's no explicit version of XMail for OpenBSD but 
> if you've
> gcc you should be able to build the with the FreeBSD makefile.
> 
> 
> 
> - Davide

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]




[xmail] OpenBSD version of XMail

2002-05-15 Thread Ken Larkman


Hello,

I am curious if anyone has a pointer to a version of Xmail compiled for
OpenBSD 3.0? I tend not to have the greatest luck with compiling my own
versions so I am looking for something pre-compiled.

Any assistance is appreciated.

Thanks!

- Ken

--
Ken Larkman,
Freelance writer/Internet Consultant,
Calgary, Alberta, Canada
http://kenlarkman.com/
http://foothillskarate.org/
http://adept-hosting.net/
http://srsjournal.com/

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]




[xmail] Re: Locking down XMail

2002-04-02 Thread Ken L.

Hello, everyone!

I apologize for not being specific in my previous email. I was, of
course, referring to closing SMTP to open relaying.

I managed to fix this by removing "0.0.0.0"[TAB]"0.0.0.0" as one of
David's posts suggested. It did not take immediately, however,
despite restarting the service. I actually had to remove the
administrator email account and recreate it. Has anyone else had
this experience? I suspect that I may have created the problem with
my tinkerings.

Thanks!

- Ken

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]




[xmail] Locking down SMTP

2002-04-01 Thread Ken Larkman

I am having some difficulty locking down SMTP on XMail. I'm pretty sure the
problem is my reading comprehension or perhaps plain old difficulties in
getting my head around new concepts. :)

Any assistance in locking down SMTP would be gratefully received.

- Ken

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]