Re: why can't I do this?

2000-04-18 Thread Rogerio Brito

On Apr 19 2000, Adam McKenna wrote:
> in .qmail-default:
> 
> /home/user/$EXT/Maildir/

Well, you could use something like:

| someprogram /home/user/"$EXT"/Maildir/

where someprogram is something that gets its message from
stdin and writes it to the maildir given as parameter.

BTW, as Peter noticed, one should be very careful with these
things, since $EXT is controlled by the remote "adversary".


[]s, Roger...

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  Rogerio Brito - [EMAIL PROTECTED] - http://www.ime.usp.br/~rbrito/
 Nectar homepage: http://www.linux.ime.usp.br/~rbrito/opeth/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



Re: why can't I do this?

2000-04-18 Thread Adam McKenna

Never mind, I figured out a way..

tricks with assign.

--Adam



Re: why can't I do this?

2000-04-18 Thread Peter Samuel

On Wed, 19 Apr 2000, Adam McKenna wrote:

> in .qmail-default:
> 
> /home/user/$EXT/Maildir/
> 
> i.e., if I send mail to [EMAIL PROTECTED], mail should go to
> /home/adam/foo/Maildir/
> 
> qmail defers the message: 
> @400038fce0c3041b6634 delivery 38: deferral: 
>Unable_to_chdir_to_maildir._(#4.2.1)/

qmail only does variable expansions on lines beginning with a '|'
character. Other lines are assumed to be addresses or _exact_
filenames. In your case $EXT is being treated literally and you don't
have a directory literally called /home/user/$EXT.

The user adam should have a Maildir/ AND he should also have a ~/.qmail-foo
file that contains:

./Maildir

That will solve the problem.

Regards
Peter
--
Peter Samuel[EMAIL PROTECTED]
Technical Consultantor at present:
eServ. Pty Ltd  [EMAIL PROTECTED]
Phone: +61 2 9206 3410  Fax: +61 2 9281 1301

"If you kill all your unhappy customers, you'll only have happy ones left"




Re: why can't I do this?

2000-04-18 Thread Adam McKenna

Well, this isn't actually for me.  I'm trying to create a workaround to allow
an upgrade to qmail 1.03 for a client who is currently using a heavily modded
qmail 1.01.  (the person who made the modifications is gone, and the current
source doesn't compile.  nice, huh?)

Basically, they don't want to store the .qmail files in the home directory,
they want to store them in a directory under the home directory..  So,
instead of /home/customer/.qmail-info, they want to do
/home/customer/customer/.qmail-info..  (And they have software that is
writing the .qmail files to /home/customer/customer instead of
/home/customer, and I don't have the source to those either.)

So it occured to me that they really didn't need a .qmail file for every
user, since the directory names they are delvering to are just $EXT.  I
figured I could just deliver to /home/customer/$EXT/Maildir/.

So, any ideas how I can write a .qmail-default to deliver based on the info 
in the .qmail files in /home/customer/customer/?

--Adam

On Wed, Apr 19, 2000 at 07:37:21AM +0200, Peter van Dijk wrote:
> On Wed, Apr 19, 2000 at 01:22:05AM -0400, Adam McKenna wrote:
> > in .qmail-default:
> > 
> > /home/user/$EXT/Maildir/
> 
> This is assuming this .qmail-default file is in user's homedir.
> 
> I don't think qmail does variable expansion.
> 
> I also think you are trusting information from outside users too much.
> 
> Greetz, Peter.
> -- 
> Peter van Dijk - student/sysadmin/ircoper/madly in love/pretending coder 
> |  
> | 'C makes it easy to shoot yourself in the foot;
> |  C++ makes it harder, but when you do it blows your whole leg off.'
> | Bjarne Stroustrup, Inventor of C++
> 



Re: Maildir not working

2000-04-18 Thread Peter Samuel

On Wed, 19 Apr 2000, Madhav wrote:

> Hi all,
> I have this problem of Maildir not working properly. To install qmail, I
> have followed all the steps listed in Life with qmail site( including
> Maildir).  In the multilog, I am getting the following message when I send a
> message from root to one user [EMAIL PROTECTED] server1 is our MX.
> Mailbox delivery is working properly when I tried.
> 
> Thanks,
> Madhav
> 
> @400038fd3ea12fc16914 status: local 0/10 remote 0/20
> @400038fd3f942aba9364 new msg 45086
> @400038fd3f942abd8164 info msg 45086: bytes 230 from
> <[EMAIL PROTECTED]
> st.com> qp 736 uid 0
> @400038fd3f942aecb36c starting delivery 1: msg 45086 to local
> [EMAIL PROTECTED]
> amailtest.com
> @400038fd3f942aee5564 status: local 1/10 remote 0/20
> @400038fd3f94345d3854 delivery 1: deferral:
> Unable_to_open_./Maildir:_is_a_d
> irectory._(#4.2.1)/
> @400038fd3f94345f092c status: local 0/10 remote 0/20

The log output above is telling you that qmail-local cannot open
Maildir because it is a directory and it is expecting it to be a
file.

Looks like you left off the trailing / in your qmail-start invocation.
If the qmail-lspawn delivery instruction ends with a slash, the
default delivery format is assumed to be a Maildir. If there is no
slash then the default delivery is assumed to be an mbox. _Regardless_
of the names used. So, does your entry look like this

qmail-start ./Maildir   # INCORRECT

or like this

qmail-start ./Maildir/  # CORRECT

Regards
Peter
--
Peter Samuel[EMAIL PROTECTED]
Technical Consultantor at present:
eServ. Pty Ltd  [EMAIL PROTECTED]
Phone: +61 2 9206 3410  Fax: +61 2 9281 1301

"If you kill all your unhappy customers, you'll only have happy ones left"




Re: WebMail

2000-04-18 Thread Olivier M.

On Tue, Apr 18, 2000 at 04:18:28PM -0500, Travis Leuthauser wrote:
> I'm looking for some real life experiences/opinions on a web interface that
> reads mail directly from Maildir.  I'm interested in offering a web
> interface for my customers.  I'm running qmail 1.03 with the pop3d daemon.
> Any opinions would be greatly appreciated.

You could try oMail-webmail :
http://webmail.omnis.ch  (then click on the About link)

Greetings,
Olivier



Re: why can't I do this?

2000-04-18 Thread Peter van Dijk

On Wed, Apr 19, 2000 at 01:22:05AM -0400, Adam McKenna wrote:
> in .qmail-default:
> 
> /home/user/$EXT/Maildir/

This is assuming this .qmail-default file is in user's homedir.

I don't think qmail does variable expansion.

I also think you are trusting information from outside users too much.

Greetz, Peter.
-- 
Peter van Dijk - student/sysadmin/ircoper/madly in love/pretending coder 
|  
| 'C makes it easy to shoot yourself in the foot;
|  C++ makes it harder, but when you do it blows your whole leg off.'
| Bjarne Stroustrup, Inventor of C++



Re: Compiling

2000-04-18 Thread Peter van Dijk

On Wed, Apr 19, 2000 at 09:22:39AM +0900, Kristina wrote:
> I have posted the same question in the past. Apparently it is not an error.
> Nothing to worry about. If you need a technical explanation  you will
> find it in the archives as their was much discussion as the result of my post.

In short: some C standard requires that the return type of main is int
(silly requirement IMHO), and newer gcc's (among others) give warnings for
that.

Please do not start a discussion about this here.

Greetz, Peter.
-- 
Peter van Dijk - student/sysadmin/ircoper/madly in love/pretending coder 
|  
| 'C makes it easy to shoot yourself in the foot;
|  C++ makes it harder, but when you do it blows your whole leg off.'
| Bjarne Stroustrup, Inventor of C++



Maildir not working

2000-04-18 Thread Madhav

Hi all,
I have this problem of Maildir not working properly. To install qmail, I
have followed all the steps listed in Life with qmail site( including
Maildir).  In the multilog, I am getting the following message when I send a
message from root to one user [EMAIL PROTECTED] server1 is our MX.
Mailbox delivery is working properly when I tried.

Thanks,
Madhav

@400038fd3ea12fc16914 status: local 0/10 remote 0/20
@400038fd3f942aba9364 new msg 45086
@400038fd3f942abd8164 info msg 45086: bytes 230 from
<[EMAIL PROTECTED]
st.com> qp 736 uid 0
@400038fd3f942aecb36c starting delivery 1: msg 45086 to local
[EMAIL PROTECTED]
amailtest.com
@400038fd3f942aee5564 status: local 1/10 remote 0/20
@400038fd3f94345d3854 delivery 1: deferral:
Unable_to_open_./Maildir:_is_a_d
irectory._(#4.2.1)/
@400038fd3f94345f092c status: local 0/10 remote 0/20




why can't I do this?

2000-04-18 Thread Adam McKenna

in .qmail-default:

/home/user/$EXT/Maildir/

i.e., if I send mail to [EMAIL PROTECTED], mail should go to
/home/adam/foo/Maildir/

qmail defers the message: 
@400038fce0c3041b6634 delivery 38: deferral: Unable_to_chdir_to_maildir._(#4.2.1)/




Re: qmail deleting Maildir/cur directory (fwd)

2000-04-18 Thread Ian Shaughnessy

Thats one of the things.. I am not sure exactly when.  Sometime between
11am and 2pm today, that much I can give you, but I have scoured the logs
for any hint of when this might be happening and I cant find
anything.  All I know is when I checked my mail this morning it was all
there, but when I checked it this afternoon it wasnt.  Quite confusing,
definately.  and like I said, the log files provided no help what so
ever.  They all just read like "blah blah mail message delivered
successfuly" and when users have logged in.  



// Ian Shaughnessy
// [EMAIL PROTECTED]


On Tue, 18 Apr 2000 [EMAIL PROTECTED] wrote:

> On Tue, Apr 18, 2000 at 09:42:14PM -0700, Ian Shaughnessy wrote:
> > I am having a really odd problem; qmail keeps deleting my Maildir/cur
> 
> Really? 
> 
> Perhaps it would help if you identified *when* it got deleted. Does it
> get deleted when new mail arrives, when you start pine when you pop in
> to get mail, when?
> 
> Saying "qmail keeps deleting" is not very helpful.
> 
> > directory.  None of my users have ever had this problem, and I only have
> > this problem on my non-root account.  What could be going on?  I am using
> > Pine, and I am not sure if that could be the problem or not... frankly I
> > am pretty confused as to what the heck is happening.  Any ideas or help
> > would be greatly appreciated.  For the record this has happened twice, and
> > I am suspicious of Netscape Messenger, even though I rarely use it (only
> > at school for this account) and I have it configured to leave messages on
> > the server after it downloads them.  Thanks.
> > 
> > 
> > // Ian Shaughnessy
> > // [EMAIL PROTECTED]
> > 
> > 
> > 
> > 
> 




Re: qmail deleting Maildir/cur directory (fwd)

2000-04-18 Thread markd

On Tue, Apr 18, 2000 at 09:42:14PM -0700, Ian Shaughnessy wrote:
> I am having a really odd problem; qmail keeps deleting my Maildir/cur

Really? 

Perhaps it would help if you identified *when* it got deleted. Does it
get deleted when new mail arrives, when you start pine when you pop in
to get mail, when?

Saying "qmail keeps deleting" is not very helpful.

> directory.  None of my users have ever had this problem, and I only have
> this problem on my non-root account.  What could be going on?  I am using
> Pine, and I am not sure if that could be the problem or not... frankly I
> am pretty confused as to what the heck is happening.  Any ideas or help
> would be greatly appreciated.  For the record this has happened twice, and
> I am suspicious of Netscape Messenger, even though I rarely use it (only
> at school for this account) and I have it configured to leave messages on
> the server after it downloads them.  Thanks.
> 
> 
> // Ian Shaughnessy
> // [EMAIL PROTECTED]
> 
> 
> 
> 



qmail deleting Maildir/cur directory (fwd)

2000-04-18 Thread Ian Shaughnessy

I am having a really odd problem; qmail keeps deleting my Maildir/cur
directory.  None of my users have ever had this problem, and I only have
this problem on my non-root account.  What could be going on?  I am using
Pine, and I am not sure if that could be the problem or not... frankly I
am pretty confused as to what the heck is happening.  Any ideas or help
would be greatly appreciated.  For the record this has happened twice, and
I am suspicious of Netscape Messenger, even though I rarely use it (only
at school for this account) and I have it configured to leave messages on
the server after it downloads them.  Thanks.


// Ian Shaughnessy
// [EMAIL PROTECTED]







Re: Re[2]: backup mail server

2000-04-18 Thread Bob Rogers

   From: Andy Bradford <[EMAIL PROTECTED]>
   Date: Tue, 18 Apr 2000 08:55:46 -0600

   Yes seriously.  Most MTA's will queue email for at least 3 days, so 
   unless your hardware failure lasts that long then you should be 
   fine.

   Andy

But not always.  My ISP (which shall remain nameless -- ;-) bounced an
email I sent myself from work after trying to deliver it for less than
an hour.  To add insult to injury, the only reason they couldn't deliver
it was because of their own internal outage -- an outage that lasted
five hours.  So I am considering an alternate MX myself.  (Yes, I know;
a better solution would be to get another ISP.)

-- Bob Rogers



Re: Check timestamps

2000-04-18 Thread Bob Rogers

   From: "Jose de Leon" <[EMAIL PROTECTED]>
   Date: Tue, 18 Apr 2000 13:24:47 -0700

   What exactly do you mean by "not really reliable"?  Do you mean sometimes
   the cur dir timestamps and sometimes it doesn't?  Or do you mean that the
   timestamp itself may be off a few minutes?  If it is off a few minutes, I
   can work with that.

I think he means that it is too easy to update the access timestamp by
accident, e.g. by doing a backup.

-- Bob Rogers



Re: Someone else brought it up, and i noticed mine wasnt working :)

2000-04-18 Thread Anthony White

Hey guys,

I worked it out, very simple...

Log in as root.

Create the following: (where '~/' is your qmail directory, usually /var/qmail)

'~/alias/Maildir'
'~/alias/Maildir/cur'
'~/alias/Maildir/new'
'~/alias/Maildir/tmp'

'chown -R alias /var/qmail/alias/Maildir'
'chgrp -R qmail /var/qmail/alias/Maildir'
'chmod -R 700 /var/qmail/alias/Maildir'

Now the mail directory and its sub directories are all owned
by 'alias'.

The group ownership is set to 'qmail'.  Maybe this does not matter
as the permissions are set to allow access for owner use only.

Also make sure that the '.qmail-xyz' files are owned by 'alias'
and the group ownership is 'qmail' for the ones you set up.
(Do not change the ones that the install created from the '/etc/alias'
file)

Now you can set up the content of the '.qmail-xyz' file.  In my example
the file is '.qmail-test'.  The file should contain "./Maildir/" (Without
the quotes) and nothing else.
If you want '.qmail-test' to redirect to a user then change the content to
"&[EMAIL PROTECTED]" (Or just "&user_name" if local) again without
the quotes.

I have just tested it out and it works fine.  I think that my main problem
was using 'maildirmake' to create a '/Maildir' which created it under
the '/root' directory.

Qmail will not deliver to the 'root' account.  Copying '/Maildir' to
'~/alias/Maildir also failed to allow the mail to be put into
the '~/alias/Maildir/new' due to the ownership being root.

Lastly the '.qmail-test' was also owned by 'root' which I think also
stops delivery to the '/Maildir' under '~/alias'

Sending mail to '[EMAIL PROTECTED]' now puts the mail in the
'~/alias/Maildir' directory.

-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

On an other note:

Does anyone know how to set up qmail pop to get the mail from
the '~/alias/Maildir' "account".  I would like to be able to
check this "account" as if it is a 'normal' account, (With Netscape)
without having an account set up on the Linux box.
What about a password for access?

Best regards
Anthony

--

Movielink Pty LtdE-Mail technical: [EMAIL PROTECTED]
8-10 River StreetE-Mail Sales: [EMAIL PROTECTED]
Richmond, Victoria 3121  Ph  : +(61) 3 9428 8088
AustraliaFAX : +(61) 3 9429 5918






Qmail config: getting closer additional info

2000-04-18 Thread Bob Rogers

   From: [EMAIL PROTECTED]
   Date: Tue, 18 Apr 2000 14:02:06 -0700

   When testing reciving mail as documented in TEST.receive, I follow
   the steps as follows but when I log in to the user's account and type
   the '$mail' command I receive "no mail for user" . . .

Quoting TEST.receive here is not useful; all we need to know is that the
telnet session was successful.

   My original message follows:

   In testing my senmail config, I follow the steps documented in
   TEST.deliver with the following results:

   1.   When I send to a local user from the root account via the  "echo to: me |
   /var/qmail/bin/qmail-inject" command,
   I see the success message in the /var/loq/qmail dir log file. But, when I log
   into the machine as that user and type the mail command, the response is " no
   mail for user".

Probably because mail is looking in the wrong place (since you state
below that you are using ~/Maildir/ delivery).  Or, it might not have
been delivered; what do the logs say?

   2.   When I send to my hotmail account via "echo to: [EMAIL PROTECTED] |
   /var/qmail/bin/qmail-inject", account I see an empty message in my hotmail
   account. But when I send to my account at my employer (at work) from my new
   qmail box at home (on separate domain)via the " echo to: [EMAIL PROTECTED]
   | /var/qmail/bin/qmail-inject" command, I don't receive the test message from my
   lotus notes client (at work).

Again, is it still in the queue?  What do the logs say?

   This is probably the answer to #2 but I'm not sure:  I can traceroute from
   the qmail box to 'hotmail.com' but the traceroute to 'candle.com' fails to
   finish. All I see is a repeated "***".

No, this just means one of the routers/firewalls along the way filters
out ICMP packets.

   Prior to running the test, I converted to Maildir from mailbox and
   changed the rc file to reflect this as well as run:
   %maildirmake $HOME/Maildir  AND
   %maildirmake $HOME/Maildir in existing user's directory

Eh?

   In any case, "mail" is about as primitive an MUA as you could find.
You're better off using ls & cat -- especially with maildirs!  (Which
you will need for POP anyway.)

-- Bob Rogers



pop daemontool

2000-04-18 Thread Mike Alexander Sauvain



./run < in services of deamtools
exec env - PATH="/var/qmail/bin:$PATH" \> 
tcpserver 0 110 /var/qmail/bin/qmail-popup host.name.gov \> 
/bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir &
works, but how i can generate any ouput 
?
 
thx  mike


Re: Qmail on FreeBSD 4.0

2000-04-18 Thread Patrick Bihan-Faou

Hi,


> I remember one patch in FreeBSD shortly before 4.0-release which,
> according to the cvs log, was supposed to fix this problem. I'll
> see if I can dig it up. If this bug is not fixed someone who is
> affected should file a PR with FreeBSD gnats.

Yep, there was a first attempt at fixing it, but it was incomplete and will
result in a kernel panic.

I have filed a PR with the proper fix, but it has not been commited yet (PR
17311).

Patrick.





Fw: Compilation

2000-04-18 Thread Mike Alexander Sauvain

try to do ./config-fast yourhost.dname.top


- Original Message -
From: Stephen F. Bosch <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, April 18, 2000 7:40 PM
Subject: Re: Compilation


Marcos dos santos Costa wrote:
>
> Dear Friends (again),
>
> Well, I compiled again the qmail and when I executed the ./config for
check my configuration, it show this:
>
> Your hostname is pegasus.
> Your host's fully qualified name in DNS is ol33-106.openlink.com.br.
> Putting ol33-106.openlink.com.br into control/me...
> Putting openlink.com.br into control/defaultdomain...
> Putting com.br into control/plusdomain...
>
> Checking local IP addresses:
> 127.0.0.1: Adding localhost to control/locals...
> 192.168.1.1: PTR lookup failed. I assume this address has no DNS name.
> 192.168.3.1: PTR lookup failed. I assume this address has no DNS name.
> 200.188.33.106: Adding ol33-106.openlink.com.br to control/locals...
>
> If there are any other domain names that point to you,
> you will have to add them to /var/qmail/control/locals.
> You don't have to worry about aliases, i.e., domains with CNAME
records.
>
> Copying /var/qmail/control/locals to /var/qmail/control/rcpthosts...
> Now qmail will refuse to accept SMTP messages except to those hosts.
> Make sure to change rcpthosts if you add hosts to locals or
virtualdomains!
>
> Now, I Ask. There are some errors on this compilation, or not?

This looks in order to me...

-Stephen-





Re: pop 110 / daemontools / tcpserver / MySQL

2000-04-18 Thread John Gonzalez/netMDC admin


the POP service shouldnt be run under supervise. It is started on a PER
connection basis.

You can either use /etc/inetd.conf to load your pop server, or use the
(suggested method) and use tcpserver to invoke it.

the LWQ web site is probably the best first stop for information.

http://web.infoave.net/~dsill/lwq.html

What format are you storing your email in? Maildir? If so, qmail-pop3d is
reccomended, and the LWQ site should be able to walk you through it.

On Wed, 19 Apr 2000, Mike Alexander Sauvain wrote:

>but i found no where any example how to make the pop service aviable.
>
>and now the final: after sucessfull mysql patch: 
>http://www.softagency.co.jp/mysql/qmail2.en.html
>
>it changes these script ?
>
>..thanks again..mike
>
>
>
>
>
>

  ___   _  __   _  
__  /___ ___    /__  John Gonzalez/Net.Tech
__  __ \ __ \  __/_  __ `__ \/ __  /_  ___/ MDC Computers/netMDC!
_  / / / `__/ /_  / / / / / / /_/ / / /__ (505)437-7600/fax-437-3052
/_/ /_/\___/\__/ /_/ /_/ /_/\__,_/  \___/ http://www.netmdc.com
[-[system info]---]
  8:05pm  up 85 days,  3:02,  3 users,  load average: 0.12, 0.22, 0.19




pop 110 / daemontools / tcpserver / MySQL

2000-04-18 Thread Mike Alexander Sauvain




next quest:
after fine compiling, with the nice howto from: http://web.infoave.net/~dsill/lwq.html
if have installed qmail. (after much confusing of differents howtos). Now 
first quest beginn:
I installed the script what i found to put qmail into daemontools / service 
loader. It look like
qmaildir:
-rwxr-xr-x   1 root 
root  221 Apr 19 01:41 
rcdrwxr-xr-x   4 root 
root 1024 Apr 19 02:15 
supervisedrwxr-xr-x   2 root 
qmail    1024 Apr 19 01:34 
users/qmail/supervise # latotal 4drwxr-xr-x   4 
root 
root 1024 Apr 19 02:15 
.drwxr-xr-x  11 root 
qmail    1024 Apr 19 02:22 
..drwxr-xr-t   4 root 
root 1024 Apr 19 02:22 
qmail-senddrwxr-xr-t   4 root 
root 1024 Apr 19 02:23 
qmail-smtpd/qmail/supervise/qmail-send # latotal 
5drwxr-xr-t   4 root 
root 1024 Apr 19 02:22 
.drwxr-xr-x   4 root 
root 1024 Apr 19 02:15 
..drwxr-xr-x   3 root 
root 1024 Apr 19 02:14 
log-rwxr-xr-x   1 root 
root   32 Apr 19 01:55 
rundrwx--   2 root 
root 1024 Apr 19 02:59 
supervise
but i found no where any example how to make the pop service aviable.
and now the final: after sucessfull mysql patch: http://www.softagency.co.jp/mysql/qmail2.en.html
it changes these script ?
..thanks again..mike
 
 


Re: Someone else brought it up, and i noticed mine wasnt working :)

2000-04-18 Thread Anthony White



John Gonzalez/netMDC admin wrote:

> My local deliver to postmaster/root/mailer-daemon isnt working either, now
> that i check it..

For easy checking you can create a test name that
is not used on your system

I have set up '.qmail-test' and put "&sys_admin_name"
in the file to re-direct messages.  I gues you can
'play' with this for test purposes, I will now...

> :/var/qmail/alias$ ls -lr Maildir
> total 3
> drwx--S---   2 root qmail1024 Apr 18 19:17 tmp/
> drwx--S---   2 root qmail1024 Apr 18 19:17 new/
> drwx--S---   2 root qmail1024 Apr 18 19:17 cur/
>
> [ekool@nivenh][date:Tue Apr 18][time:19:31:15]
> :/var/qmail/alias$ cat .qmail*
> ./Mailbox/
> ./Mailbox/
> ./Mailbox/
>
> And from the log files...
>
> Apr 18 19:33:27 nivenh qmail: 956108007.758396 starting delivery 1140003:
> msg 225318 to local [EMAIL PROTECTED]
> Apr 18 19:33:27 nivenh qmail: 956108007.819392 delivery 1140003: deferral:
> Unable_to_chdir_to_maildir._(#4.2.1)/
>
> I must have the permissions wrong on the Maildir, but i've changed them.
> I've also changed the contents of the alias files to reflect ./Maildir
> instead of ./Mailbox to no avail.

--

Movielink Pty LtdE-Mail technical: [EMAIL PROTECTED]
8-10 River StreetE-Mail Sales: [EMAIL PROTECTED]
Richmond, Victoria 3121  Ph  : +(61) 3 9428 8088
AustraliaFAX : +(61) 3 9429 5918






Someone else brought it up, and i noticed mine wasnt working :)

2000-04-18 Thread John Gonzalez/netMDC admin

My local deliver to postmaster/root/mailer-daemon isnt working either, now
that i check it..

Here's the info. This machine is running vmailmgrd and is working
perfectly. Neither mail delivered to postmaster@ the local machine name,
or at the virtual domain are being delivered.

:/var/qmail/alias$ ls -la
total 6
drwxr-sr-x   3 aliasqmail1024 Apr 18 19:17 ./
drwxr-xr-x  10 root qmail1024 Jan  1  1997 ../
-rw-r--r--   1 root qmail  11 Apr 18 19:26
.qmail-mailer-daemon
-rw-r--r--   1 root qmail  11 Apr 18 19:26 .qmail-postmaster
-rw-r--r--   1 root qmail  11 Apr 18 19:26 .qmail-root
-rw---   1 root qmail   0 Jun 24  1999 Mailbox
drwxr-xr-x   5 root qmail1024 Apr 18 19:17 Maildir/

:/var/qmail/alias$ ls -lr Maildir
total 3
drwx--S---   2 root qmail1024 Apr 18 19:17 tmp/
drwx--S---   2 root qmail1024 Apr 18 19:17 new/
drwx--S---   2 root qmail1024 Apr 18 19:17 cur/

[ekool@nivenh][date:Tue Apr 18][time:19:31:15]
:/var/qmail/alias$ cat .qmail*
./Mailbox/
./Mailbox/
./Mailbox/

And from the log files...

Apr 18 19:33:27 nivenh qmail: 956108007.758396 starting delivery 1140003:
msg 225318 to local [EMAIL PROTECTED]
Apr 18 19:33:27 nivenh qmail: 956108007.819392 delivery 1140003: deferral:
Unable_to_chdir_to_maildir._(#4.2.1)/

I must have the permissions wrong on the Maildir, but i've changed them.
I've also changed the contents of the alias files to reflect ./Maildir
instead of ./Mailbox to no avail.


  ___   _  __   _  
__  /___ ___    /__  John Gonzalez/Net.Tech
__  __ \ __ \  __/_  __ `__ \/ __  /_  ___/ MDC Computers/netMDC!
_  / / / `__/ /_  / / / / / / /_/ / / /__ (505)437-7600/fax-437-3052
/_/ /_/\___/\__/ /_/ /_/ /_/\__,_/  \___/ http://www.netmdc.com
[-[system info]---]
  7:30pm  up 85 days,  2:27,  3 users,  load average: 0.14, 0.16, 0.16




Re: How to set /var/qmail/alias/.qmail-xxxx ./Maildir/ up.

2000-04-18 Thread Anthony White



[EMAIL PROTECTED] wrote:

> On Wed, Apr 19, 2000 at 10:45:47AM -0700, Anthony White wrote:

>
> Well, the log files would be definitive on this matter. You could
> turn off the forwarding for a while and see what happens.

I guess I could try sending mail to these to check...

> Qmail delivers them as the user alias, so if alias can write into those
> directories, then everything is fine. There is no magic in the groups.

I have just chown'ed all files in '~/alias' to qmail.  See the
ls -la listing for the directory below.  The 'sticky' bit is set.

drwxr-sr-x   2 aliasqmail1024 Apr 13 10:56 .
drwxr-xr-x  12 root qmail1024 Apr 13 14:20 ..

> > -rw-rw-r--   1 root qmail  10 Apr 13 10:25 .qmail-root

> > Should 'root' own the 4 last in the list or should they be owened by 'alias'
> > ?
>
> As a rule I try and have the user of the alias files be the owner, but
> if Unix lets the user alias read those files, then it's ok. In this case
> since you have a=r you are fine.
>
> To test for sure, su to alias and try and read them with cat or more
> or somesuch.
>

What would the password for su alias be?
Regards

Anthony
--

Movielink Pty LtdE-Mail technical: [EMAIL PROTECTED]
8-10 River StreetE-Mail Sales: [EMAIL PROTECTED]
Richmond, Victoria 3121  Ph  : +(61) 3 9428 8088
AustraliaFAX : +(61) 3 9429 5918






Re: How to set /var/qmail/alias/.qmail-xxxx ./Maildir/ up.

2000-04-18 Thread markd

On Wed, Apr 19, 2000 at 10:45:47AM -0700, Anthony White wrote:

> > The logs should show you what delivery is being made for those addresses,
> > what do they show? Are they delivering or are they failing to deliver
> > and sitting in the queue?
> 
> Until I set up forwarding to the system admin they sat in the queue
> as far as I remember.  Before setting default delivery to '/Maildir/'
> format they did appear in the '~/alias' directory.

Well, the log files would be definitive on this matter. You could
turn off the forwarding for a while and see what happens.

> > Generally speaking, they will deliver to ./Maildir in ~alias - when
> > you made the Maildir, did you make sure that it and the subdirs are all
> > owned by alias?
> 
> As I asked in the posting, what should the GRP and OWN be st to for
> the ~/alias/Maildir ?  You mention 'alias for the owner, what about the
> GRP ?

Qmail delivers them as the user alias, so if alias can write into those
directories, then everything is fine. There is no magic in the groups.

> My entries...
> 
> -rw-rw-r--   1 root qmail  10 Apr 13 10:25 .qmail-root
> -rw-rw-r--   1 root qmail  10 Apr 13 10:25 .qmail-test
> -rw-rw-r--   1 root qmail  10 Apr 13 10:24 .qmail-postmaster
> -rw-rw-r--   1 root qmail  10 Apr 13 10:25 .qmail-mailer-daemon
> 
> Should 'root' own the 4 last in the list or should they be owened by 'alias'
> ?

As a rule I try and have the user of the alias files be the owner, but
if Unix lets the user alias read those files, then it's ok. In this case
since you have a=r you are fine.

To test for sure, su to alias and try and read them with cat or more
or somesuch.


Regards.



Re: How to set /var/qmail/alias/.qmail-xxxx ./Maildir/ up.

2000-04-18 Thread Anthony White



[EMAIL PROTECTED] wrote:

> On Wed, Apr 19, 2000 at 10:13:36AM -0700, Anthony White wrote:

> > During my initial tests I had no forwarding set up for
> > '~/alias/.qmail-postmaster' or '~alias/.qmail-root'.
> >
> > Any mail to these accounts placed the mail in 'mbox' format
> > under the '~/alias' directory.  However after changing to
> > './Maildir/' these E-Mail messages were no longer stored here.
> >
> > Where do I set up the '/Maildir/' directory for these addresses?
>
> The logs should show you what delivery is being made for those addresses,
> what do they show? Are they delivering or are they failing to deliver
> and sitting in the queue?

Until I set up forwarding to the system admin they sat in the queue
as far as I remember.  Before setting default delivery to '/Maildir/'
format they did appear in the '~/alias' directory.


> Generally speaking, they will deliver to ./Maildir in ~alias - when
> you made the Maildir, did you make sure that it and the subdirs are all
> owned by alias?

As I asked in the posting, what should the GRP and OWN be st to for
the ~/alias/Maildir ?  You mention 'alias for the owner, what about the
GRP ?

Generated during install

-rw-r--r--   1 aliasnofiles 6 Aug 21  1999 .qmail-bin
-rw-r--r--   1 aliasnofiles 6 Aug 21  1999 .qmail-nobody
-rw-r--r--   1 aliasnofiles 6 Aug 21  1999 .qmail-operator
-rw-r--r--   1 aliasnofiles 6 Aug 21  1999 .qmail-system

My entries...

-rw-rw-r--   1 root qmail  10 Apr 13 10:25 .qmail-root
-rw-rw-r--   1 root qmail  10 Apr 13 10:25 .qmail-test
-rw-rw-r--   1 root qmail  10 Apr 13 10:24 .qmail-postmaster
-rw-rw-r--   1 root qmail  10 Apr 13 10:25 .qmail-mailer-daemon

Should 'root' own the 4 last in the list or should they be owened by 'alias'
?

What about the group 'qmail' ?

There are several more with 'grp' 'nofiles' but I have cut the list down
for clarity.  They were created during install from the '/etc/alias' file.

Regards
Anthony

--

Movielink Pty LtdE-Mail technical: [EMAIL PROTECTED]
8-10 River StreetE-Mail Sales: [EMAIL PROTECTED]
Richmond, Victoria 3121  Ph  : +(61) 3 9428 8088
AustraliaFAX : +(61) 3 9429 5918






Re: Compiling

2000-04-18 Thread Kristina

I have posted the same question in the past. Apparently it is not an error.
Nothing to worry about. If you need a technical explanation  you will
find it in the archives as their was much discussion as the result of my post.

Kristina


At 02:04 00/04/19 +0200, you wrote: 
>
> what it means when i compile qmail with make setup check:
>  
> ./load auto-uid substdio.a error.a str.a fs.a 
> ./compile auto-gid.c
> auto-gid.c: In function `main':
> auto-gid.c:20: warning: return type of `main' is not `int'
> ./load auto-gid substdio.a error.a str.a fs.a 
>  ... in the complete proccess...
>  qmail-start.c: In function `main':
> qmail-start.c:31: warning: return type of `main' is not `int'
>  
> ..*it's really an error main is not int and what ?
>  
> Thanks. mike







Re: How to set /var/qmail/alias/.qmail-xxxx ./Maildir/ up.

2000-04-18 Thread markd

On Wed, Apr 19, 2000 at 10:13:36AM -0700, Anthony White wrote:
> Hi there,
> 
> I have a successfully running qmail setup.  However I initially
> used mbox (/Mailbox) configuration.  Since it is not
> necessary for our users to use MUA's on the server
> itself (All access is via POP) I decided to use './Maildir/'
> and changed everything accordingly.
> 
> During my initial tests I had no forwarding set up for
> '~/alias/.qmail-postmaster' or '~alias/.qmail-root'.
> 
> Any mail to these accounts placed the mail in 'mbox' format
> under the '~/alias' directory.  However after changing to
> './Maildir/' these E-Mail messages were no longer stored here.
> 
> Where do I set up the '/Maildir/' directory for these addresses?

The logs should show you what delivery is being made for those addresses,
what do they show? Are they delivering or are they failing to deliver
and sitting in the queue?

Generally speaking, they will deliver to ./Maildir in ~alias - when
you made the Maildir, did you make sure that it and the subdirs are all
owned by alias?


Regards.



How to set /var/qmail/alias/.qmail-xxxx ./Maildir/ up.

2000-04-18 Thread Anthony White

Hi there,

I have a successfully running qmail setup.  However I initially
used mbox (/Mailbox) configuration.  Since it is not
necessary for our users to use MUA's on the server
itself (All access is via POP) I decided to use './Maildir/'
and changed everything accordingly.

During my initial tests I had no forwarding set up for
'~/alias/.qmail-postmaster' or '~alias/.qmail-root'.

Any mail to these accounts placed the mail in 'mbox' format
under the '~/alias' directory.  However after changing to
'./Maildir/' these E-Mail messages were no longer stored here.

Where do I set up the '/Maildir/' directory for these addresses?

I tried setting up a /Maildir under '~/alias' but mail to the above
accounts did not show up.  What should the own/grp permissions be
for the '/Maildir'.

It is not fatal at the moment as I have set up the .qmail files
to forward mail to a user on the system but I would like the
'/Maildir' to exist for capturing any mail that I may 'forget'
to set up forwarding for.

Anthony

--

Movielink Pty LtdE-Mail technical: [EMAIL PROTECTED]
8-10 River StreetE-Mail Sales: [EMAIL PROTECTED]
Richmond, Victoria 3121  Ph  : +(61) 3 9428 8088
AustraliaFAX : +(61) 3 9429 5918






Compiling

2000-04-18 Thread Mike Alexander Sauvain




what it means when i compile qmail with make setup 
check:
 
./load auto-uid substdio.a error.a str.a fs.a 
./compile auto-gid.cauto-gid.c: In function `main':auto-gid.c:20: 
warning: return type of `main' is not `int'./load 
auto-gid substdio.a error.a str.a fs.a 
 ... in the complete proccess...
 qmail-start.c: 
In function `main':qmail-start.c:31: warning: return type of `main' is not 
`int'
 
..*it's really an error main is not int and 
what ?
 
Thanks. 
mike


Compiling

2000-04-18 Thread Mike Alexander Sauvain



what it means when i compile qmail with make setup 
check:
 
./load auto-uid substdio.a error.a str.a fs.a 
./compile auto-gid.cauto-gid.c: In function `main':auto-gid.c:20: 
warning: return type of `main' is not `int'./load 
auto-gid substdio.a error.a str.a fs.a 
 
...
 
 
qmail-start.c: In function 
`main':qmail-start.c:31: warning: return type of `main' is not 
`int'
 
..*
 
Thanks.


Re: using perl to send a list message (with qmail)

2000-04-18 Thread David L. Nicol



Not tested.  May provoke unpleasent censure.  Use at own risk.



> > > open (LIST,"/home/justin/www/cgi-bin/lovely_people.list");
> > > foreach () {
> > >   #send mail to "$_"
> > >  }

> > 2)this list has about 1000 people, and it takes more than a couple minutes
> > for  perl to go through that all,making my program look like its hanging

There's always

fork and goto GLADTHATSOVER
close STDOUT;
open (LIST,"/home/justin/www/cgi-bin/lovely_people.list");
foreach () {
  #send mail to "$_"
}
exit;

GLADTHATSOVER:

And since you've now got all the time you need to process the list,
you can even save bandwidth by arranging them by destination host
and invoking qmail-remote directly:

%Recipients=();
while(){
my($name,$host) = m/^\s*([^@]+)\@([^@]+)\s*\Z/ or next;
$Recipients{$host} = [ $name.'@'.$host, @{$Recipients{$host}}];
};
for(keys %Recipents){
  $/ = "\0";#match qmail-remote's idea of how to end a report item
  open QR,"/var/qmail/bin/qmail-remote $_ justin\@summerspam.com
@{$Recipients{$_}}){
$This = shift @{$Recipients{$_}};
next if $This =~ m/^K/; # delivery successful
# otherwise, queue it up for later
system"/var/qmail/bin/qmail-inject -r -fjustin\@summerspam.com
$This


qmail + vpopmail problems...

2000-04-18 Thread Mario Rafael

Hi I have just installed qmail + vpopmail, I have also configured the
roaming users capability (at least tryed to ;), the virtual pop mail works,
I created a virtual domain, I can send email to it and receive via the
pop-server, one of the problems I have is that I cannot access mail for
users in the /etc/passwd file, I would like to have to type of users
virtual pop users and users in the /etc/passwd file.

Another thing that dosent seem to work is the roaming-users thing, when I
correctly authentificate with the pop server  I cannot send mail through my
SMTP server, is there a way to check the cdb database?.

Any help would be appreciated. :)

Mario
e-Mail : [EMAIL PROTECTED]



Re: WebMail

2000-04-18 Thread Mordac

sqwebmail is good stuff. www.inter7.com/sqwebmail

- Original Message -
From: "Travis Leuthauser" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 18, 2000 2:18 PM
Subject: WebMail


> I'm looking for some real life experiences/opinions on a web interface
that
> reads mail directly from Maildir.  I'm interested in offering a web
> interface for my customers.  I'm running qmail 1.03 with the pop3d daemon.
> Any opinions would be greatly appreciated.
>
> Sincerely,
>
> Travis Leuthauser
> Network Administrator
> DDS Group
> Ph: (225) 667-4992
> Fax: (225) 667-4312
>




Qmail config: getting closer additional info

2000-04-18 Thread Tim_Clifton




When testing reciving mail as documented in TEST.receive, I follow the steps as
follows but when I log in to the user's account and type the '$mail' command I
receive "no mail for user" :


. SMTP server test: Forge some mail locally via SMTP. Replace ``me''   with your
username and ``domain'' with your host's name.
% telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
220 domain ESMTP
helo dude
250 domain
mail 
250 ok
rcpt 
250 ok
data
354 go ahead
Subject: testing
This is a test.
.
250 ok 812345679 qp 12345
quit
221 domain
Connection closed by foreign host.
%

My original message follows:
In testing my senmail config, I follow the steps documented in TEST.deliver with
the following results:

1.   When I send to a local user from the root account via the  "echo to: me |
/var/qmail/bin/qmail-inject" command,
I see the success message in the /var/loq/qmail dir log file. But, when I log
into the machine as that user and type the mail command, the response is " no
mail for user".

2.   When I send to my hotmail account via "echo to: [EMAIL PROTECTED] |
/var/qmail/bin/qmail-inject", account I see an empty message in my hotmail
account. But when I send to my account at my employer (at work) from my new
qmail box at home (on separate domain)via the " echo to: [EMAIL PROTECTED]
| /var/qmail/bin/qmail-inject" command, I don't receive the test message from my
lotus notes client (at work).

 This is probably the answer to #2 but I'm not sure:  I can traceroute from
the qmail box to 'hotmail.com' but the traceroute to 'candle.com' fails to
finish. All I see is a repeated "***".

Prior to running the test, I converted to Maildir from mailbox and
changed the rc file to reflect this as well as run:
%maildirmake $HOME/Maildir  AND
%maildirmake $HOME/Maildir in existing user's directory


To the Point, aside from the traceroute issue why can i not see the message in
my user's system acount when I type the '%mail' command?  Am I overlooking
something?  My ultimate goal is to:

ALLOW POP MAIL CLIENTS (WIN98) TO SEND /RECEIVE MAIL USING THE QMAIL SERVER

I'm getting closer and would appreaciate any help that anyone can give.

--Tim





WebMail

2000-04-18 Thread Travis Leuthauser

I'm looking for some real life experiences/opinions on a web interface that
reads mail directly from Maildir.  I'm interested in offering a web
interface for my customers.  I'm running qmail 1.03 with the pop3d daemon.
Any opinions would be greatly appreciated.

Sincerely,

Travis Leuthauser
Network Administrator
DDS Group
Ph: (225) 667-4992
Fax: (225) 667-4312




Re: mail-abuse.org

2000-04-18 Thread David L. Nicol

Peter van Dijk wrote:
> On Mon, Apr 17, 2000 at 07:08:39PM -0400, Len Budney wrote:
> > "Luis Bezerra" <[EMAIL PROTECTED]> wrote:
> > > [edited out]
> > Or are you an autoresponder? If so, are you available under the GPL?
> > Maybe I can run you from procmail, to annoy people who annoy me.
> 
> If not GPL, then we'll just reverse-engineer him and open the source up
> anyway :)

ROTFL



Unable to receive outside email

2000-04-18 Thread Ben Anderson

I am unable to receive mail from outside of the local machine.  Internal
works fine, any suggestions.
Log shows: 
@400038fcda11227c25dc delivery 1182: deferral:
Unable_to_chdir_to_maildir._(
#4.2.1)/
@400038fcda11227c54bc status: local 0/10 remote 0/20
@400038fcda2e21ebd0a4 starting delivery 1183: msg 226713 to local
user@
host.net

Thanks,
Ben Anderson





Configuring qmail: getting closer to a functional box and need a little help

2000-04-18 Thread Tim_Clifton





In testing my senmail config, I follow the steps documented in TEST.deliver with
the following results:

1.   When I send to a local user from the root account via the  "echo to: me |
/var/qmail/bin/qmail-inject" command,
I see the success message in the /var/loq/qmail dir log file. But, when I log
into the machine as that user and type the mail command, the response is " no
mail for user".

2.   When I send to my hotmail account via "echo to: [EMAIL PROTECTED] |
/var/qmail/bin/qmail-inject", account I see an empty message in my hotmail
account. But when I send to my account at my employer (at work) from my new
qmail box at home (on separate domain)via the " echo to: [EMAIL PROTECTED]
| /var/qmail/bin/qmail-inject" command, I don't receive the test message from my
lotus notes client (at work).

 This is probably the answer to #2 but I'm not sure:  I can traceroute from
the qmail box to 'hotmail.com' but the traceroute to 'candle.com' fails to
finish. All I see is a repeated "***".

Prior to running the test, I converted to Maildir from mailbox and
changed the rc file to reflect this as well as run:
%maildirmake $HOME/Maildir  AND
%maildirmake $HOME/Maildir in existing user's directory


To the Point, aside from the traceroute issue why can i not see the message in
my user's system acount when I type the '%mail' command?  Am I overlooking
something?  My ultimate goal is to:

ALLOW POP MAIL CLIENTS (WIN98) TO SEND /RECEIVE MAIL USING THE QMAIL SERVER

I'm getting closer and would appreaciate any help that anyone can give.

--Tim





qmailanalog bin scripts usage

2000-04-18 Thread Abel Lucano


After processing mail log files with matchup, i'm trying to see more
detailed pictures of the logs with /usr/local/qmailanalog/bin z*
and x* scripts

if my log after processing with matchup is 15apr.log, the following would
work? (i try to keep results in "mysend" file):

< 15apr.log /usr/local/qmailanalog/bin/zsenders > mysend


The only output i could obtain was with zoverall script: a general report,

< 1-15abr00.log /usr/local/qmailanalog/bin/zoverall >general 


But i would need senders, recipients, etc
Please anyone could post usage of zscripts and xscripts? (or mail me
directly if it's not of general interest)
Thanks in advance

regards,


Abel Lucano  DeCode SA
e-mail: [EMAIL PROTECTED]  Av Independencia 1355 1A
[EMAIL PROTECTED]   Buenos Aires-Argentina
 TE/FAX: +5411 43831161





Re: Check timestamps

2000-04-18 Thread Jose de Leon

What exactly do you mean by "not really reliable"?  Do you mean sometimes
the cur dir timestamps and sometimes it doesn't?  Or do you mean that the
timestamp itself may be off a few minutes?  If it is off a few minutes, I
can work with that.

If it sometimes doesn't timestamp, what situations would cause it not to
timestamp, or is it a bug?

Thanks,

Jose de Leon
System Administrator
InVision Telecommunications
(209) 549-8800

- Original Message -
From: Russell Nelson <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 18, 2000 1:05 PM
Subject: Re: Check timestamps


Jose de Leon writes:
 > Is there a way to check when a qmail-qpop user (Maildir format) last
checked
 > their email?  Is there a timestamp left anywhere?

Sort-of, but not really.  You could check the read timestamp on
.../cur, but that's not really reliable.  Look at what qmail-popbull
does, which is to touch a timestamp file.

--
-russ nelson <[EMAIL PROTECTED]>  http://russnelson.com
Crynwr sells support for free software  | PGPok | "Ask not what your country
521 Pleasant Valley Rd. | +1 315 268 1925 voice | can force other people to
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | do for you..."  -Perry M.





Re: Check timestamps

2000-04-18 Thread Russell Nelson

Jose de Leon writes:
 > Is there a way to check when a qmail-qpop user (Maildir format) last checked
 > their email?  Is there a timestamp left anywhere?

Sort-of, but not really.  You could check the read timestamp on
.../cur, but that's not really reliable.  Look at what qmail-popbull
does, which is to touch a timestamp file.

-- 
-russ nelson <[EMAIL PROTECTED]>  http://russnelson.com
Crynwr sells support for free software  | PGPok | "Ask not what your country
521 Pleasant Valley Rd. | +1 315 268 1925 voice | can force other people to
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | do for you..."  -Perry M.



Re: Re: Message Error

2000-04-18 Thread Steve Wolfe

> I know that each user will need theses directory in your home. But the
problem is: How I can do it? Because I have more 100 users in system. There
is some utility or some command that do it just once?


  I was hoping that someone else had a utility to do it. : )

  For new users, I have the .qmail and Maildir directory structure in the
.skel directory, so they get it by default.  For existing users, I use a
perl script called "qmailsetup".  It's not exactly world-class programming,
and could use some error checking.  I'll provide the contents here with a
warning that although it works fine for me, it's not exactly the best piece
of work out there, just a quickly-hacked-together program, as are most
things in this shop because of time constraints.

---
#!/usr/bin/perl
$username=($ARGV[0]);
$file="~$username/.qmail";
system("echo ./Maildir/>$file");
system("/usr/bin/qmail/maildirmake ~$username/Maildir");
system("chown $username.popusers ~$username/.qmail");
system("chown -R $username.popusers ~$username/Maildir");
exit(0);
-

  And before everyone flames me for abominable coding, I didn't write it,
and I have no less than 107 higher-priority projects at the moment. : )

steve





Check timestamps

2000-04-18 Thread Jose de Leon

Is there a way to check when a qmail-qpop user (Maildir format) last checked
their email?  Is there a timestamp left anywhere?

Thanks,

Jose de Leon
System Administrator
InVision Telecommunications
(209) 549-8800





Re: Re: Message Error

2000-04-18 Thread Marcos dos santos Costa

Dear Kai,

I know that each user will need theses directory in your home. But the problem is: How 
I can do it? Because I have more 100 users in system. There is some utility or some 
command that do it just once?

Hugs,

Frederiko Costa
Rio de Janeiro-Brazil

On Tue, 18 Apr 2000 12:33:01 -0700, Kai MacTane <[EMAIL PROTECTED]> wrote:
> At 4/18/2000 11:45 AM -0600, Steve Wolfe wrote or quoted:
> 
> >better answer:   Each user will need in their home directory:
> >
> >~/Maildir/
> >~/Maildir/new
> >~/Maildir/cur
> >~/Maildir/tmp
> >
> >   all with permissions 600.  They should also have a .qmail file containing
> >"./Maildir/".
> 
> The permissions should be 700, not 600. The user should be able to execute 
> (i.e., cd to) each directory.
> 
> -
>   Kai MacTane
>   System Administrator
>Online Partners.com, Inc.
> -
>  From the Jargon File: (v4.0.0, 25 Jul 1996)
> 
> finger trouble /n./
> 
> Mistyping, typos, or generalized keyboard incompetence (this is
> surprisingly common among hackers, given the amount of time they
> spend at keyboards). "I keep putting colons at the end of statements
> instead of semicolons", "Finger trouble again, eh?".
> 




Re: Compilation

2000-04-18 Thread Stephen F. Bosch

Marcos dos santos Costa wrote:
> 
> Dear Friends (again),
> 
> Well, I compiled again the qmail and when I executed the ./config for check my 
>configuration, it show this:
> 
> Your hostname is pegasus.
> Your host's fully qualified name in DNS is ol33-106.openlink.com.br.
> Putting ol33-106.openlink.com.br into control/me...
> Putting openlink.com.br into control/defaultdomain...
> Putting com.br into control/plusdomain...
> 
> Checking local IP addresses:
> 127.0.0.1: Adding localhost to control/locals...
> 192.168.1.1: PTR lookup failed. I assume this address has no DNS name.
> 192.168.3.1: PTR lookup failed. I assume this address has no DNS name.
> 200.188.33.106: Adding ol33-106.openlink.com.br to control/locals...
> 
> If there are any other domain names that point to you,
> you will have to add them to /var/qmail/control/locals.
> You don't have to worry about aliases, i.e., domains with CNAME records.
> 
> Copying /var/qmail/control/locals to /var/qmail/control/rcpthosts...
> Now qmail will refuse to accept SMTP messages except to those hosts.
> Make sure to change rcpthosts if you add hosts to locals or virtualdomains!
> 
> Now, I Ask. There are some errors on this compilation, or not?

This looks in order to me...

-Stephen-



Compilation

2000-04-18 Thread Marcos dos santos Costa

Dear Friends (again),

Well, I compiled again the qmail and when I executed the ./config for check my 
configuration, it show this:

Your hostname is pegasus.
Your host's fully qualified name in DNS is ol33-106.openlink.com.br.
Putting ol33-106.openlink.com.br into control/me...
Putting openlink.com.br into control/defaultdomain...
Putting com.br into control/plusdomain...

Checking local IP addresses:
127.0.0.1: Adding localhost to control/locals...
192.168.1.1: PTR lookup failed. I assume this address has no DNS name.
192.168.3.1: PTR lookup failed. I assume this address has no DNS name.
200.188.33.106: Adding ol33-106.openlink.com.br to control/locals...

If there are any other domain names that point to you,
you will have to add them to /var/qmail/control/locals.
You don't have to worry about aliases, i.e., domains with CNAME records.

Copying /var/qmail/control/locals to /var/qmail/control/rcpthosts...
Now qmail will refuse to accept SMTP messages except to those hosts.
Make sure to change rcpthosts if you add hosts to locals or virtualdomains!


Now, I Ask. There are some errors on this compilation, or not?

Frederiko Costa
Rio de Janeiro - Brazil



Re: Message Error

2000-04-18 Thread Kai MacTane

At 4/18/2000 11:45 AM -0600, Steve Wolfe wrote or quoted:

>better answer:   Each user will need in their home directory:
>
>~/Maildir/
>~/Maildir/new
>~/Maildir/cur
>~/Maildir/tmp
>
>   all with permissions 600.  They should also have a .qmail file containing
>"./Maildir/".

The permissions should be 700, not 600. The user should be able to execute 
(i.e., cd to) each directory.

-
  Kai MacTane
  System Administrator
   Online Partners.com, Inc.
-
 From the Jargon File: (v4.0.0, 25 Jul 1996)

finger trouble /n./

Mistyping, typos, or generalized keyboard incompetence (this is
surprisingly common among hackers, given the amount of time they
spend at keyboards). "I keep putting colons at the end of statements
instead of semicolons", "Finger trouble again, eh?".




RE: problem with alias file pointing to a pipe

2000-04-18 Thread Erick Hallick


You guys nailed it.

I added "exit 0" to the end of my csh script and it's working like a champ now.

Thanks!

Erick

> I have just finished installing qmail onto a machine running AIX 4.3.
>  Everything seems to be working well, except for some aliases I have set
> up.  I need emails to particular addresses to be piped into a script
which
> generates a page.  So, I have the following file setup:
>
> /var/qmail/alias/.qmail-page-ehallick
>
> which contains:
>
> |/home/page/ehallick/page.sh
>
> When I send an email to page-ehallick@domain, it sends the message to the
> script and generates the page, but it doesn't seem to remove the file
from
> the queue directories and keeps on delivering the file over and over.




Re: problem with alias file pointing to a pipe

2000-04-18 Thread Steve Wolfe

>   Is your script returning a "success" error code (0)?

 That should, of course, be "result code".  That's what I get for answering
when I haven't slept much. : )

steve




Re: problem with alias file pointing to a pipe

2000-04-18 Thread Steve Wolfe

> I have just finished installing qmail onto a machine running AIX 4.3.
>  Everything seems to be working well, except for some aliases I have set
> up.  I need emails to particular addresses to be piped into a script
which
> generates a page.  So, I have the following file setup:
>
> /var/qmail/alias/.qmail-page-ehallick
>
> which contains:
>
> |/home/page/ehallick/page.sh
>
> When I send an email to page-ehallick@domain, it sends the message to the
> script and generates the page, but it doesn't seem to remove the file
from
> the queue directories and keeps on delivering the file over and over.

  Is your script returning a "success" error code (0)?  If not, then (if I
recall), qmail will have no option but to assume that it was *not*
delivered succesfully, so it will keep trying until it times out.

steve




problem with alias file pointing to a pipe

2000-04-18 Thread Erick Hallick

I have just finished installing qmail onto a machine running AIX 4.3. 
 Everything seems to be working well, except for some aliases I have set 
up.  I need emails to particular addresses to be piped into a script which 
generates a page.  So, I have the following file setup:

/var/qmail/alias/.qmail-page-ehallick

which contains:

|/home/page/ehallick/page.sh

When I send an email to page-ehallick@domain, it sends the message to the 
script and generates the page, but it doesn't seem to remove the file from 
the queue directories and keeps on delivering the file over and over.  So, 
I'll end up getting the same page about every minute or so until I manually 
delete the files from queue directories.  Does anyone know what I'm doing 
wrong?  What do I need to do to have qmail deliver the message to the 
script once and then stop?

Any help would be greatly appreciated!

Erick Hallick
Director, Information Systems and Services
CPM Corporation - http://www.cpm.com
Email: [EMAIL PROTECTED]
Phone: (608) 236-0475 x30
FAX: (608) 236-0485




Re: Qmail on FreeBSD 4.0

2000-04-18 Thread Sascha Schumann

On Tue, Apr 18, 2000 at 02:01:09PM +0200, Andre Oppermann wrote:
> Peter van Dijk wrote:
> > 
> > On Mon, Apr 17, 2000 at 10:31:51PM +0300, Gabriel Ambuehl wrote:
> > > Hello Peter,
> > > >> code and not part of the stable branch, I'd avoid using it for any production
> > > >> servers till it's migrated to the stable tree.
> > > > 4.0 went STABLE a couple of weeks ago.
> > >
> > > So should I go for 4.0 stable directly instead of 4.0 Release?
> > 
> > You can't. There is no 4.0-STABLE release. That's wat 4.0-RELEASE is called
> > RELEASE for.
> > 
> > Get 4.0-RELEASE mfsroot and kern disks, FTP-install 4.0-RELEASE, and then
> > cvsup to 4.0-STABLE and make world and install a new kernel.
> 
> There is a partial fix in FreeBSD-4.0-RELEASE.
> 
> For more information see PR kern/17311:
> 
>  http://www.freebsd.org/cgi/query-pr.cgi?pr=17311
> 
> CVS Log for src/sys/net/if.c:
>  1.85 Mon Feb 28 19:30:25 2000 UTC by guido 
>  CVS Tags: RELENG_4_0_0_RELEASE, RELENG_4_BP, HEAD, RELENG_4
>  Diffs to 1.84 
>  
>  This fixes a problem where the SIOCGIFCONF ioctl goes wrong.  This
>  is triggered when qmail is used with INET6 enabled.  The bug

This has also happened to me before INET6 was committed to
-current IIRC. Thus this commit message is at least bogus..

>  manifests itself in that the space variable can become negative
>  and that in the comparison in the guards of the 2 loops, this was
>  not noticed because sizeof() returns an unsigned and thus the signed
>  variable gets promoted to unsigned. I decided not to make space
>  unsigned because I think we should guard against this from happening.
>  Thus panic() in case space becomes negative.
> 
> -- 
> Andre

- Sascha



Re: Message Error

2000-04-18 Thread Steve Wolfe

>   I installed the qmail in my server which run Linux. I configured
all things normally.
>   However, when I try to send a message the program (in this case,
Eudora) give the
>   follow message: Can't send to ''.  The server gives this reason:
'553 sorry, that
>   domain isn't in my list of allowed rcpthosts (#5.7.1)'. What is it?
What I have to
>   do?

First, read http://www.palomine.net/qmail/relaying.html . then, read
http://www.palomine.net/qmail/selectiverelay.html .  The how's and why's
are all in there.


>   When I check for messages, it show that I don´t have maildir. I
don´t know how I
>   do for to convert to Maildir, all my users. There is some utility?


  Fast answer:  man maildir

better answer:   Each user will need in their home directory:

~/Maildir/
~/Maildir/new
~/Maildir/cur
~/Maildir/tmp

  all with permissions 600.  They should also have a .qmail file containing
"./Maildir/".

steve




RE: Message Error

2000-04-18 Thread Soffen, Matthew

1)  You didn't setup your control files properly (/var/qmail/control/*)

Read the INSTALL.ctl file (its in your build directory).  Did you run the
config script ?

2) Yes.  Read the INSTALL.maildir file (its in your build directory).  It
explains maildir vs. mbox.

Also you probably should read the "Living with Qmail" (
http://Web.InfoAve.Net/~dsill/lwq.html ) by David Sill.


Matt Soffen 
Web Intranet Developer
http://www.iso-ne.com/
==
Boss- "My boss says we need some eunuch programmers."
Dilbert - "I think he means UNIX and I already know UNIX."
Boss- "Well, if the company nurse comes by, tell her I said 
 never mind."
   - Dilbert -
==

> -Original Message-
> From: Marcos dos santos Costa [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, April 18, 2000 1:22 PM
> To:   [EMAIL PROTECTED]
> Subject:  Message Error
> 
> Dear Friends,
> 
>   I installed the qmail in my server which run Linux. I configured all
> things normally.
>   However, when I try to send a message the program (in this case,
> Eudora) give the
>   follow message: Can't send to ''.  The server gives this reason:
> '553 sorry, that
>   domain isn't in my list of allowed rcpthosts (#5.7.1)'. What is it?
> What I have to
>   do?
> 
>   And other :
> 
>   When I check for messages, it show that I don?t have maildir. I
> don?t know how I
>   do for to convert to Maildir, all my users. There is some utility?
> 
>   PS: Before I was use sendmail.
> 
>   Somebody help me?
> 
> 
>   Regards,
> 
>   Frederiko Costa
>   Rio de Janeiro - Brazil



Message Error

2000-04-18 Thread Marcos dos santos Costa

Dear Friends,

  I installed the qmail in my server which run Linux. I configured all things 
normally.
  However, when I try to send a message the program (in this case, Eudora) give the
  follow message: Can't send to ''.  The server gives this reason: '553 sorry, that
  domain isn't in my list of allowed rcpthosts (#5.7.1)'. What is it? What I have 
to
  do?

  And other :

  When I check for messages, it show that I don´t have maildir. I don´t know how I
  do for to convert to Maildir, all my users. There is some utility?

  PS: Before I was use sendmail.

  Somebody help me?


  Regards,

  Frederiko Costa
  Rio de Janeiro - Brazil



Re: backup mail server

2000-04-18 Thread Jonathan McDowell


On Tue, Apr 18, 2000 at 08:55:46AM -0600, Andy Bradford wrote:
> Thus said Gabriel Ambuehl on Tue, 18 Apr 2000 14:58:00 +0300:
> 
> > Do you mean this seriously? I can't see a problem with a secondary
> > which is using exactly the same config (we normally clone our
> > systems as the first one except for the lack of the entries in local
> > or virtual... As long as your primary doesn't go any longer than
> > just a few minutes, you surely don't need a secondary, but if the
> > hardware fails, it's possible that it will be down such long
> > (depends highly on the admins, available spare system etc.) that
> > some mails bounce...
> Yes seriously.  Most MTA's will queue email for at least 3 days, so
> unless your hardware failure lasts that long then you should be fine.

Secondary MX can come in handy when you lose routing to parts of the
world, but your secondary MX doesn't and can still talk to you. At one
point last year JaNET in the UK lost transatlantic bandwidth (we love
you Teleglobe, no really) but my main email address at the time
continued to receive mail as the secondary MX was outside JaNET but
within the UK.

On the other hand I'd be incredibly careful about who I trusted enough
to secondary MX a domain for me.

J.

-- 
] http://www.earth.li/~noodles/ [] "It only counts as a lie-in if you  [
] PGP/GPG Key @ keys.pgp.net or [] don't get dressed before tea time." [
] finger [EMAIL PROTECTED] []  -- Steve Willison  [
] PGP: 4DC4E7FD / GPG: 5B430367 [] [



Re: backup mail server

2000-04-18 Thread Ian Lance Taylor

   From: Russell Nelson <[EMAIL PROTECTED]>
   Date: Tue, 18 Apr 2000 08:44:39 -0400 (EDT)

> I have two mail servers - on is located in a different country - My
> question is how do I become a backup for that other server in the event
> that it goes down or looses connectivity??
> 
> I have added entries into DNS so as the two severs are secondary MX's
> for each other..  BUT what needs to be done on the qmail side so that it
> will accept these messages and queue them until they can be dilivered??

   This is a bad idea.  Why?  Because you're setting yourself up for the
   situation a friend was just in.  His main server went down, and the
   secondary kicked in.  Unfortunately, the secondary server had become
   misconfigured (or was never configured correctly in the first place)
   and his email started bouncing.

I dunno, I had a case where we were saved by a secondary MX.  The main
mail server crashed just before a long weekend and wound up being out
for a week.  Being able to push up the queuelifetime on the secondary
MX almost certainly saved mail from bouncing.

Naturally we tested the secondary MX failover when we installed it,
and we would test it again if we ever changed the configuration.

Admittedly this wouldn't happen at a working company where the mail
server would be rapidly replaced.  But there are lots of other sorts
of people on the net.

Ian



RE: Messages stuck in queue

2000-04-18 Thread John McCoy, Jr

I got queue-fix but it wont compile I get this at the very end of the
compile:

ld32: Segmentation fault.  Removing output file...
 *** Error code 1 (bu21)
System: SGI Indy r5000 IRIX 6.5.3m let me know if you need more
I'm not sure of the version of gcc installed.

Sorry I'm still a newbie but I'm confused by this error, I'm guessing it was
unable to do a link. I compiled on a SUN box without a problem.

Thanks
*
John McCoy, Jr
Systems Administrator
Central Systems, Mills College
510-430-3321
[EMAIL PROTECTED]
*

-Original Message-
From: Steve Wolfe [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 14, 2000 8:54 AM
To: [EMAIL PROTECTED]
Subject: Re: Messages stuck in queue


> I've got a bunch of messages that the systems seems unable to process,
can
> they be removed without the seemingly painful process of removing the
queue?

> Here is the log:
> Apr 14 15:45:47 4C:ella qmail: 955727147.699527 warning: unable to stat
> mess/11/52359
> Apr 14 15:45:47 4C:ella qmail: 955727147.722880 warning: unable to stat
> mess/11/53440

  It looks like someone renamed or moved the queue.  Download queue-fix
from www.qmail.org, run it, and you should see those messages get delivered
succesfully.

steve




RE: backup mail server

2000-04-18 Thread Greg Owen

> I have two mail servers - on is located in a different country - My
> question is how do I become a backup for that other server in 
> the event that it goes down or looses connectivity??

Firstly, consider why you are setting up a secondary.  Does it offer
any advantages over letting the senders keep mail in their queue?  Does it
allow mail system maintenance to go without disrupting mail flow?  In some
cases a secondary offers no tangible benefit, and causes maintenance
headaches, which WILL cause mail to bounce if you don't stay on top of it.

To do it, however,

Add that servers domain to /var/qmail/control/rcpthosts, but make
sure that it is not in locals or anything like that.  Send mail* to that
domain via your mail server to make sure you're configured correctly.  Set
up the MX records for the domain so that your server is a listed MX server,
albeit with a lower priority (lower priority == higher number).

An option is to use smtproutes to hardwire the forwarding, instead
of trusting DNS records to be correct.  The plus is that someone can mess up
DNS and  your secondary will still forward; the minus is that if you want to
change your primary mail server you have to remember to do so in two places,
which can create maintenance problems.


* An easy way to test is to telnet to port 25 of the secondary from
a remote location and send mail by hand.  That means using SMTP commands
HELO, MAIL FROM, RCPT TO, and DATA.  The archives of this list are full of
examples.


-- 
gowen -- Greg Owen -- [EMAIL PROTECTED]



more logs please

2000-04-18 Thread octave klaba

Hi,
How to have more logs.
all I have is /var/log/qmail is

-r--r--r--   1 qmaill   nofiles100036 Apr 18 16:54 @0956069523
-r--r--r--   1 qmaill   nofiles100091 Apr 18 17:00 @0956069645
-r--r--r--   1 qmaill   nofiles11 Apr 18 17:13 @0956070013
-r--r--r--   1 qmaill   nofiles100021 Apr 18 17:17 @0956070833
-r--r--r--   1 qmaill   nofiles100052 Apr 18 17:20 @0956071069
-r--r--r--   1 qmaill   nofiles17 Apr 18 17:30 @0956071202
-r--r--r--   1 qmaill   nofiles17 Apr 18 17:39 @0956071856
-r--r--r--   1 qmaill   nofiles100056 Apr 18 17:48 @0956072354
-r--r--r--   1 qmaill   nofiles100046 Apr 18 18:04 @0956072904
-rw-r--r--   1 qmaill   nofiles 55988 Apr 18 18:11 @0956073846

it changes all time and I can not see exaclty who is using what :(

thanks for your help
Octave

Amicalement,
Octave 
> no swap allowed <



Re: Compile Error

2000-04-18 Thread John P. Looney

On Tue, Apr 18, 2000 at 12:00:23PM -0400, Greg Owen mentioned:
>   There's a Solaris FAQ somewhere that gives the rundown on all the
> stupid things Sun did on Solaris from a development point of view - the
> compiler, the tools, the libs.  The original poster, if interested in
> compiling anything under Solaris, should track that down (anyone remember
> which FAQ that is?) and read it carefully.
> 

 Nicely enough, solaris 8 ships with a CD full of GNU stuff, so you can
nearly forgive them for putting admins through years of pain ;)

Kate

-- 
"The fool must be beaten with a stick, for an intelligent person 
the merest hint is sufficient"-- Zen Master Greg

 PGP signature


Re: Compile Error

2000-04-18 Thread Steve Kennedy

On Tue, Apr 18, 2000 at 11:29:44AM -0400, Greg Owen wrote:

> > to compile qmail. I received the error '/usr/ucb/cc: language optional
> > software package not installed' '*** Error code 1' 'make: Fatal error:
> > Command failed for target 'qmail-local.o' '. What does this 
> > mean and how can I get around this?
>   It means that Solaris ships without a C compiler, so you can't
> compile anything.
>   To fix it, either purchase Sun's compiler, or download a precompiled
> version of GCC for Solaris.

Or download (or get Sun to send you) a try and buy CD, then you can get
a 30 day eval key (which actually gives you a fully multi-user set
of Sun tools i.e. C/C++/Fortan/Debuggers/Visual tools etc).

Then extend that ...

Steve

-- 
NetTek Ltd  tel +44-(0)20 7483 1169  fax +44-(0)20 7483 2455
Flat 2,43 Howitt Road,   Belsize Park,London NW3 4LU
mobile 07775 755503  Epage [EMAIL PROTECTED] [body only]



RE: Compile Error

2000-04-18 Thread Greg Owen

Matt Soffen wrote: 
> Greg Owen wrote:
> > It means that Solaris ships without a C compiler, so you can't
> > compile anything.
> > 
> > To fix it, either purchase Sun's compiler, or download 
> > a precompiled version of GCC for Solaris.
>
> Nope.. Even that won't be a 100 % (so I found).
> 
> You may need to modify :
>   conf-cc and conf-ld to point to gcc instead of cc

Correct.  You also need to avoid /usr/ucblib like the plague, and
other niceties.

There's a Solaris FAQ somewhere that gives the rundown on all the
stupid things Sun did on Solaris from a development point of view - the
compiler, the tools, the libs.  The original poster, if interested in
compiling anything under Solaris, should track that down (anyone remember
which FAQ that is?) and read it carefully.

I apologize; I was being unduly terse in my first message ;>.

-- 
gowen -- Greg Owen -- [EMAIL PROTECTED]



RE: Compile Error

2000-04-18 Thread Soffen, Matthew

Nope.. Even that won't be a 100 % (so I found).

You may need to modify :
conf-cc and conf-ld to point to gcc instead of cc

Matt Soffen 
Web Intranet Developer
http://www.iso-ne.com/
==
Boss- "My boss says we need some eunuch programmers."
Dilbert - "I think he means UNIX and I already know UNIX."
Boss- "Well, if the company nurse comes by, tell her I said 
 never mind."
   - Dilbert -
==


> -Original Message-
> From: Greg Owen [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, April 18, 2000 11:30 AM
> To:   qmail
> Subject:  RE: Compile Error
> 
> > to compile qmail. I received the error '/usr/ucb/cc: language optional
> > software package not installed' '*** Error code 1' 'make: Fatal error:
> > Command failed for target 'qmail-local.o' '. What does this 
> > mean and how can I get around this?
> 
>   It means that Solaris ships without a C compiler, so you can't
> compile anything.
> 
>   To fix it, either purchase Sun's compiler, or download a precompiled
> version of GCC for Solaris.
> 
> -- 
>   gowen -- Greg Owen -- [EMAIL PROTECTED]
> 
>  



wierd fastforward behaviour

2000-04-18 Thread Russell P. Sutherland

I'm running fastforward 0.51 on a Linux machine.

Normal (default domain) forwarding works fine.

My problem is that email sent to a virtual user
always ends up going to the default address:

@400038fc7ed7129915e4 info msg 164054: bytes 435 from 
<[EMAIL PROTECTED]> qp 5716 uid 503
@400038fc7ed712dd662c starting delivery 19: msg 164054 to local 
[EMAIL PROTECTED]
@400038fc7ed712dd7d9c status: local 1/10 remote 0/20
@400038fc7ed713f492ec new msg 164060
@400038fc7ed713f611bc info msg 164060: bytes 538 from 
<[EMAIL PROTECTED]> qp 5720 uid 502
@400038fc7ed7143b8ae4 starting delivery 20: msg 164060 to remote 
[EMAIL PROTECTED]
@400038fc7ed7143ba63c status: local 1/10 remote 1/20
@400038fc7ed7143bae0c delivery 19: success:
fastforward:_qp_5720/did_0+0+1/
@400038fc7ed7143bb9c4 status: local 0/10 remote 1/20
@400038fc7ed7143bc194 end msg 164054

Here is the test configuration:

# cat ~alias/.qmail-default
|fastforward -d /etc/aliases.cdb 

# cat /etc/aliases
root: alias
postmaster: alias
mailer-daemon: alias

[EMAIL PROTECTED]: [EMAIL PROTECTED]
@wdtsf.com: [EMAIL PROTECTED]

#  printforward < /etc/aliases.cdb
root@:
, &[EMAIL PROTECTED]
;
postmaster@:
, &[EMAIL PROTECTED]
;
mailer-daemon@:
, &[EMAIL PROTECTED]
;
[EMAIL PROTECTED]:
, &[EMAIL PROTECTED]
;
@wdtsf.com:
, &[EMAIL PROTECTED]
;

# env DEFAULT=russ HOST=wdtsf.com fastforward -nd /etc/aliases.cdb
from 
to <[EMAIL PROTECTED]>

# grep wdtsf.com  /var/qmail/control/*
/var/qmail/control/rcpthosts:wdtsf.com
/var/qmail/control/virtualdomains:wdtsf.com:alias

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.on.ca



RE: backup mail server

2000-04-18 Thread Greg Owen

> This is a bad idea.  Why?  Because you're setting yourself up for the
> situation a friend was just in.  His main server went down, and the
> secondary kicked in.  Unfortunately, the secondary server had become
> misconfigured (or was never configured correctly in the first place)
> and his email started bouncing.

Your friend's problem was not that he had a secondary server.   Your
friend's problem was that he had a misconfigured secondary.

If we discouraged people from running software that they often
misconfigured, this list would be a dead dull desert with wind and dust
devils floating through.

If you're going to run a 

[smtp server / smtp secondary / dns server / dns secondary / web
server / pop server / server / unix machine / windows machine / tonka truck
]

then you've either got to learn to do it right or live with your
mistakes.  Every one on this list who knows how to do the above got there by
doing it, making mistakes, learning from them, and doing it right.  Some
people probably even arranged that their mistakes be in testing setups
rather than live.


Having said that... splitting control of primary/secondary between
two people is a setup that does ask for mistakes to be made.  And handing
off secondary to your ISP is asking to be shot in the head.

-- 
gowen -- Greg Owen -- [EMAIL PROTECTED]




kbiff and maildir

2000-04-18 Thread Mate Wierdl

But kbiff does support maildir.

Mate



kmail and maildir support

2000-04-18 Thread Mate Wierdl

I asked kmail's maintainer if kmail has maildir support, or if they
are planning on supporting maildir in the future.  The brief reply
was:

"no to both questions".

Does anybody know the reason?  We know the reason in case of pine...

Mate



qmail install

2000-04-18 Thread Bill Parker

Hi All,

I have built a pent-200 w/64MB of ram, and it has a pair of NIC's for
so the machine can be used for IP masq if needed, it also has a digiboard
PC/Xem ISA card for dial in support (digiboard support is already working)...


I would like to know if this would be a good machine to practice installing
qmail and assorted goodies, using say Dave Sills 'Life with Qmail' as a guide
and adding additional goodies as I go along...I want to be more comfortable
with doing a(n) install from scratch so I can rely less on others when I
need to figure things out (though a ORA qmail book would be helpful, hint
hint)...

Is there anything I need to watch for in terms of files being dumped into
the wrong spots (I have a working qmail v1.03 install, so using that is
out of the question)...

I would enjoy some comments from regulars on this list...

-Bill




Re: OT: Help with SPAM

2000-04-18 Thread Kai MacTane

At 4/18/2000 09:16 AM -0500, Chris Hardie wrote or quoted:
>On Tue, 18 Apr 2000, Abdul Rehman Gani wrote:
>
> > 3. The spam messages contain only US based toll free numbers 
> (1-888-258-4753
> > and 888-533-1018). I am not in the US so I need some help in tracking the
> > owners of these numbers. Can someone help in that regard?
>
>US 1-800-555-1212?  infospace.com reverse lookup?  Call the numbers and
>tell them you're interested in their product and need a mailing address?

I like that last solution. It has a certain ironic tang to it that tickles 
my fancy.

-
  Kai MacTane
  System Administrator
   Online Partners.com, Inc.
-
 From the Jargon File: (v4.0.0, 25 Jul 1996)

finger trouble /n./

Mistyping, typos, or generalized keyboard incompetence (this is
surprisingly common among hackers, given the amount of time they
spend at keyboards). "I keep putting colons at the end of statements
instead of semicolons", "Finger trouble again, eh?".




RE: Compile Error

2000-04-18 Thread Greg Owen

> to compile qmail. I received the error '/usr/ucb/cc: language optional
> software package not installed' '*** Error code 1' 'make: Fatal error:
> Command failed for target 'qmail-local.o' '. What does this 
> mean and how can I get around this?

It means that Solaris ships without a C compiler, so you can't
compile anything.

To fix it, either purchase Sun's compiler, or download a precompiled
version of GCC for Solaris.

-- 
gowen -- Greg Owen -- [EMAIL PROTECTED]

 



Re: Re[2]: backup mail server

2000-04-18 Thread Andy Bradford

Thus said Gabriel Ambuehl on Tue, 18 Apr 2000 14:58:00 +0300:

> Do you mean this seriously? I can't see a problem with a secondary
> which is using exactly the same config (we normally clone our systems
> as the first one except for the lack of the entries in local or
> virtual... As long as your primary doesn't go any longer than just a
> few minutes, you surely don't need a secondary, but if the hardware
> fails, it's possible that it will be down such long (depends highly on
> the admins, available spare system etc.) that some mails bounce...

Yes seriously.  Most MTA's will queue email for at least 3 days, so 
unless your hardware failure lasts that long then you should be 
fine.

Andy
-- 
+== Andy == TiK: garbaglio ==+
|Linux is about freedom of choice|
+== http://www.xmission.com/~bradipo/ ===+



 PGP signature


Re: supervise question

2000-04-18 Thread Chris Johnson

On Tue, Apr 18, 2000 at 01:25:51AM -0400, lluisma wrote:
> Hi all,
> 
> I have this entry for qmail-pop3d which is under supervise:
> #!/bin/sh
> 
> exec env - PATH="/var/qmail/bin:$PATH" \
> tcpserver 0 110 /var/qmail/bin/qmail-popup host.name.gov \
> /bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir &
^

Take the & out.

> It is working but when I check with svstat the pid always changes every
> second or less.

Chris



Re: OT: Help with SPAM

2000-04-18 Thread Chris Hardie

On Tue, 18 Apr 2000, Abdul Rehman Gani wrote:

> Hi,
> 
> We are in the process of moving to qmail from Mailsite (on NT), but I face a
> problem with SPAM that I do not think will be solved by QMail. The sender of
> the spam is using a fake address on our domain as the from address in the
> spam. Although the spam itself is forwarded through AOL/concentric and
> possibly via other free/cheap access points (our server is not a relay or
> originator), the bounces and complaints do reach us.
> 
> 1. Is there a way to get qmail to reject mail sent to a specified address on
> one of the domains for which it does accept mail - sort of a BADMAILTO
> entry? Ideally the mail should be rejected during the SMTP receipt session.

You can use "bouncesaying" in a dot-qmail file to bounce mail sent to a
specific address with a specific return message.  Note that qmail will
accept the message for delivery before encountering this, so if the
envelope is bad, the message will double-bounce to you.

If you really want to do the bouncing during the SMTP conversation, which
can be a bad idea for several reasons (see earlier threads on this topic),
check out one of the anti-spam patches available from qmail.org or here:
  http://www.summersault.com/chris/techno/qmail/qmail-antispam.html

> 
> 2. A better solution would be to stop mail with fake from addresses from
> exiting a system altogether. Any one know about such a system or how it can
> be implemented - it certainly would seem to be a major task to convince mail
> admins to do so, and they all would have to to be able to prevent this from
> happening.

I'm not sure all mail admins would agree that this is a good
solution.  Some consider it a feature that one can send mail from a
"physical" address on one machine with an envelope pointing to another
account.  This is what makes POP client mailers so flexible (e.g. if I use
earthlink to dial up to the net but want to use my university mail account
to "send and receive" mail.)  But, as you have seen, that feature comes
with some hassles too.

> 
> 3. The spam messages contain only US based toll free numbers (1-888-258-4753
> and 888-533-1018). I am not in the US so I need some help in tracking the
> owners of these numbers. Can someone help in that regard?

US 1-800-555-1212?  infospace.com reverse lookup?  Call the numbers and
tell them you're interested in their product and need a mailing address?

Hope this helps,
Chris


-- Chris Hardie -
- mailto:[EMAIL PROTECTED] --
 http://www.summersault.com/chris/ --





postoffice migration question

2000-04-18 Thread Kelly Prescott

We recently purchased an ISP running postoffice on NT from software.com...
Does any one know an easy way to migrate from it to the qmail Maildir
format?
Also, does any one have any idea of how to get the passwords out of the
program?
Sorry in advance if this is a little off topic, but as this is qmail we
are migrating to, I just thought some one might have had experience doing
it...
Thanks in advance.






Re[2]: backup mail server

2000-04-18 Thread Gabriel Ambuehl

> This is a bad idea.  Why?  Because you're setting yourself up for the
> situation a friend was just in.  His main server went down, and the
> secondary kicked in.  Unfortunately, the secondary server had become
> misconfigured (or was never configured correctly in the first place)
> and his email started bouncing.

Do you mean this seriously? I can't see a problem with a secondary
which is using exactly the same config (we normally clone our systems
as the first one except for the lack of the entries in local or
virtual... As long as your primary doesn't go any longer than just a
few minutes, you surely don't need a secondary, but if the hardware
fails, it's possible that it will be down such long (depends highly on
the admins, available spare system etc.) that some mails bounce...


Best regards,
 Gabriel





Re: backup mail server

2000-04-18 Thread Russell Nelson

TAG writes:
 > I have two mail servers - on is located in a different country - My
 > question is how do I become a backup for that other server in the event
 > that it goes down or looses connectivity??
 > 
 > I have added entries into DNS so as the two severs are secondary MX's
 > for each other..  BUT what needs to be done on the qmail side so that it
 > will accept these messages and queue them until they can be dilivered??

This is a bad idea.  Why?  Because you're setting yourself up for the
situation a friend was just in.  His main server went down, and the
secondary kicked in.  Unfortunately, the secondary server had become
misconfigured (or was never configured correctly in the first place)
and his email started bouncing.

Overall, he would have been better off without a secondary MX server.
His mail still wouldn't have been delivered (a secondary doesn't
deliver the mail, it just re-queues it), but neither would it have
bounced either.

-- 
-russ nelson <[EMAIL PROTECTED]>  http://russnelson.com
Crynwr sells support for free software  | PGPok | "Ask not what your country
521 Pleasant Valley Rd. | +1 315 268 1925 voice | can force other people to
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | do for you..."  -Perry M.



Re: Qmail on FreeBSD 4.0

2000-04-18 Thread S.P. Hoeke

On Tue, Apr 18, 2000 at 01:45:34PM +0200, Andre Oppermann wrote:
> Patrick Bihan-Faou wrote:
> > 
> > Hi,
> > 
> > - Original Message -
> > From: "Mike" <[EMAIL PROTECTED]>
> > > Patrick Bihan-Faou wrote:
> > > > Looking quickly at the NetBSD and the FreeBSD code, I would say that
> > they
> > > > are not affected by that bug. Also solaris 2.5 is clean. I don't know
> > about
> > > > any of the linux...
> > >
> > > Well, now that you mention it, does NetBSD also mean OpenBSD by
> > > extension? I didn't see any references to a patch in their (OpenBSD)
> > > port.
> > 
> > Oops I meant, NetBSD and OpenBSD are not affected. FreeBSD is for all
> > version (including 3.x).
> 
> AFAIK this happens only with IPv6 compiled in the Kernel (which is
> default in FreeBSD 4.0)? Actually, I'm running 3.4-stable and never
> got this problem.

OpenBSD v2.7 has IPv6 support compiled in kernel 
No probs 

Greetz,
 Steffan




Re: Qmail on FreeBSD 4.0

2000-04-18 Thread Andre Oppermann

Peter van Dijk wrote:
> 
> On Mon, Apr 17, 2000 at 10:31:51PM +0300, Gabriel Ambuehl wrote:
> > Hello Peter,
> > >> code and not part of the stable branch, I'd avoid using it for any production
> > >> servers till it's migrated to the stable tree.
> > > 4.0 went STABLE a couple of weeks ago.
> >
> > So should I go for 4.0 stable directly instead of 4.0 Release?
> 
> You can't. There is no 4.0-STABLE release. That's wat 4.0-RELEASE is called
> RELEASE for.
> 
> Get 4.0-RELEASE mfsroot and kern disks, FTP-install 4.0-RELEASE, and then
> cvsup to 4.0-STABLE and make world and install a new kernel.

There is a partial fix in FreeBSD-4.0-RELEASE.

For more information see PR kern/17311:

 http://www.freebsd.org/cgi/query-pr.cgi?pr=17311

CVS Log for src/sys/net/if.c:
 1.85 Mon Feb 28 19:30:25 2000 UTC by guido 
 CVS Tags: RELENG_4_0_0_RELEASE, RELENG_4_BP, HEAD, RELENG_4
 Diffs to 1.84 
 
 This fixes a problem where the SIOCGIFCONF ioctl goes wrong.  This
 is triggered when qmail is used with INET6 enabled.  The bug
 manifests itself in that the space variable can become negative
 and that in the comparison in the guards of the 2 loops, this was
 not noticed because sizeof() returns an unsigned and thus the signed
 variable gets promoted to unsigned. I decided not to make space
 unsigned because I think we should guard against this from happening.
 Thus panic() in case space becomes negative.

-- 
Andre



Re: Qmail on FreeBSD 4.0

2000-04-18 Thread Andre Oppermann

Patrick Bihan-Faou wrote:
> 
> Hi,
> 
> - Original Message -
> From: "Mike" <[EMAIL PROTECTED]>
> > Patrick Bihan-Faou wrote:
> > > Looking quickly at the NetBSD and the FreeBSD code, I would say that
> they
> > > are not affected by that bug. Also solaris 2.5 is clean. I don't know
> about
> > > any of the linux...
> >
> > Well, now that you mention it, does NetBSD also mean OpenBSD by
> > extension? I didn't see any references to a patch in their (OpenBSD)
> > port.
> 
> Oops I meant, NetBSD and OpenBSD are not affected. FreeBSD is for all
> version (including 3.x).

AFAIK this happens only with IPv6 compiled in the Kernel (which is
default in FreeBSD 4.0)? Actually, I'm running 3.4-stable and never
got this problem.

I remember one patch in FreeBSD shortly before 4.0-release which,
according to the cvs log, was supposed to fix this problem. I'll
see if I can dig it up. If this bug is not fixed someone who is
affected should file a PR with FreeBSD gnats.

-- 
Andre



Problem with qmail-popup

2000-04-18 Thread Firstserv Support

I am running qmail under RedHat 5.2.
Everything has been running smoothly until recently when trying to pick up
pop mail resulted in a connection being made but then the connection just
hangs.

Looking at the processes running revealed that there were numerous tcpserver
processes running of the form:-

tcpserver -v -c40 -u0 -g0 0 pop-3 qmail-popup "hostname"
/usr/local/vchkpw-3.1.2/src/vchkpw qmail-pop3d

Rebooting removes these additional instances of tcpserver/pop3d and mail can
be downloaded correctly.
However, after a couple of hours, additional identical processes start to
appear and mail can no longer be downloaded.

Can anyone explain what is causing this?

Many thanks,
Peter







SMTP problems - Pending mail operations must be completed

2000-04-18 Thread David Pratt

I have recently been getting the following entries in my log files when I
try to send mail from a ColdFusion server (using CFMail) via my qmail SMTP
server:-

"Error","TID=224","04/17/00","12:05:59","Failed to send the spooled mail
file, d:\cfusion\MAIL\spool\A8.cfmail. SMTP server replied "See
http://pobox.com/~djb/docs/smtplf.html." Moved file to
d:\cfusion\MAIL\undelivr\AC.cfmail."
"Error","TID=224","04/17/00","13:05:14","Failed to send the spooled mail
file, d:\cfusion\MAIL\spool\B5.cfmail. SMTP server replied "Internal error:
Pending mail operations must be completed." Moved file to
d:\cfusion\MAIL\undelivr\B7.cfmail."
"Error","TID=224","04/17/00","14:13:59","Failed to send the spooled mail
file, d:\cfusion\MAIL\spool\CF.cfmail. SMTP server replied "Internal error:
Pending mail operations must be completed." Moved file to
d:\cfusion\MAIL\undelivr\D1.cfmail."

I have looked at the url specified in the error and it looks like the
problem could be that my ColdFusion server is trying to send an incorrectly
formatted message with a bare LF so qmail is not sending it.

Most of the subsequent errors mention the "Pending mail operations must be
completed" error however. Is this likely to be related to the bare LF
problem?

Best regards,
Peter Marshall








qmail Digest 18 Apr 2000 10:00:01 -0000 Issue 975

2000-04-18 Thread qmail-digest-help


qmail Digest 18 Apr 2000 10:00:01 - Issue 975

Topics (messages 40170 through 40268):

Move qmail and directories to new system - how...?
40170 by: Anthony White
40180 by: Chris Hardie
40185 by: Peter van Dijk

qmail-pop3d
40171 by: John P. Looney
40172 by: James Raftery
40173 by: John P. Looney

log/spam/smpt/pop
40174 by: octave klaba

qmail startup problems help
40175 by: Madhav
40176 by: Patrick Ohiomoba

Qmailqueue patch?!?
40177 by: Jesper Ekberg

help for documentation?
40178 by: cdowns

qmail startup help
40179 by: Madhav
40186 by: Dave Sill

Re: 2 questions?
40181 by: Dave Sill

Re: Qmail does not start at system start up
40182 by: Dave Sill

Re: Problem when starting qmail with the script
40183 by: Dave Sill
40187 by: Patrick Ohiomoba

Re: Start Qmail
40184 by: Dave Sill

newbie question
40188 by: Les Higger
40189 by: Patrick Ohiomoba

Re: Need someone to contract for qmail/ezmlm -> db integration
40190 by: Florian G. Pflug

Qmail on FreeBSD 4.0
40191 by: Gabriel Ambuehl
40192 by: Chris Johnson
40193 by: Soffen, Matthew
40195 by: Patrick Bihan-Faou
40200 by: Ben Beuchler
40201 by: S.P. Hoeke
40202 by: Patrick Bihan-Faou
40204 by: Patrick Bihan-Faou
40210 by: Delanet Administration
40211 by: Mike
40213 by: Vince Vielhaber
40220 by: Patrick Bihan-Faou
40221 by: Peter van Dijk
40224 by: Gabriel Ambuehl
40225 by: Peter van Dijk

Re: qmail, ucsi-tcp & inetd
40194 by: "Próspero, Esteban"

qmail as secondary MX.
40196 by: Mario Rafael
40197 by: Dave Sill
40198 by: Russell Nelson

Newbie.
40199 by: Eduardo Moor
40228 by: Markus Fischer
40230 by: John Gonzalez/netMDC admin

next release
40203 by: S.P. Hoeke
40205 by: Dave Sill

greeting message
40206 by: quanta

smtpgreeting
40207 by: quanta
40215 by: Dave Sill

Maildir format
40208 by: quanta
40212 by: Paul Schinder
40214 by: Steve Wolfe
40216 by: Dave Sill
40217 by: lluisma

vpopmail with ipop3d
40209 by: Mario Rafael

Read and Delivery Receipts
40218 by: Scott Wilson
40219 by: Gabriel Ambuehl
40223 by: Peter van Dijk

mailbox not found
40222 by: Joel Dudley

mail-abuse.org
40226 by: Luis Bezerra
40229 by: Soffen, Matthew
40231 by: Bruce
40232 by: Peter van Dijk
40233 by: Peter van Dijk
40235 by: Bruce
40237 by: Peter van Dijk
40238 by: Luis Bezerra
40239 by: Adam McKenna
40240 by: Peter van Dijk
40241 by: Len Budney
40243 by: Peter van Dijk

Re: SPAMCONTROL not work properly
40227 by: Erwin Hoffmann

pop3 greeting message
40234 by: quanta

Re: softhome.net qmail smtp server error
40236 by: rogers-qmail.h0050da615e79.ne.mediaone.net

uscpi / deamontools
40242 by: Mike Alexander Sauvain
40244 by: Peter van Dijk

Outlook + UW IMAP + mbox + qmail
40245 by: Eric M. Johnston
40246 by: Peter van Dijk
40247 by: Eric M. Johnston
40263 by: Peter van Dijk

Compile Error
40248 by: Nathaniel L. Keeling III
40257 by: Kristina

Can you help me install Qmail?
40249 by: Jeff Dilcher
40255 by: chuck
40256 by: Anthony White

Qmail failing ORBS test :-(
40250 by: Mark Tippetts
40251 by: Russ Allbery
40252 by: Mark Tippetts
40253 by: Russell Nelson
40254 by: Russ Allbery
40261 by: Petr Novotny
40265 by: Peter van Dijk

supervise question
40258 by: lluisma

backup mail server
40259 by: TAG
40266 by: Peter van Dijk

qmail says #5.7.1
40260 by: Max B. Khudik
40262 by: S.P. Hoeke

Non-root IMAP server possible?
40264 by: Chris Green
40267 by: Peter van Dijk

Re: Help with SPAM
40268 by: Abdul Rehman Gani

Administrivia:

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To bug my human owner, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--




I have a quick question about moving a complete working
qmail setup to a new disk drive.

My server has outgrown itself and now needs to be put on
larger drives.

Are there any problem moving ./Maildir/ directories
in the users home dirs to a new drive?

Are there any issues moving qmail itself?

I plan to move from my RedHat system from
2 2.1G drives to 2 9.1G drives that will
be running in RAID 1 configuration.

Anthony






On Mon, 17 Apr 2000, Anthony Whi

OT: Help with SPAM

2000-04-18 Thread Abdul Rehman Gani

Hi,

We are in the process of moving to qmail from Mailsite (on NT), but I face a
problem with SPAM that I do not think will be solved by QMail. The sender of
the spam is using a fake address on our domain as the from address in the
spam. Although the spam itself is forwarded through AOL/concentric and
possibly via other free/cheap access points (our server is not a relay or
originator), the bounces and complaints do reach us.

1. Is there a way to get qmail to reject mail sent to a specified address on
one of the domains for which it does accept mail - sort of a BADMAILTO
entry? Ideally the mail should be rejected during the SMTP receipt session.

2. A better solution would be to stop mail with fake from addresses from
exiting a system altogether. Any one know about such a system or how it can
be implemented - it certainly would seem to be a major task to convince mail
admins to do so, and they all would have to to be able to prevent this from
happening.

3. The spam messages contain only US based toll free numbers (1-888-258-4753
and 888-533-1018). I am not in the US so I need some help in tracking the
owners of these numbers. Can someone help in that regard?

Thanks

Abdul




Re: Non-root IMAP server possible?

2000-04-18 Thread Peter van Dijk

On Tue, Apr 18, 2000 at 08:42:20AM +0100, Chris Green wrote:
> Slightly off topic I know but I'd appreciate any pointers.
> 
> Is there any such thing as an IMAP server (or similar) that one can
> set up as a *user* - i.e. without root access?

Should be no problem, you just won't be able to run it off port 143.

> I have two shell login accounts with excellent connectivity etc.
> which would be ideal for managing my E-Mail using IMAP but neither
> system actually runs IMAP and there seems little prosect of it.

So install IMAP in your homedir and have it listen to one port there.

Greetz, Peter.
-- 
Peter van Dijk - student/sysadmin/ircoper/madly in love/pretending coder 
|  
| 'C makes it easy to shoot yourself in the foot;
|  C++ makes it harder, but when you do it blows your whole leg off.'
| Bjarne Stroustrup, Inventor of C++



Re: backup mail server

2000-04-18 Thread Peter van Dijk

On Tue, Apr 18, 2000 at 09:01:30AM +0200, TAG wrote:
> Hi,
> 
> I have two mail servers - on is located in a different country - My
> question is how do I become a backup for that other server in the event
> that it goes down or looses connectivity??
> 
> I have added entries into DNS so as the two severs are secondary MX's
> for each other..  BUT what needs to be done on the qmail side so that it
> will accept these messages and queue them until they can be dilivered??

echo hisdomain.com >> /var/qmail/control/rcpthosts

Greetz, Peter.
-- 
Peter van Dijk - student/sysadmin/ircoper/madly in love/pretending coder 
|  
| 'C makes it easy to shoot yourself in the foot;
|  C++ makes it harder, but when you do it blows your whole leg off.'
| Bjarne Stroustrup, Inventor of C++



Re: Qmail failing ORBS test :-(

2000-04-18 Thread Peter van Dijk

On Mon, Apr 17, 2000 at 10:01:08PM -0400, Mark Tippetts wrote:
> Hey,
> 
> Haven't found anything about this in the archives, I've tried playing with
> it to no avail.

This is, in fact, in the archives. The same thing has happened to me a
couple of times.

My newest qmail-box (that went production yesterday) is also already in
ORBS, but that's because ORBS now does it's relaying tests from our own
network, meaning it is in the qmail-smtpd.cdb file for tcpserver. I will
fix that shortly :)

> One of my mail servers was put in ORBS today.  I can't use ORBS myself, but
> I value what they're doing, and I consider the problem that got me there a
> real one.  The test we failed involves a header in the format "rcpt
> to:".  qmail-send grabs this address and appends the address in
> .../control/envnoathost, resulting in <[EMAIL PROTECTED]>.  This is then
> delivered in the normal way, using MX records, to the primary hub for the
> lynxus.com domain, which runs sendmail.  Sendmail does it's thing with the
> UUCP addressing, and I wind up in ORBS.

Yes. Sendmail is broken.

> This seems broken.  Qmail should not treat mail as local JUST BECAUSE it has
> a rcpt header with no domain.  I understand the value of being able to treat

Uhm. If the sender would have appended the domain you append by default,
the mail would have been delivered just as easily. The problem is that
sendmail processes the RCPT TO (which is prohibited by RFC821!) if this
message comes from a trusted host. And it should be able to trust your
qmail-host, since it _is_ in your local network..

> mail without a domain in the rcpt as local (a lot of scripts assume this
> will happen, and users expect it on some systems), IF that mail is actually
> invoking the MTA locally.  But there should definitely be some distinction
> made between actual local mail and mail that simply has no domain specified.
> Maybe .../control/envnoathost should only be used if the mail originates
> from 127.0.0.1?  Something.

That is not gonna solve anything, as per above.

> Anyhow, I'm hoping this isn't a bug report.  I'd really like someone to tell

It is a bug report. It is a bug in sendmail, in that it allows you to
easily misconfigure it to perform brokenly (or may even come preinstalled
that way).

> me, "just do -this-, and rcpts without a domain will stop being treated as
> local."  The man page for qmail-send says envnoathost will default to
> .../control/me, so I can't just remove the file.  I've tried copying
> /dev/null into it; that doesn't work either.  I don't want to put some bogus
> domain in there... doesn't seem like I should have to intentionally
> misconfigure my server to protect it from spammers.
> 
> Any solutions, possible solutions, or statements of "you blithering idiot,
> just..." would be greatly appreciated.

Fix the UUCP and percenthack processing on your sendmail.

Note that Exim+Postfix (Exim as qmail in this story, Postfix as sendmail)
show the same broken behaviour. This doesn't mean anything about Exim
(apart from that it handled this situation as correctly as qmail would),
but it does say Postfix sucks.

Turning this around, putting Postfix on the outside, gives other broken
behaviour - even if Postfix is set up to be a secondary MX (which means it
may _never_ touch the RCPT TO:) it will reject mail with a % in is. Yes,
this is broken.

Greetz, Peter.
-- 
Peter van Dijk - student/sysadmin/ircoper/madly in love/pretending coder 
|  
| 'C makes it easy to shoot yourself in the foot;
|  C++ makes it harder, but when you do it blows your whole leg off.'
| Bjarne Stroustrup, Inventor of C++



Non-root IMAP server possible?

2000-04-18 Thread Chris Green

Slightly off topic I know but I'd appreciate any pointers.

Is there any such thing as an IMAP server (or similar) that one can
set up as a *user* - i.e. without root access?

I have two shell login accounts with excellent connectivity etc.
which would be ideal for managing my E-Mail using IMAP but neither
system actually runs IMAP and there seems little prosect of it.

Also (more on topic) what's the simplest IMAP server to set up with
qmail on a Linux system (Mandrake 6.1)?

-- 
Chris Green ([EMAIL PROTECTED])
  Home: [EMAIL PROTECTED]   Work: [EMAIL PROTECTED]
  WWW: http://www.isbd.co.uk/



Re: Outlook + UW IMAP + mbox + qmail

2000-04-18 Thread Peter van Dijk

On Mon, Apr 17, 2000 at 08:18:48PM -0400, Eric M. Johnston wrote:
> Peter van Dijk wrote:
> > 
> > > After doing some experimentation, I discovered that the IMAP server is
> > > getting its time from the "From " header in the mbox, not the "Received:" or
> > > "Date:" headers, and passing this on to Outlook.  When using POP, Outlook
> > > evidently gets the time itself from a "Received:" header.
> > 
> > a From: header, I think. There is no common standard for Received-headers.
> > Also, in qmail, these will be UTC as well :)
> 
> Umm, there isn't a timestamp in the "From:" header, just the mailbox
> "From " header (I assume that's what you meant).  Anyway, Outlook seems

Sorry, I meant the Date: header. Clients don't normally (not with POP
anyway) see the "From " header anyway.

> to be able to cope with UTC in "Received:" headers, as in the POP case;
> just not in the "From " header that IMAP passes, because there's no
> indication that "From " is in UTC.

The Date: header is usually in a local time zone, and indeed clients are
encouraged to convert to local. Don't now if Outlook really does that
tho...

> > > This 'fixes' the time seen in Outlook, I guess because either IMAP or
> > > Outlook can now figure out the local time.  My question is this: does this
> > > solution violate any standards or will it break anything obvious?  Why
> > > doesn't qmail give some indication that the date/time given in this header
> > > is not local time?
> > 
> > I can't find anything about this in RFC822, probably because RFC822 doesn't
> > describe mailbox formats, only message formats :)
> 
> Yeah, this was my experience.

man mbox (from qmail) on the other hand, does specify an exact time format.

> > I don't know. I don't think it will break anything. I do think IMAPd is
> > broken for supplying the user with that info. But UW IMAP is broken anyway.
> > You do know that _another_ buffer overflow in UW IMAP was found somewhere
> > in the last few days?
> 
> I agree completely.  I'd much rather not use mailbox or UW IMAP, but
> circumstances require them at this point.  Perhaps sometime in the
> future...

Hehe :)

Greetz, Peter.
-- 
Peter van Dijk - student/sysadmin/ircoper/madly in love/pretending coder 
|  
| 'C makes it easy to shoot yourself in the foot;
|  C++ makes it harder, but when you do it blows your whole leg off.'
| Bjarne Stroustrup, Inventor of C++



Re: qmail says #5.7.1

2000-04-18 Thread S.P. Hoeke

On Tue, Apr 18, 2000 at 10:11:55AM +0200, Max B. Khudik wrote:
> Hi everybody!
> 
> Maybe I am missing something essential in qmail documentation, but:
> 
> I've installed qmail + qmail-pop3d on the machine with my dns server which
> is dual homed
[snip]
> HELP!
> Any windows mail client (e.g. Netscape Messager (4.72) or Outlook Express)
> can receive
> mail but can not send mail to external domains like ukrpack.net,  etc.
[snip] 
> It says "553 sorry, this domain is not in the list of allowed rcpthost
> (#5.7.1.)."
What's the contents of your rcpthosts ?
 
> However, it normally sends and receives messages to and from hotmail.com.
Seems one of the entries in rcpthosts is hotmail ;-)

> I almost got desperate.
 I know the feeling ...
 
Greetz,
 Steffan



RE: Qmail failing ORBS test :-(

2000-04-18 Thread Petr Novotny

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 17 Apr 00, at 22:32, Mark Tippetts wrote:

> Sendmail is NOT the problem.  Its presence is creating conditions
> where the problem manifests, but it's not to blame.  It's simply
> accepting a message from a host it trusts. 

Why does it trust that host?

> The problem is qmail
> relaying this message from an untrusted host.

It will always do so. (This about that: qmail gets message for your 
domain. It's quite likely to come from unstrusted host. qmail has no 
idea that ! or % signs have special meanings for sendmail - they 
have NO special meaning for qmail. Therefore qmail duly passes 
the message along.)

>  Even if I did turn off
> UUCP rewriting for sendmail, the underlying problem remains: qmail is
> acting as an open relay for messages with no @domain specified.

No, it does not. It thinks sendmail will deliver them locally. 
Anything wrong with that?

> The problem can be redefined as, "qmail appends envnoathost to ANY
> rcpt address without a domain".  This works too:
> 
> $ telnet mx0.lynxus.com 25
> Trying 12.6.137.100...
> Connected to mx0.lynxus.com.
> Escape character is '^]'.
> 220 mx0.lynxus.com ESMTP
> helo
> 250 mx0.lynxus.com
> mail from:[EMAIL PROTECTED]
> 250 ok
> rcpt to:
> 250 ok
> data
> 354 go ahead
> test
> .
> 250 ok 956024397 qp 28670
> quit
> 221 mx0.lynxus.com
> Connection closed by foreign host.
> $ 
> 
> This gets delivered despite the fact I have not enabled percenthack,
> because it's actually relayed to [EMAIL PROTECTED], and the
> server for lynxus.com does percenthack processing.

Why does it do the percenthack processing then? It's not vital part 
of SMTP, you know, it's more or less a sendmailism.


> BTW, since I wrote my original message, my assistant pointed out a
> spot on the ORBS web site where it describes this exact problem as a
> bug.  So now I have to rephrase my question:  Is there an effective
> work-around for this, that will prevent qmail from automatically
> rewriting rcpt addresses without a domain?

You want to fix your sendmail, trust me. qmail won't add the local 
hostname. So what? Someone else will post to 
[EMAIL PROTECTED] and your sendmail will relay the 
mail anyway.


If you can't fix your sendmail, patch qmail-smtpd to refuse mails 
with addresses containing "!" or "%". But you're putting the horse 
behind the cart.

-BEGIN PGP SIGNATURE-
Version: PGP 6.0.2 -- QDPGP 2.60 
Comment: http://community.wow.net/grt/qdpgp.html

iQA/AwUBOPv+M1MwP8g7qbw/EQKw5QCg+3YW2RsuknDToNJ8lPHLa89t03AAoL6X
0E8FGjjJI6kvoRAveYZ/8iyW
=4CX7
-END PGP SIGNATURE-
--
Petr Novotny, ANTEK CS
[EMAIL PROTECTED]
http://www.antek.cz
PGP key ID: 0x3BA9BC3F
-- Don't you know there ain't no devil there's just God when he's drunk.
 [Tom Waits]



qmail says #5.7.1

2000-04-18 Thread Max B. Khudik

Hi everybody!

Maybe I am missing something essential in qmail documentation, but:

I've installed qmail + qmail-pop3d on the machine with my dns server which
is dual homed
(so it works as proxy and mail serv). The machine is firewalled on external
interface and
absolutely open on internal interface. So, the problem is with setup of
qmail-pop3d or qmail itself.

HELP!
Any windows mail client (e.g. Netscape Messager (4.72) or Outlook Express)
can receive
mail but can not send mail to external domains like ukrpack.net,  etc.
These external domains use normal sendmail and do not use any kind of
anti-spam sequrity.

It says "553 sorry, this domain is not in the list of allowed rcpthost
(#5.7.1.)."

However, it normally sends and receives messages to and from hotmail.com.
I almost got desperate.

Thanx for participation.

Maximorus
(Max. Khudik)





backup mail server

2000-04-18 Thread TAG

Hi,

I have two mail servers - on is located in a different country - My
question is how do I become a backup for that other server in the event
that it goes down or looses connectivity??

I have added entries into DNS so as the two severs are secondary MX's
for each other..  BUT what needs to be done on the qmail side so that it
will accept these messages and queue them until they can be dilivered??

Thanks
Tonino