Re: Hoew to Queue only mail

2001-04-10 Thread Ajit George

How feasible is it to have a primary and backup, configured as you describe
below, and be able to easily switch the backup to primary mode?

I suppose there's no point unless the IMAP/POP servers on each machine stay
in sync.

Ajit

- Original Message -
From: "Tim Legant" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 09, 2001 3:16 PM
Subject: Re: Hoew to Queue only mail


> On Mon, Apr 09, 2001 at 02:33:45AM -0600, Kashan Sadiq wrote:
> > If there are two servers running qmail on both of them. One is
> > primary and the second is backup mail server which is for use of
Queueing
> > only. Now how would the mails on secondary mail server transfer to
primary
> > mail server and then stores in user accounts automatically.
>
> 1. Make sure you have MX records in DNS for both servers.
> 2. On the backup mail server, put the domain names you will accept
>mail for in the .../qmail/control/rcpthosts file.
> 3. Make sure those domain names are /not/ in .../qmail/control/locals or
>.../qmail/control/virtualdomains.
>
> That's it. The secondary will accept mail, queue it, and send it to the
> primary automatically. It's up to the primary to deliver the mail.
>
> Tim
>
>




Re: qmail, qmail-command and procmail

2001-04-10 Thread Gerrit Pape

On Tue, Apr 10, 2001 at 02:15:44AM +0100, Ricardo Cerqueira wrote:
> On Mon, Apr 09, 2001 at 07:57:37PM +, Subba Rao wrote:
> > Hello,
> > 
> > I have started qmail with the following option in /var/qmail/rc:
> > 
> > exec env - PATH="/var/qmail/bin:$PATH" \
> > qmail-start '|dot-forward .forward |preline procmail' splogger qmail
You also forgot a \n here:   ^^^
Use

qmail-start '|dot-forward .forward
|preline procmail' splogger qmail

Gerrit.

> > 
> > Here I am explicitly using procmail as my MDA. My .qmail has one entry which is,
> > "./Maildir/"
> 
> You're wrong. You're NOT using procmail as your MDA. You're using procmail
> as the system's MDA. From the moment you created a .qmail, you've overriden
> the system default.
> The default delivery mode only works when users don't specify their own.

-- 
[EMAIL PROTECTED]
innominate AG
 the linux architects
tel: +49.30.308806-0  fax: -77  http://www.innominate.com



Re: Hoew to Queue only mail

2001-04-10 Thread Tim Legant

On Tue, Apr 10, 2001 at 12:24:51AM -0700, Ajit George wrote:
> How feasible is it to have a primary and backup, configured as you describe
> below, and be able to easily switch the backup to primary mode?
> 
> I suppose there's no point unless the IMAP/POP servers on each machine stay
> in sync.

Quite. Your users, be they virtual or local Unix users, have to exist on
both machines. Then add the domain(s) either to .../qmail/control/locals
or .../qmail/control/virtualdomains and HUP qmail-send.

A comment: many people recommend against a backup (secondary) MX. It can
be argued that you don't gain anything by it - mail will be queued at
the sender's server and, once your primary (only) MX is up again,
delivery will proceed apace.

If you're down for too long, mail will bounce. The same is true of your
own secondary, unless you make provisions to deliver it somewhere else
or store it and re-inject it or other such administrative nightmare.

Tim



Re: Removing inetd (now smtp/tcpserver prob)

2001-04-10 Thread Tim Legant

On Tue, Apr 10, 2001 at 04:10:47AM -0300, Martin Marconcini wrote:
> @40003ad137d81a12473c tcpserver: status: 1/20
> @40003ad137d81a40cd64 tcpserver: pid 28480 from 127.0.0.1
> @40003ad137d81b12a424 tcpserver: ok 28480 
> localhost.marconcini.com.ar:127.0.0.1:25 :127.0.0.1::15432
> @40003ad137d81b1c77c4 tcpserver: warning: dropping connection, unable to 
> run /var/qmail/bin/qmail-smtpd: exec format error
> @40003ad137d81b44b48c tcpserver: end 28480 status 28416
> @40003ad137d81b5323dc tcpserver: status: 0/20
> 
> What is the meaning of that exec format error???

According to the man page (man execve):

  [ENOEXEC]  The new process file has the appropriate access permission,
 but has an invalid magic number in its header.

It looks like your qmail-smtpd executable is hosed. Did you build from
source or install a package? If the latter, try building qmail from
source.

> I run OpenBSD / Bash. But I don't think that might be a problem.?

No.

Tim

(btw, no need to CC me, I read the list)



Re: Rewriting header / adding local domain if missing

2001-04-10 Thread Antje Koschel


On Fri, 6 Apr 2001, Charles Cazabon wrote:

> Antje Koschel <[EMAIL PROTECTED]> wrote:
> >
> > Except that some programs here are written in a way that they connect direct
> > to the port 25 of the qmail server and and feed the mail via the smtp
> > commands.  Unfortunatly they only use "username" as sender and not
> > "username@mydomain" .  And they might be rejected by another because they
> > don't have a valid domain name.
>
> Doesn't qmail append envnoathost in this circumstance?

envnoathost was set (it should default to me anyway) but it sets the
recipients domain if it is missing not the senders (return address).

>
> > Is there a possibility to append the domain to addresses missing the
> > domain in any mail sent from local machines (as recognized with the tcprules)?
>
> You could use the fixup/@fixme trick to run the messages through qmail-inject
> or new-inject, which will fix up headers, etc.  See Dan's documentation and
> FAQ for details.
>
> Charles
>

I checked out the fixup/@fixme trick but now mails seems to be sent from
alias@domain.

I put:

virtualdomains
fixme:fixup

tcp.smtp
192.54.41.49:allow,RELAYCLIENT="@fixme"

more ~alias/.qmail-fixup-default
| bouncesaying 'Permission denied ' [ "@$HOST" != "@fi
xme" ]
| qmail-inject -f "$SENDER" -- "$DEFAULT"


How can I force it to keep the sender information? The manual pages
say if qmail-inject is used with the option -f then ALL variables are
cleared.

Thanks,
Antje




Mark mail as read

2001-04-10 Thread Andreas Carlsson

Hi list!

I have the same email accounts on my home computer as on my work. I have specified 
that the mails should remain on the server for some days so I could fetch'em at work 
as well when I'm home.
However, I want the mails to be marked as read when they already have been fetched 
from the other place. 

Is this dependent on the client or the server?
How do I configure qmail to do this?

thanks,
/andreas



Re: Hoew to Queue only mail

2001-04-10 Thread Oleg Polyakov


--- Tim Legant <[EMAIL PROTECTED]> wrote:
-%<--- 
> Quite. Your users, be they virtual or local Unix users, have
> to exist on
> both machines. Then add the domain(s) either to
> .../qmail/control/locals
> or .../qmail/control/virtualdomains and HUP qmail-send.
> 
> A comment: many people recommend against a backup (secondary)
> MX.

I afraid those people are not system administrators...

> It can
> be argued that you don't gain anything by it - mail will be
> queued at
> the sender's server and, once your primary (only) MX is up
> again,
> delivery will proceed apace.

What about if users send mail directly from their MUA's ?
They just couldn't send anything if your only MX is down.
And do not rely on other people's servers - they are
tend to fail...

> If you're down for too long, mail will bounce. The same is
> true of your
> own secondary, unless you make provisions to deliver it
> somewhere else
> or store it and re-inject it or other such administrative
> nightmare.

The secondary is just relay - it should keep mail in queue
until primary (or whatever is your final destination point)
is up again.

The secondary server not only one more server - it also
should be alternative way for mail delivery.

Oleg

> Tim


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



qmail Digest 10 Apr 2001 10:00:00 -0000 Issue 1330

2001-04-10 Thread qmail-digest-help


qmail Digest 10 Apr 2001 10:00:00 - Issue 1330

Topics (messages 60493 through 60530):

PTHREAD_THREADS_MAX  1024 -> 8192
60493 by: hantunes
60494 by: Henning Brauer
60500 by: dan.kelley

Re: 4.4.2 error smtp info
60495 by: Cybersync

multilog: unable to lock directory
60496 by: Michael T. Babcock

Not delivering mails
60497 by: Sumith

Re: I am back to square ONE...
60498 by: Kirti S. Bajwa

Kernel parameters
60499 by: Federico Edelman Anaya

Re: test with postmaster failed
60501 by: Willy De la Court
60503 by: Gerrit Pape

Upps.. :) Kernel parameters
60502 by: Federico Edelman Anaya

Re: delay before checking mail with outlook
60504 by: Dave Sill

-help@
60505 by: Marcus Ouimet
60507 by: Bill Andersen

Dynamic email addresses
60506 by: davidu.gangstabitches.net
60518 by: Par Leijonhufvud

Re: Hoew to Queue only  mail
60508 by: Tim Legant
60512 by: Boris
60520 by: Tim Legant
60524 by: Ajit George
60526 by: Tim Legant
60530 by: Oleg Polyakov

qmail, qmail-command and procmail
60509 by: Subba Rao
60510 by: Ricardo Cerqueira
60525 by: Gerrit Pape

Removing inetd
60511 by: Martin Marconcini
60514 by: alexus
60521 by: Tim Legant

Re: A strange behavior.
60513 by: Kou Sato
60519 by: Tim Legant

CNAME lookup failed
60515 by: Thum Chee Weng, Ronnie
60516 by: Alex Pennace
60517 by: Thum Chee Weng, Ronnie
60522 by: Thum Chee Weng, Ronnie

Re: Removing inetd (now smtp/tcpserver prob)
60523 by: Martin Marconcini
60527 by: Tim Legant

Re: Rewriting header / adding local domain if missing
60528 by: Antje Koschel

Mark mail as read
60529 by: Andreas Carlsson

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]


--



will this increase  qmail performance
on linux server?

./hantunes





On Mon, Apr 09, 2001 at 11:38:40AM +0100, hantunes wrote:
> will this increase  qmail performance
> on linux server?

No.

-- 
Henning Brauer | BS Web Services
Hostmaster BSWS| Roedingsmarkt 14
[EMAIL PROTECTED] | 20459 Hamburg
http://www.bsws.de | Germany





no.  qmail isin't multithreaded.

dan

On Mon, 09 Apr 2001, you wrote:
> will this increase  qmail performance
> on linux server?
> 
> ./hantunes




To anyone that was interested the errors seem to be because the ISP doesnt
know what the hell they are running. I asked them whether they were running
a traffic shaper or a load balancing device and they said "Duh" then said "o
no we dont have anything like that." I then used my personal dialup to a
reputable ISP and suddenly the problems went away. It seems if Qmail smtp
doesn't have a smooth reliable data stream it doesn't like it. I assume this
would be the case for any SMTP connection but I've never had the problem
with Groupwise or Lotus Notes. Thanks to Caspar for pointing me to the
correct RFC. I was wondering if anyone knows where the rest of the SMTP
commands that aren't in the original RFC are listed.

Craig Needs
Adelaide, South Australia





One of the 6 supervised services on one of my gateways stopped 
responding (tinydns) yesterday afternoon.  On the screen was "unable to 
lock directory /var/log/tinydns:", so I did an "svc -t 
/service/tinydns/log" and it worked fine.

Since the line that generates that log output exits 111, how would 
terminating the supervise process help?

Thanks.





Hello
One of the domains is not receiving mailsfollowing is the output of
qmail-send log

@40003ad1a39e21f9de4c delivery 69737: deferral:
Failed_to_write_RP_&_DT_(#4.3.2)/Yikes!_Could_create_but_ca
n't_delete_temporary_file!!/ENOENT:_path_doesn't_exist/

Can someone please guide me as to what is the problem
We are using Qmail+Vpopmail 4.9.8-1 (CDB)+Qmailadmin
Regards
Sumith






Hi All:

On 4-6-2001, I posted a message asking help in trying to find out why a
connection to qmail was being refused. I included the following error
message which was being displayed when error response was received:



>   '[EMAIL PROTECTED]' on 04/06/2001 11:06 AM
> Unable to deliver the message due to a communications failure
>   The MTS-ID of the original message is: c=US;a=
> ;p=TIB;l=TALIA-010406150600Z-56
> MSEXCH:IMS:TIB:MTC-TN:TALIA 3902 (000B09AA) Host Unknown



I received about 10-12 responses. The very first response suggested that all
connections to 

Failed_to_write_to_tmp/

2001-04-10 Thread Ismail YENIGUL


hi
 nowadays i am getting following error qmail log file

Failed_to_write_to_tmp/_(#4.3.3)/Yikes!_Could_create_but_can't_delete_temporary_file!!/ENOENT:_path_doesn't_exist/


also ,when i  attempts  to read  my  mails from sqwebmail(+vpopmail) . he
gets  "Can't creat cache files" error"


what is problem ?
byee

Ismail YENIGUL





Re: Mark mail as read

2001-04-10 Thread Alex Kramarov

Andreas Carlsson writes:

> Hi list! 
> 
> I have the same email accounts on my home computer as on my work. I have specified 
>that the mails should remain on the server for some days so I could fetch'em at work 
>as well when I'm home.
> However, I want the mails to be marked as read when they already have been fetched 
>from the other place.  
> 
> Is this dependent on the client or the server?
> How do I configure qmail to do this?

when you read your messages, they are mot marked on the server as read, but 
the client remembers that it read them, so unless you can share that info 
between your clients at home and work, you cannot do what you want ... 



OpenBSD 2.8 & "You have new mail in /var/mail/root"

2001-04-10 Thread Rick Updegrove

Hi all,

I am getting this message "You have new mail in /var/mail/root" every day on 
my new OpenBSD 2.8 machines running qmail.  I want all of that mail to go to 
either to a remote host or to a local Maildir depending on the machine.  If 
anyone has done this please give me a clue. I usually just start 
experimenting until I get what I want but it is working so well other than 
that I just dont want to break anything. 

Thanks
Rick Up 



Re[2]: Hoew to Queue only mail

2001-04-10 Thread Boris

Hello Tim,

Tuesday, April 10, 2001, 7:18:36 AM, you wrote:

Yes, that´s what I mean. I was thinking that qmail is delivering to
both mx servers at the same time for backup reasons -) *ggg

Need some sleep -)

Bo





Logging using multilog

2001-04-10 Thread Mustafa Mahudhawala

Hello,
I have successfully installed qmail on FreeBSD,
using tcpserver & Daemontools i.e. starting qmail daemons from /service 
directory.
(Based on life with qmail help, but here svscan & supervice are not only 
used for qmail)

Currently everything, local to remote, local to local, remote to local 
(including alias)
& pop are working correctly. I have used Maildir as Mail - Storage method.

My Problem is there are no logs generated for smtpd & pop3d

Contents of /service/qmail-send/run
---
#!/bin/sh
exec /var/qmail/rc

I have modified /var/qmail/rc as follows to use multilog instead of splogger.

Contents of /var/qmail/rc

#!/bin/sh
exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start ./Maildir/ /usr/local/bin/multilog -t 
!/usr/local/bin/tai64nlocal /log/qmail

(This Works but below doesn't)

Contents of /service/qmail-smtpd/run
--
#!/bin/sh
exec /usr/local/bin/tcpserver -v -Ho -x /etc/qmail/tcp.smtp.cdb -u 1012 -g 
1012 0 smtp /var/qmail/bin/qmail-smtpd

Contents of /service/qmail-smtpd/log/run
-
#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t 
!/usr/local/bin/tai64nlocal /log/qmail/smtpd


Though Mail is Correctly Logged for qmail-send in /log/qmail/current
It doesn't seem to work for qmail-smtpd & qmail-pop3d.

I already checked directory permissions
Also is my usage of tai64nlocal correct i.e. as processor in multilog ???

Any Help will be Highly Appreciated..
Thanx
Mustafa M




--
VeetVision Communications (P) Ltd.
Bungalow C-3, Moghul Gardens, 411001 Pune, India
Tel. 91-20-6113056, 6051597, 6051598 / Fax 91-20-6050652





Mail Compression in Maildir

2001-04-10 Thread Mustafa Mahudhawala

Hello,
I know its a bit out of track ...
But is it possible to keep mail (files) in Maildir i.e. in cur,new & tmp
in compressed formay.
(Maybe using a filter like gzip / gunzip)

Any Help will be highly appreciated.

Thanx & Regards
Mustafa M


--
VeetVision Communications (P) Ltd.
Bungalow C-3, Moghul Gardens, 411001 Pune, India
Tel. 91-20-6113056, 6051597, 6051598 / Fax 91-20-6050652





Re: Logging using multilog

2001-04-10 Thread Gerrit Pape

On Tue, Apr 10, 2001 at 06:40:14PM +0530, Mustafa Mahudhawala wrote:
> Hello,
> I have successfully installed qmail on FreeBSD,
> using tcpserver & Daemontools i.e. starting qmail daemons from /service 
> directory.
> (Based on life with qmail help, but here svscan & supervice are not only 
> used for qmail)
> 

> My Problem is there are no logs generated for smtpd & pop3d
> 
> Contents of /service/qmail-send/run
> ---
> #!/bin/sh
> exec /var/qmail/rc
> 
> I have modified /var/qmail/rc as follows to use multilog instead of splogger.
> 
> Contents of /var/qmail/rc
> 
> #!/bin/sh
> exec env - PATH="/var/qmail/bin:$PATH" \
> qmail-start ./Maildir/ /usr/local/bin/multilog -t 
> !/usr/local/bin/tai64nlocal /log/qmail
>
Better use multilog in a log/run script and let svscan provide the pipe,
just as in qmail-smtpd. Dont forget to chmod +t /service/qmail-send and
restart the supervise process (see below).
 
> (This Works but below doesn't)
> 
> Contents of /service/qmail-smtpd/run
> --
> #!/bin/sh
> exec /usr/local/bin/tcpserver -v -Ho -x /etc/qmail/tcp.smtp.cdb -u 1012 -g 
> 1012 0 smtp /var/qmail/bin/qmail-smtpd
> 
> Contents of /service/qmail-smtpd/log/run
> -
> #!/bin/sh
> exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t 
> !/usr/local/bin/tai64nlocal /log/qmail/smtpd
>
You need to chmod +t /service/qmail-smtpd to have log/run started. If the
service is allready running, use
# cd /service
# mv qmail-smtpd .qmail-smtpd
# svc -dx .qmail-smtpd
# chmod +t .qmail-smtpd
# mv .qmail-smtpd qmail-smtpd

check with
# svstat qmail-smtpd qmail-smtpd/log

Hope this helps, Gerrit.

-- 
[EMAIL PROTECTED]
innominate AG
 the linux architects
tel: +49.30.308806-0  fax: -77  http://www.innominate.com



My problem with Multilog logging solved.

2001-04-10 Thread Mustafa Mahudhawala

Ref : Previous mail regarding problem with multilog Logging.

Had to use 2>&1 i.e. send std error to Descriptor 1 from where multilog can 
read.
for smtpd & pop3d in run scripts.
eg.

in /service/qmail-smtpd/run
---
#!/bin/sh
exec /usr/local/bin/tcpserver -v -Ho -x /etc/qmail/tcp.smtp.cdb -u 1012 -g 1012
0 smtp /var/qmail/bin/qmail-smtpd 2>&1

Same for Pop3d.

Now smtpd & pop3d are logging correctly.

Though i.e. still get that @timestamp instead of human readable format
though i have used tai64nlocal (correctly )

in /service/qmail-smtpd/log/run

#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t 
!/usr/local/bin/t
ai64nlocal /log/qmail/smtpd

Thanx & Regards
Mustafa M


--
VeetVision Communications (P) Ltd.
Bungalow C-3, Moghul Gardens, 411001 Pune, India
Tel. 91-20-6113056, 6051597, 6051598 / Fax 91-20-6050652





Rewriting headers.

2001-04-10 Thread Cthulhu


I'm using QMail + MySQL.
I have the need to handle two different domain, but which refer to the
same mailboxes.

With Sendmail and Postfix, I can instruct to rewrite domain1.it to
domain2.it BEFORE queue processing.

How can I do the same with QMail?
MySQL patch provide a method which implies information duplication, or
another which avoid to check for the domain at all. I don't like both
ways.

Is there another way I'm missing from the docs?

virtualizingly,
   Cthulhu

-- 
   Ph'nglui mglw'nafh Cthulhu http://www.rlyeh.it/ wgah'nagl fhtgan!
 <[EMAIL PROTECTED]>  




QMAIL connections terminating

2001-04-10 Thread Doug Poulin

We just set up a qmail server on Red Hat 7.0.  Our users use Outlook
(mostly Outlook 2000).  The server has two NICs, one internal
(192.168.x.y) and one external (216.64.x.y).  For the purposes of this
discussion, let's call the server mail.myco.com.  IN both local DNS, and
external DNS, we have setup pop.myco.com and smtp.myco.com as well as
mail.myco.com.  All PCs can properly resolve the name to the correct
IP.  The obvious reason for this is that most mail is sent internally
between company users, so this would cut down on the amount of mail
going over the WAN.

What we are seeing is quite a few users who can't send the mail via
SMTP.  They get an error that says "The TCP/IP connection was terminated
unexpectedly" (message from Outlook). To get around this, we assign the
OUTSIDE IP address of smtp.myco.com as the SMTP server, and everything
works.  This is really stumping me. 

At one of the affected PCs, if I ping smtp.myco.com, it resolves to the
192.168.x.y address.  I can telnet to 192.168.x.y on Port 25, and send
mail this way just fine.  The odd things are, it's affecting various
Outlook versions, some OS's areWin98, others are NT, some are Gateway or
Compaq boxes, so I can't put it down to any one thing.  And, why does it
work just fine if I use the Outside IP address 216.64.x.y??

Any ideas (we can't get rid of Viruslook, sadly enough).

Thanks in advance.

Doug



Re: Removing inetd (now smtp/tcpserver prob)

2001-04-10 Thread Martin Marconcini

> > What is the meaning of that exec format error???
>
> According to the man page (man execve):
>
>   [ENOEXEC]  The new process file has the appropriate access permission,
>  but has an invalid magic number in its header.
>
> It looks like your qmail-smtpd executable is hosed. Did you build from
> source or install a package? If the latter, try building qmail from
> source.

I build it from Ports Tree... (which could be technically called from sources)


Any ideas? (and I forgot to mention that yesterday, when I was using inetd, 
it worked).

Regards,

Martin.



Re: Hoew to Queue only mail

2001-04-10 Thread Ian Lance Taylor

Tim Legant <[EMAIL PROTECTED]> writes:

> If you're down for too long, mail will bounce. The same is true of your
> own secondary, unless you make provisions to deliver it somewhere else
> or store it and re-inject it or other such administrative nightmare.

No, when the primary goes down, you just set queuelifetime on the
secondary according to how long it will take the primary to come back
up.  Or you discard the primary and just start using the secondary
immediately.

In general, using a secondary gives you more control over what happens
when the primary goes down.

Also, using a secondary means that when the primary comes back up, a
quick `qmail-tcpok; svc -a /service/qmail' will bring all the mail
over to the primary immediately; you don't have to wait for varying
timeouts across the Internet.

Ian



Re: A strange behavior.

2001-04-10 Thread Dave Sill

Kou Sato <[EMAIL PROTECTED]> wrote:

>>> smtp2 tries to sent it to [EMAIL PROTECTED]

Are you enabling selective relaying on smtp2? If so, are you setting
RELAYCLIENT to "smpt2.my.domain"?

-Dave



AIX 3.25 install?

2001-04-10 Thread Leitha discount




Hello all,
We are trying to install Qmail on an 
AIX 3.25 server.  Does anyone have any suggestions?  We run 
Make setup and get this error: 
 
     ./compile 
install-big.c        
./compile install.c  
  ./load install-big fifo.o install.o auto_qmail.o 
\ 
   auto_split.o auto_uids.o strerr.a 
substdio.a open.a error.a 
\ 
   str.a fs.a    0706-317 ERROR: Unresolved or 
undefined symbols 
detected:  
   Symbols in error 
(followed by references) are 
    dumped to the 
load map. 
    The 
-bloadmap: option will create a load map.    
.fchdir    The error code from the last failed command is 
8.
 
Any help would be appreciated.
Thanks,
Leitha


Re: OpenBSD 2.8 & "You have new mail in /var/mail/root"

2001-04-10 Thread Dave Sill

"Rick Updegrove" <[EMAIL PROTECTED]> wrote:

>I am getting this message "You have new mail in /var/mail/root" every day on 
>my new OpenBSD 2.8 machines running qmail.

And are messages actually being delivered to /var/mail/root? If so,
then you probably haven't replaced /usr/lib/sendmail (and/or
/usr/sbin/sendmail) with a link to /var/qmail/bin/sendmail.

>I want all of that mail to go to 
>either to a remote host or to a local Maildir depending on the
>machine.

Root mail is usually handled by ~alias/.qmail-root. If you want it
forwarded remotely, use:

   &[EMAIL PROTECTED]

If you want it delivered to a local Maildir, forward it to local user
whose mail goes to a maildir:

   &user

Where ~user/.qmail contains:

   ./Maildir/

Or, even better, use an extension address in .qmail-root:

   &user-root

And create ~user/.qmail-root to save the root mail in a separate
maildir:

   ./Mail/root/

-Dave



Re: Rewriting headers.

2001-04-10 Thread Dave Sill

[EMAIL PROTECTED] wrote:

>I'm using QMail + MySQL.
>I have the need to handle two different domain, but which refer to the
>same mailboxes.
>
>With Sendmail and Postfix, I can instruct to rewrite domain1.it to
>domain2.it BEFORE queue processing.
>
>How can I do the same with QMail?
>MySQL patch provide a method which implies information duplication, or
>another which avoid to check for the domain at all. I don't like both
>ways.
>
>Is there another way I'm missing from the docs?

Why not just list the domains in control/locals and control/rcpthosts?
Why bother with rewriting?

-Dave



Problem with qmail-smtpd & xinetd

2001-04-10 Thread David Gómez


Hi all, i have one question about qmail-smtpd.

When i boot my machine and fetch my mail, qmail-smtpd is spawned by xinetd
and everything works ok. But the second time xinetd tries to execute
qmail-smtpd, it gives the next error:

Apr  7 19:08:01 roku xinetd[1092]: execv( /var/qmail/bin/qmail-smtpd 
) failed: Bad address (errno = 14)

I guess it's not a matter of permissions, anyway i changed the owner of
qmail-smtpd from root to qmaild. If it was about permissions, execv would
had shown a bad access error. 
But, when the script which launches xinetd is restarted, then every time
qmail-smtpd is spawned all work as it was expected to. No error in the
logs.

The xinetd conf i think is totally correct:

service smtp
{
socket_type = stream
protocol= tcp
wait= no
user= qmaild
server  = /var/qmail/bin/qmail-smtpd
server_args = ""
log_on_failure  += RECORD
disable = no
}


So i have no idea why this problem appears. Somebody have any idea about
this? I hate when those strange things happens, probably something is
mistaked in my config, but i don't have a clue about what it is.

Thank you all



David Gómez

"The question of whether computers can think is just like the question of
 whether submarines can swim." -- Edsger W. Dijkstra





qmail: relaying

2001-04-10 Thread John Cope

OK..  I've read the relaying and selective relaying docs, but I'm still
confused as to what I need to do.  Maybe, I have a case of cranial rectitus.
(Having ones head up ones A##)  I'm setting an ISP that will service upwards
of 50,000 to 5,000,000 clients, most of which will be accessing our servers
through an Internet Appliance device.  How do I provision relaying for these
users.   They will be connecting to the Internet through their local POP's,
with different IP's.  Do I need to include of these IP's in the tcp.smtp
file, or is there a better way to handle this?

- John



Re: AIX 3.25 install?

2001-04-10 Thread Jos Backus

On Tue, Apr 10, 2001 at 10:09:06AM -0700, Leitha discount wrote:
> 0706-317 ERROR: Unresolved or undefined symbols detected:
> .fchdir

AIX 3 doesn't have fchdir(). You should be able to find the answer to this in
the archives, as this has come up a couple of times before.

-- 
Jos Backus _/  _/_/_/"Modularity is not a hack."
  _/  _/   _/-- D. J. Bernstein
 _/  _/_/_/ 
_/  _/  _/_/
[EMAIL PROTECTED] _/_/   _/_/_/use Std::Disclaimer;



Re: AIX 3.25 install?

2001-04-10 Thread Julie Baumler



On Tue, 10 Apr 2001, Leitha discount wrote:

> Hello all, We are trying to install Qmail on an AIX 3.25 server.  

Quoting myself from a previous lifetime (via the archive
http://www.ornl.gov/its/archives/mailing-lists/qmail/1997/04/msg00320.html):

I had a similar problem with AIX 3.2, we use the Vixie bind and bind
libraries and I had to change conf-cc.sh to read:

CC='cc -O2 -I/usr/local/include -L/usr/local/lib'
LD='cc -s -L/usr/local/lib -lresolv'

You might want to check and see if you have a seperate resolver library
somewhere (some unixes do so standardly) and add it (and the necessary
include and library paths if its not in the standard location).

Hope this helps,
Julie

My memory doesn't handle high levels of detail from 1997, but I don't
recall ever getting qmail to compile on AIX 3.X with the default AIX
resolver library - I also didn't try too hard because at the time I was
running DNS on some of my AIX systems, so I had to maintain the vixie bind
resolver library for AIX 3.X anyway and it was only a matter of scping a
file to one more place.

Also, if you are using XLC, I may have used the more BSD-like
configuration of the compiler for qmail.

Good luck,

Julie


> Does anyone have any suggestions?  We run Make setup and get this
> error:
> 
>  ./compile install-big.c
> ./compile install.c
> ./load install-big fifo.o install.o auto_qmail.o \
> auto_split.o auto_uids.o strerr.a substdio.a open.a error.a \
> str.a fs.a
> 0706-317 ERROR: Unresolved or undefined symbols detected:
>  Symbols in error (followed by references) are
>  dumped to the load map.
>  The -bloadmap: option will create a load map.
> .fchdir
> The error code from the last failed command is 8.
> 
> Any help would be appreciated.
> Thanks,
> Leitha
> 




Re: virtual domain aliases problems...

2001-04-10 Thread Dave Sill

Geoffrey Gallaway <[EMAIL PROTECTED]> wrote:

>I recently moved from sendmail to qmail-1.03. I'm having a few problems
>getting per-domain alias files working.
>
>[snip description of sendmail method]
>
>Now, with qmail I've installed fastforward and setup /etc/aliases to
>work correctly. The question is how do I make qmail recognize the
>aliases files for the virtual domains that my users have?

For example, say you have virtual.example.com managed by "joe". In
control/virtualdomains:

  virtual.example.com:joe-virtual

In ~joe/.qmail-virtual-default:

  | fastforward -d virtual.aliases.cdb

-Dave



Re: Hoew to Queue only mail

2001-04-10 Thread Tim Legant

On Tue, Apr 10, 2001 at 09:07:30AM -0700, Ian Lance Taylor wrote:
>  Or you discard the primary and just start using the secondary
> immediately.

Depending on your configuration, and there seem to be as many
configurations as there are system adminstrators, it may not be as
simple as "just start using the secondary".

If you have local users on the primary that are not on the secondary,
you have additional work. If you have a virtual domain setup with large
numbers of POP boxes that are not mirrored on the secondary, you have
additional work. If you authenticate from LDAP and slapd is (was!) on
the primary, you have additional work.

> In general, using a secondary gives you more control over what happens
> when the primary goes down.

Certainly.

> Also, using a secondary means that when the primary comes back up, a
> quick `qmail-tcpok; svc -a /service/qmail' will bring all the mail
> over to the primary immediately; you don't have to wait for varying
> timeouts across the Internet.

Again, absolutely true.

For the record, I have secondaries for all domains for which I admin
mail. My comments were to point out that others felt differently and
that, while secondaries are convenient, if the primary will be back up
in a day or two, the SMTP architecture works just fine without them.

It's designed to.

Tim



Re: Upps.. :) Kernel parameters

2001-04-10 Thread Dave Sill

[EMAIL PROTECTED] wrote:

>Hi! I'm running the Qmail-1.03(big-todo.patch and big-concurrency.path)
>+ Ezmlm-0.53 on Linux Debian Kernel 2.2.17
>
>[snipped]
>
>The conf-spawn limit to 509!

What does that mean? Did you set it to 1000 and find that it never
spawned more than 509? Did you set it to 1000 and get an error message
saying the limit was 509?

Remember:

  1) Tell us what you did.
  2) Tell us what you expected to happen.
  3) Tell us what *did* happen.

-Dave



Re: Hoew to Queue only mail

2001-04-10 Thread Henning Brauer

On Tue, Apr 10, 2001 at 01:10:50PM -0500, Tim Legant wrote:
> If you authenticate from LDAP and slapd is (was!) on
> the primary, you have additional work.

That's why you use a replica (slurpd) on (or near) every server.

-- 
Henning Brauer | BS Web Services
Hostmaster BSWS| Roedingsmarkt 14
[EMAIL PROTECTED] | 20459 Hamburg
http://www.bsws.de | Germany



Alias troubles

2001-04-10 Thread Brian Moon

Ok,

I have 3 domains:

mail.dealnews.com
dealnews.com
deal-news.com

mail.dealnews.com is in locals, rcpthosts and me
deal-news.com is in locals and rcpthosts

dealnews.com is in rcpthosts and virtualdomains as
dealnews.com:dealnews

In my home dir I have a .qmail-test file that reads: ./Maildir/.test/

If I send mail to [EMAIL PROTECTED] or [EMAIL PROTECTED]
the email is delivered to the test maildir as expected.

I also created a .qmail-brianm-default in the dealnews home dir that reads:
&brianm

If I send mail to [EMAIL PROTECTED] mail is not delivered to the test
maildir.  Instead it is delivered according to my .qmail file in my home dir
and totally ignores my .qmail-test file.

Is there anyway around this?


Brian Moon
--
dealnews.com, Inc.
Makers of dealnews & dealmac
http://dealnews.com/ | http://dealmac.com/

Look for my presentation at ApacheCon 2001.
"Caching Dynamic Web Content to Increase Dependability and Performance"
http://www.apachecon.com/





Re: Another newsletter question..

2001-04-10 Thread Nick (Keith) Fish

John P wrote:
> 
> Hi All
> 
> I've been looking into the best way to send the occasional one-off
> newsletter to 50-60,000 customers.
> 
> Two questions:
> - For max. delivery speed, can I just up the concurrency-remote to, say, 400
> (applying patch) - do I need to do anything else (Linux RedHat 7) eg. to do
> with process limits etc?

Sure.  You could even run an entirely separate copy of qmail processes
that interfaces with the same queue when you send out the newsletter.

> - I need to track bounces, fails etc. is the best thing to call qmail-remote
> directly, for each email, and then if it fails mark it in the database or
> pass it to qmail-inject (if temporary)? Also I'm running qmail-scanner, so I
> need to disable this for each e-mail. Could I potentially outweigh any speed
> benefit by having to use MySQL update queries or by the fact I'm using PHP?

You could probably alias anything that comes back to the MAILER-DAEMON
user during the time you are sending out the newsletter to be passed
through a program or script which would look at the ## line and see if
the subject matches the newsletter's subject, and, if it does, pass off
the user name to either a PHP function or otherwise marking the user as
bouncing in the database.  As far as using PHP, you might do better with
a shell script; but my knowledge of PHP's speed limitations is
nonexistant.

> note: I would like to keep it in PHP as it's what i know ;)
> 
> Cheers
> John

-- 
Keith
Network Engineer
Triton Technologies, Inc.



Syntax in /etc/tcp.smtp?

2001-04-10 Thread Marco Calistri

Hello,sorry but I've not well clear if have I to put
a real CLIENT name between "---" or have I to let it emtpty?

127.0.0.1:allow,RELAYCLIENT=""
192.168.2.1:allow,RELAYCLIENT=""
:allow

-- 
Regards,: Marco Calistri <[EMAIL PROTECTED]>
gpg key available on http://www.qsl.net/ik5bcu
Xfmail 1.4.7p2 on linux RedHat 6.2




Re: AIX 3.25 install?

2001-04-10 Thread Leitha discount

Thanks for that suggestion, I guess I didn't see the reference to that one
the first time out.  It did help us get further.  But, now we are getting
this message:
   ./install
install: fatal: unable to read home: file does not exist
The error code from the last failed command is 111.

Make Quitting.

Well, home is there.  So I'm not sure what it is looking for?

Any suggestions are greatly appreciated.
Leitha
- Original Message -
From: "Jos Backus" <[EMAIL PROTECTED]>
To: "Leitha discount" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, April 10, 2001 10:45 AM
Subject: Re: AIX 3.25 install?


On Tue, Apr 10, 2001 at 10:09:06AM -0700, Leitha discount wrote:
> 0706-317 ERROR: Unresolved or undefined symbols detected:
> .fchdir

AIX 3 doesn't have fchdir(). You should be able to find the answer to this
in
the archives, as this has come up a couple of times before.

--
Jos Backus _/  _/_/_/"Modularity is not a hack."
  _/  _/   _/-- D. J. Bernstein
 _/  _/_/_/
_/  _/  _/_/
[EMAIL PROTECTED] _/_/   _/_/_/use Std::Disclaimer;





Re: AIX 3.25 install?

2001-04-10 Thread Leitha discount

Thanks for that suggestion, I guess I didn't see the reference to that one
the first time out.  It did help us get further.  But, now we are getting
this message:
   ./install
install: fatal: unable to read home: file does not exist
The error code from the last failed command is 111.

Make Quitting.

Well, home is there.  So I'm not sure what it is looking for?

Any suggestions are greatly appreciated.
Leitha
- Original Message -
From: "Jos Backus" <[EMAIL PROTECTED]>
To: "Leitha discount" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, April 10, 2001 10:45 AM
Subject: Re: AIX 3.25 install?


On Tue, Apr 10, 2001 at 10:09:06AM -0700, Leitha discount wrote:
> 0706-317 ERROR: Unresolved or undefined symbols detected:
> .fchdir

AIX 3 doesn't have fchdir(). You should be able to find the answer to this
in
the archives, as this has come up a couple of times before.

--
Jos Backus _/  _/_/_/"Modularity is not a hack."
  _/  _/   _/-- D. J. Bernstein
 _/  _/_/_/
_/  _/  _/_/
[EMAIL PROTECTED] _/_/   _/_/_/use Std::Disclaimer;






Qmail stoppages

2001-04-10 Thread Stewart Vardaman

Really strange problem - qmail starts and runs fine, sending out our weekly 
newsletter.  A couple of days later, sending email from a workstation to 
the sever via SMTP won't work.  Running ps shows that all necessary 
services are up and running, a port scan shows # 25 as listening, but 
doesn't get a "220 mail.mydomain.com ESMTP..." response.  A soft reboot 
doesn't always fix it; though powering it off for a minute does.  After 
that, it'll run hundreds of thousands of messages or so, and mysteriously 
stop.  Don't see anything strange on the system logs either.  Any ideas?




Re: Syntax in /etc/tcp.smtp?

2001-04-10 Thread Stewart Vardaman

At 02:33 PM 4/10/01 , Marco Calistri wrote:
Hello,sorry but I've not well clear if have I
to put
a real CLIENT name between "---" or have I to let it
emtpty?

127.0.0.1:allow,RELAYCLIENT=""
192.168.2.1:allow,RELAYCLIENT=""
:allow

Try this:

127.0.0.1:allow,RELAYCLIENT=""
192.168.2.:allow,RELAYCLIENT=""

(allow all of 192.168.2.x)


Stewart Vardaman
Belcaro Group



qmail-qread and qmail-qstat as suid root...

2001-04-10 Thread Sean Chittenden

Anyone know of any reasion why I shouldn't set the qmail-qread
and qmail-qstat as setuid root?  I've looked through the source, but
am looking for a last confirmation or "don't do that."  -sc

-- 
Sean Chittenden

 PGP signature


Re: Alias troubles

2001-04-10 Thread Tim Legant

On Tue, Apr 10, 2001 at 02:37:32PM -0500, Brian Moon wrote:
> In my home dir I have a .qmail-test file that reads: ./Maildir/.test/
> 
> If I send mail to [EMAIL PROTECTED] or [EMAIL PROTECTED]
> the email is delivered to the test maildir as expected.
> 
> I also created a .qmail-brianm-default in the dealnews home dir that reads:
> &brianm

Here you've probably forwarded to [EMAIL PROTECTED] (qmail uses
the contents of "me" if you have no defaultohst or defaultdomain files -
man qmail-inject). You've lost the "-test" part of the original
recipient.

Try this in dealnews/.qmail-brianm-default :

| forward "brianm-$DEFAULT"

man qmail-command (the ENVIRONMENT VARIABLES section) to see why.

Tim



Re: Qmail stoppages

2001-04-10 Thread Nick (Keith) Fish

Stewart Vardaman wrote:
> 
> Really strange problem - qmail starts and runs fine, sending out our weekly
> ...
> stop.  Don't see anything strange on the system logs either.  Any ideas?

Sounds like bad hardware to me.  Possibly a bad spot on the RAM?

-- 
Keith
Network Engineer
Triton Technologies, Inc.



Some mail is getting to qmail, some others aren't

2001-04-10 Thread Steve Quezadas

I have a weird problem. 90% of the people can email me fine to my qmail
server. 10% of the people can't. The 10% of the people who can't get the
following error:

Reporting-MTA: dns;mail.tripperjones.com
Received-From-MTA: dns;jrichard
Arrival-Date: Thu, 5 Apr 2001 15:56:32 -0700

Final-Recipient: rfc822;[EMAIL PROTECTED]
Action: failed
Status: 5.0.0


Weird. I checked all the log files and no log file entries were entered in
as failed during the time he tried to email me. So it seems the email isn't
even GETTING to the qmail server. So I had the guy who couldn't email me
telnet into port 25 and send an email manually through telnet. It worked
fine. So I thought "hmmm, maybe this is some sort of weird DNS error". So I
my friend run a dslookup from his NT machine. HEre are the results:

 D:\>nslookup -q=mx pcrush.com
*** Can't find server name for address 206.111.47.3: Non-existent domain
*** Can't find server name for address 206.111.47.4: Non-existent domain
*** Default servers are not available
Server:  UnKnown
Address:  206.111.47.3

Non-authoritative answer:
pcrush.com  MX preference = 5, mail exchanger = 63.204.40.234

pcrush.com  nameserver = dns-1.tricreations.com
pcrush.com  nameserver = ns4.tricreations.com
pcrush.com  nameserver = ns5.tricreations.com
dns-1.tricreations.com  internet address = 216.205.16.110




Is this a problem with the DNS server or is this a problem with qmail?

- Steve





Re: OpenBSD 2.8 & "You have new mail in /var/mail/root"

2001-04-10 Thread Rick Updegrove

- Original Message -
From: "Dave Sill"
Subject: Re: OpenBSD 2.8 & "You have new mail in /var/mail/root"

> > "Rick Updegrove" <[EMAIL PROTECTED]> wrote:
> >I am getting this message "You have new mail in /var/mail/root" every day on
> >my new OpenBSD 2.8 machines running qmail.

> And are messages actually being delivered to /var/mail/root?

Not e-mail, just system warnings and messages etc.

> If so,
> then you probably haven't replaced /usr/lib/sendmail (and/or
> /usr/sbin/sendmail) with a link to /var/qmail/bin/sendmail.

I thought of that after I wrote the list, so I did the following after reading this 
file

bash-2.04# cat /etc/mailer.conf
#   $OpenBSD: mailer.conf,v 1.3 2000/04/06 18:24:19 millert Exp $
#
# Execute the "real" sendmail program, named /usr/libexec/sendmail/sendmail
#
sendmail/usr/libexec/sendmail/sendmail
send-mail   /usr/libexec/sendmail/sendmail
mailq   /usr/libexec/sendmail/sendmail
newaliases  /usr/libexec/sendmail/sendmail
hoststat/usr/libexec/sendmail/sendmail
purgestat   /usr/libexec/sendmail/sendmail
bash-2.04# ls -la /usr/libexec/sendmail/sendmail
bash#

Do I need all of those?

Ok so I linked them like this:

lrwxr-xr-x  1 root  wheel  23 Apr 10 04:04 /usr/libexec/sendmail/sendmail -> 
/var/qmail/bin/sendmail

lrwxr-xr-x  1 root  wheel  23 Apr 10 04:03 /usr/sbin/sendmail -> 
/var/qmail/bin/sendmail

Then I changed this

bash-2.04# cat /var/qmail/alias/.qmail-root
user

To this

bash-2.04# cat /var/qmail/alias/.qmail-root
&[EMAIL PROTECTED]

I am usuing all virtuals via vpopmail, and that account works.  I think I am all set.

Wow I learned something again today.  Thanks Dave.


Thanks again

Rick Up





Some mail gets to my qmail server, some doesn't

2001-04-10 Thread Steve Quezadas

I have a weird problem. 90% of the people can email me fine to my qmail
server. 10% of the people can't. The 10% of the people who can't get the
following error:

Reporting-MTA: dns;mail.tripperjones.com
Received-From-MTA: dns;jrichard
Arrival-Date: Thu, 5 Apr 2001 15:56:32 -0700

Final-Recipient: rfc822;[EMAIL PROTECTED]
Action: failed
Status: 5.0.0


Weird. I checked all the log files and no log file entries were entered in
as failed during the time he tried to email me. So it seems the email isn't
even GETTING to the qmail server. So I had the guy who couldn't email me
telnet into port 25 and send an email manually through telnet. It worked
fine. So I thought "hmmm, maybe this is some sort of weird DNS error". So I
my friend run a dslookup from his NT machine. HEre are the results:

 D:\>nslookup -q=mx pcrush.com
*** Can't find server name for address 206.111.47.3: Non-existent domain
*** Can't find server name for address 206.111.47.4: Non-existent domain
*** Default servers are not available
Server:  UnKnown
Address:  206.111.47.3

Non-authoritative answer:
pcrush.com  MX preference = 5, mail exchanger = 63.204.40.234

pcrush.com  nameserver = dns-1.tricreations.com
pcrush.com  nameserver = ns4.tricreations.com
pcrush.com  nameserver = ns5.tricreations.com
dns-1.tricreations.com  internet address = 216.205.16.110




Is this a problem with the DNS server or is this a problem with qmail?

- Steve




Re: Another newsletter question..

2001-04-10 Thread Peter van Dijk

On Tue, Apr 10, 2001 at 04:24:54PM -0400, Nick (Keith) Fish wrote:
[snip]
> Sure.  You could even run an entirely separate copy of qmail processes
> that interfaces with the same queue when you send out the newsletter.

What do you mean by 'the same queue'?

Greetz, Peter.



Re: qmail-qread and qmail-qstat as suid root...

2001-04-10 Thread Peter van Dijk

On Tue, Apr 10, 2001 at 02:40:24PM -0700, Sean Chittenden wrote:
>   Anyone know of any reasion why I shouldn't set the qmail-qread
> and qmail-qstat as setuid root?  I've looked through the source, but
> am looking for a last confirmation or "don't do that."  -sc

qmail-qstat is a shellscript. Making shellscripts suid is always
calling for trouble.

As for qmail-qread: suid qmails+sgid qmail is much better than suid
root, but let me read the code for a bit.

Basically, qmail-qread was not designed to be run suid. It sends
messages to stdout/stderr at will, risking tricks with fd's. It may
have other environmental dependencies that are not a problem in a
non-suid environment.

I wouldn't do it. How about just running it under tcpserver on
localhost and writing a small script that uses tcpclient to connect to
it? Much safer.

Greetz, Peter.



Re: qmail-qread and qmail-qstat as suid root...

2001-04-10 Thread Ian Lance Taylor

Sean Chittenden <[EMAIL PROTECTED]> writes:

>   Anyone know of any reasion why I shouldn't set the qmail-qread
> and qmail-qstat as setuid root?  I've looked through the source, but
> am looking for a last confirmation or "don't do that."  -sc

Make them setuid qmailq, not setuid root.

That should be safe enough, although there is a slightly increased
chance that a local user can do something horrible to your mail queue.

Ian



Re: qmail-qread and qmail-qstat as suid root...

2001-04-10 Thread Peter van Dijk

On Tue, Apr 10, 2001 at 02:40:24PM -0700, Sean Chittenden wrote:
>   Anyone know of any reasion why I shouldn't set the qmail-qread
> and qmail-qstat as setuid root?  I've looked through the source, but
> am looking for a last confirmation or "don't do that."  -sc

# envuidgid qmails tcpserver -U localhost 82 /var/qmail/bin/qmail-qread &
$ nc localhost 82
10 Apr 2001 23:16:15 GMT  #246039  212  <[EMAIL PROTECTED]> 
remote  [EMAIL PROTECTED]
bash$ tcpclient localhost 82 cat /dev/fd/6
10 Apr 2001 23:16:15 GMT  #246039  212  <[EMAIL PROTECTED]> 
remote  [EMAIL PROTECTED]

etcetera. Completely secure (in as much that it allows user to see
info they couldn't see before, unless when gleaming from logfiles or
checking process listings regularly etcetera).

Greetz, Peter.



Re: Some mail is getting to qmail, some others aren't

2001-04-10 Thread Markus Stumpf

On Tue, Apr 10, 2001 at 03:11:43PM -0700, Steve Quezadas wrote:
> I have a weird problem. 90% of the people can email me fine to my qmail
> server. 10% of the people can't. The 10% of the people who can't get the
> following error:

fano(2:2819) $ dnsqr mx pcrush.com
15 pcrush.com:
57 bytes, 1+1+0+0 records, response, noerror
query: 15 pcrush.com
answer: pcrush.com 21524 MX 5 63.204.40.234
  *

a MX record *MAY NOT* point to a IP address. It's supposed to point to a FQDN.
Your DNS zone setup is broken.

\Maex

-- 
SpaceNet AG| Joseph-Dollinger-Bogen 14 | Fon: +49 (89) 32356-0
Research & Development |   D-80807 Muenchen| Fax: +49 (89) 32356-299
Stress is when you wake up screaming and you realize you haven't fallen
asleep yet.



Re: Some mail is getting to qmail, some others aren't

2001-04-10 Thread Andy Bradford

On Tue, 10 Apr 2001 15:11:43 PDT, "Steve Quezadas" wrote:

> Non-authoritative answer:
> pcrush.com  MX preference = 5, mail exchanger = 63.204.40.234

I could be wrong, but I believe that MX records are supposed to be 
names not IP addresses.  This could be part of the problem.

Andy
p.s. nslookup is deprecated, not to mention broken.  If you don't use 
djbdns you should at least use dig.






Re: Some mail is getting to qmail, some others aren't

2001-04-10 Thread Nick (Keith) Fish

Steve Quezadas wrote:
> 
> I have a weird problem. 90% of the people can email me fine to my qmail
> 
>  D:\>nslookup -q=mx pcrush.com
> *** Can't find server name for address 206.111.47.3: Non-existent domain
> *** Can't find server name for address 206.111.47.4: Non-existent domain
> *** Default servers are not available
> Server:  UnKnown
> Address:  206.111.47.3
> 
> Non-authoritative answer:
> pcrush.com  MX preference = 5, mail exchanger = 63.204.40.234
> 
> pcrush.com  nameserver = dns-1.tricreations.com
> pcrush.com  nameserver = ns4.tricreations.com
> pcrush.com  nameserver = ns5.tricreations.com
> dns-1.tricreations.com  internet address = 216.205.16.110
> 
> Is this a problem with the DNS server or is this a problem with qmail?
> 
> - Steve

Looks to be DNS.  I'd recommend refreshing the domain on all of the
aforementioned servers (make sure to get MX right) and throw in the
reverse entries as well.

-- 
Keith
Network Engineer
Triton Technologies, Inc.



Re: Some mail is getting to qmail, some others aren't

2001-04-10 Thread David Young

Those errors have nothing to do with your domain. They mean that the PC from
where you did the nslookup has it's DNS server set to 206.111.47.3, and it
is unable to reverse-lookup that 206.111.47.3 to a hostname. After
complaining about that, it goes on to happily and correctly lookup the MX
for pcrush.com.

If the PC could telnet to you, doing an nslookup from that machine is really
a moot point anyway.

Exactly who can't get to you? Are we talking about clients at your site who
use you for their SMTP server? Or are we talking about people at other sites
who send mail to their own SMTP server and then get bounces back like below?

If there is another mail server involved, maybe you need to get that
administrator involved and look at it. Maybe it is having dns problems.

> From: "Steve Quezadas" <[EMAIL PROTECTED]>
> Date: Tue, 10 Apr 2001 15:11:43 -0700
> To: <[EMAIL PROTECTED]>
> Subject: Some mail is getting to qmail, some others aren't
> 
> I have a weird problem. 90% of the people can email me fine to my qmail
> server. 10% of the people can't. The 10% of the people who can't get the
> following error:
> 
> Reporting-MTA: dns;mail.tripperjones.com
> Received-From-MTA: dns;jrichard
> Arrival-Date: Thu, 5 Apr 2001 15:56:32 -0700
> 
> Final-Recipient: rfc822;[EMAIL PROTECTED]
> Action: failed
> Status: 5.0.0
> 
> 
> Weird. I checked all the log files and no log file entries were entered in
> as failed during the time he tried to email me. So it seems the email isn't
> even GETTING to the qmail server. So I had the guy who couldn't email me
> telnet into port 25 and send an email manually through telnet. It worked
> fine. So I thought "hmmm, maybe this is some sort of weird DNS error". So I
> my friend run a dslookup from his NT machine. HEre are the results:
> 
> D:\>nslookup -q=mx pcrush.com
> *** Can't find server name for address 206.111.47.3: Non-existent domain
> *** Can't find server name for address 206.111.47.4: Non-existent domain
> *** Default servers are not available
> Server:  UnKnown
> Address:  206.111.47.3
> 
> Non-authoritative answer:
> pcrush.com  MX preference = 5, mail exchanger = 63.204.40.234
> 
> pcrush.com  nameserver = dns-1.tricreations.com
> pcrush.com  nameserver = ns4.tricreations.com
> pcrush.com  nameserver = ns5.tricreations.com
> dns-1.tricreations.com  internet address = 216.205.16.110
> 
> 
> 
> 
> Is this a problem with the DNS server or is this a problem with qmail?
> 
> - Steve
> 
> 
> 




Re: Removing inetd (now smtp/tcpserver prob)

2001-04-10 Thread David Young

Well, exec is in /var/qmail/supervise/qmail-smtpd/run Have you double
checked the syntax in this file? What exactly does it look like?

> From: Martin Marconcini <[EMAIL PROTECTED]>
> Date: Tue, 10 Apr 2001 04:10:47 -0300
> To: Tim Legant <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
> Subject: Re: Removing inetd (now smtp/tcpserver prob)
> 
> What is the meaning of that exec format error???
>




Re: qmail-qread and qmail-qstat as suid root...

2001-04-10 Thread Sean Chittenden

Only suid or suid & guid?  qmail-qstat and qmail-qread both
rely on the qmail group to run through the queue.

man -M /var/qmail/man qmail-qstat


Here's a quick binary wrapper that I was thinking about using
that'd run as root, but would only have permission to run if you're in
the staff or wheel group.  Thoughts?  -sc

PS  To change to qmail-qread:

cp qmail_qstat.c qmail_qread.c
perl -p -i -e 's/QMAILQSTAT/QMAILQREAD/g' qmail_qread.c
perl -p -i -e 's/qmail-qstat/qmail-qread/g' qmail_qstat.c



/* $Id: qmail_qstat.c,v 1.1 2001/04/10 21:48:02 sean Exp $ */

#include 
#include 

#define QMAILQSTAT "/var/qmail/bin/qmail-qstat"

int main(void) {
  execlp(QMAILQSTAT, "qmail-qstat", NULL);

  printf("Woa!  Large problem: didn't exec qmail-qstat!\n");
  return(1);
}


On Tue, Apr 10, 2001 at 04:11:37PM -0700, Ian Lance Taylor wrote:
> Delivered-To: [EMAIL PROTECTED]
> Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> Precedence: bulk
> Delivered-To: mailing list [EMAIL PROTECTED]
> Mail-Followup-To: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Re: qmail-qread and qmail-qstat as suid root...
> From: Ian Lance Taylor <[EMAIL PROTECTED]>
> Date: 10 Apr 2001 16:11:37 -0700
> In-Reply-To: <[EMAIL PROTECTED]>
> User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7
> 
> Sean Chittenden <[EMAIL PROTECTED]> writes:
> 
> > Anyone know of any reasion why I shouldn't set the qmail-qread
> > and qmail-qstat as setuid root?  I've looked through the source, but
> > am looking for a last confirmation or "don't do that."  -sc
> 
> Make them setuid qmailq, not setuid root.
> 
> That should be safe enough, although there is a slightly increased
> chance that a local user can do something horrible to your mail queue.
> 
> Ian

-- 
Sean Chittenden

 PGP signature


Re: OpenBSD 2.8 & "You have new mail in /var/mail/root"

2001-04-10 Thread Michael Handler

Rick Updegrove <[EMAIL PROTECTED]> writes:

> bash-2.04# cat /etc/mailer.conf
> #   $OpenBSD: mailer.conf,v 1.3 2000/04/06 18:24:19 millert Exp $
> #
> # Execute the "real" sendmail program, named /usr/libexec/sendmail/sendmail
> #
> sendmail/usr/libexec/sendmail/sendmail
[...]
> Ok so I linked them like this:
> lrwxr-xr-x  1 root  wheel  23 Apr 10 04:04 /usr/libexec/sendmail/sendmail -> 
>/var/qmail/bin/sendmail

Why would you want to do that? Did you read the manpage for mailer.conf?
It exists exactly so that you don't have to bother touching any symlinks
or such on the filesystem.

root@monster:~# cat /etc/mailer.conf 
# $Id: mailer.conf,v 1.2 2001/04/10 19:36:12 root Exp $
#   $OpenBSD: mailer.conf,v 1.3 2000/04/06 18:24:19 millert Exp $
#
# Execute the "real" sendmail program, named /usr/libexec/sendmail/sendmail
#
sendmail/var/qmail/bin/sendmail
send-mail   /var/qmail/bin/sendmail
mailq   /var/qmail/bin/qmail-qread
newaliases  /bin/echo Functionality unnecessary under qmail
hoststat/bin/echo Functionality unnecessary under qmail
purgestat   /bin/echo Functionality unnecessary under qmail

I suppose I could link newaliases to something that rebuilds fastforward's
CDB, but I don't run fastforward. I suppose hoststat and purgestat could
be set to qmail-tcpto and qmail-tcpok, but that's kind of reaching.

-- 
occasional realignment  [EMAIL PROTECTED] (michael handler)
sometimesnecessary  washington, dc



Re: Some mail gets to my qmail server, some doesn't

2001-04-10 Thread Chris Johnson

On Tue, Apr 10, 2001 at 03:40:45PM -0700, Steve Quezadas wrote:
> Non-authoritative answer:
> pcrush.com  MX preference = 5, mail exchanger = 63.204.40.234

Your MX record points at an IP address. It should point at a name.

Chris

 PGP signature


outlook and outlook express

2001-04-10 Thread Robin

Hello everyone,
We have recently changed to Qmail and since doing so anyone with outlook and
outlook express is logging time at grenwich time How do we change the
time, oh by the way in the mail itself the time is correct just not in the
log in the inbox.


Robin




How to add footer in qmail ??????

2001-04-10 Thread lkhanna



Dear all
 
I am using qmail 1.03-8 on redhat 6.2 box. I want 
to add some lines at the end of every mail.
 
Is there any way in qmail to add footer 
?
 
Regards
 
Lokesh


Re: AIX 3.25 install?

2001-04-10 Thread Jos Backus

On Tue, Apr 10, 2001 at 02:00:51PM -0700, Leitha discount wrote:
> Thanks for that suggestion, I guess I didn't see the reference to that one
> the first time out.  It did help us get further.  But, now we are getting
> this message:
>./install
> install: fatal: unable to read home: file does not exist

One of the things ``make'' does is create a file named ``home'' in the build
directory:


cat home.sh  | sed s}QMAIL}"`head -1 conf-qmail`"}g  > home
chmod 755 home


lizzy:/usr/ports/mail/qmail/work/qmail-1.03# ls -l home
-rwxr-xr-x  1 root  wheel  204 Apr 10 20:17 home
lizzy:/usr/ports/mail/qmail/work/qmail-1.03# 

Is it there?

Jos

> The error code from the last failed command is 111.
> 
> Make Quitting.
> 
> Well, home is there.  So I'm not sure what it is looking for?
> 
> Any suggestions are greatly appreciated.
> Leitha
> - Original Message -
> From: "Jos Backus" <[EMAIL PROTECTED]>
> To: "Leitha discount" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Tuesday, April 10, 2001 10:45 AM
> Subject: Re: AIX 3.25 install?
> 
> 
> On Tue, Apr 10, 2001 at 10:09:06AM -0700, Leitha discount wrote:
> > 0706-317 ERROR: Unresolved or undefined symbols detected:
> > .fchdir
> 
> AIX 3 doesn't have fchdir(). You should be able to find the answer to this
> in
> the archives, as this has come up a couple of times before.
> 
> --
> Jos Backus _/  _/_/_/"Modularity is not a hack."
>   _/  _/   _/-- D. J. Bernstein
>  _/  _/_/_/
> _/  _/  _/_/
> [EMAIL PROTECTED] _/_/   _/_/_/use Std::Disclaimer;
> 
> 
> 
> 

-- 
Jos Backus _/  _/_/_/"Modularity is not a hack."
  _/  _/   _/-- D. J. Bernstein
 _/  _/_/_/ 
_/  _/  _/_/
[EMAIL PROTECTED] _/_/   _/_/_/use Std::Disclaimer;



Re: Hoew to Queue only mail

2001-04-10 Thread Ajit George

Any pointers on where to look for setting up mirroring of POP and IMAP?
Thanks.

Ajit

- Original Message -
From: "Tim Legant" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 10, 2001 11:10 AM
Subject: Re: Hoew to Queue only mail


> On Tue, Apr 10, 2001 at 09:07:30AM -0700, Ian Lance Taylor wrote:
> >  Or you discard the primary and just start using the secondary
> > immediately.
>
> Depending on your configuration, and there seem to be as many
> configurations as there are system adminstrators, it may not be as
> simple as "just start using the secondary".
>
> If you have local users on the primary that are not on the secondary,
> you have additional work. If you have a virtual domain setup with large
> numbers of POP boxes that are not mirrored on the secondary, you have
> additional work. If you authenticate from LDAP and slapd is (was!) on
> the primary, you have additional work.
>
> > In general, using a secondary gives you more control over what happens
> > when the primary goes down.
>
> Certainly.
>
> > Also, using a secondary means that when the primary comes back up, a
> > quick `qmail-tcpok; svc -a /service/qmail' will bring all the mail
> > over to the primary immediately; you don't have to wait for varying
> > timeouts across the Internet.
>
> Again, absolutely true.
>
> For the record, I have secondaries for all domains for which I admin
> mail. My comments were to point out that others felt differently and
> that, while secondaries are convenient, if the primary will be back up
> in a day or two, the SMTP architecture works just fine without them.
>
> It's designed to.
>
> Tim
>
>




Re: qmail-qread and qmail-qstat as suid root...

2001-04-10 Thread Bruce Guenter

On Wed, Apr 11, 2001 at 01:26:11AM +0200, Peter van Dijk wrote:
> On Tue, Apr 10, 2001 at 02:40:24PM -0700, Sean Chittenden wrote:
> > Anyone know of any reasion why I shouldn't set the qmail-qread
> > and qmail-qstat as setuid root?  I've looked through the source, but
> > am looking for a last confirmation or "don't do that."  -sc
> 
> # envuidgid qmails tcpserver -U localhost 82 /var/qmail/bin/qmail-qread &

An alternative, that I use, is to use a UNIX local domain socket, using
either my ucspi-unix or ucspi-local.  Then it doesn't even have to use
up a TCP port.

> $ nc localhost 82

or "tcpcat localhost 82", since tcpcat comes with ucspi-tcp.
-- 
Bruce Guenter <[EMAIL PROTECTED]>   http://em.ca/~bruceg/

 PGP signature


Re: OpenBSD 2.8 & "You have new mail in /var/mail/root"

2001-04-10 Thread Rick Updegrove

From: "Michael Handler"

> Why would you want to do that? Did you read the manpage for mailer.conf?

No, I admint that I didn't, but now I did.  However, I am no smarter than when I 
started.  It does
not contains any references to qmail, only examples for sendmail and postfix.

from man mailer.conf

BUGS
 The entire reason this program exists is a crock.  Instead, a command for
 how to submit mail should be standardized, and all the "behave different-
 ly if invoked with a different name" behavior of things like mailq(1)
 should go away.

(mailwrapper's man page said the same about it)

Do we have something against the standard "/usr/sbin/sendmail" ?  I don't see it 
convered at
http://cr.yp.to/compatibility.html

> It exists exactly so that you don't have to bother touching any symlinks
> or such on the filesystem.

It really wasn't that much of a bother and I didn't read that statement in the man 
pages anywhere
but since you brought it up, let me see if I understand now.

>From mailer.conf
 This example shows how to invoke the "postfix" program in place of send-
 mail.

 # Emulate sendmail using postfix
 sendmail/usr/local/sbin/sendmail
 mailq   /usr/local/sbin/sendmail
 newaliases  /usr/local/sbin/sendmail

So I should just use...

#emulate sendmail using qmail
sendmail/var/qmail/bin/sendmail

And remove all of the symlinks as well as all other references in that file?

If I do that will anything break?  Is there really "anything wrong" with the way I 
have it symlinked
now?


Thanks in advance

Rick Up

RHETORICAL QUESTION:  Why doesn't  just come installed with qmail as 
the default
MTA?