Re: qmail-pop3d bug

2001-03-12 Thread Vincent Schonau

On Sun, Mar 11, 2001 at 07:37:06PM +, Mark Delany wrote:

[...]

> A more sensible strategy might be to introduce a new "info" flag (say
> '3' equals POP wire size) on the filename, eg, a 10,000 byte email has
> a name something like this:
> 
> Maildir/new/980195114.16740.geex:2,RS3,1

>From reading http://cr.yp.to/proto/maildir.html>, it is not clear to me
that this would be the proper format for such an 'info' extension. I would
worry that MUAs and other software dealing with maildir (scripts!) would
expect info semantics in the 2, series to be at the end of the filenames.

> Optimally the wire-size is calculated when the mail is written to
> Maildir/tmp/ and then applied as an "info" flag when the file is moved
> to Maildir/new/.

> A possible complication with this approach is that my reading of
> Maildir infers that "info" can only be set when the file moves from
> Maildir/new/ to Maildir/cur/.
 
No, this is not what that document says. It says

   "When you move a file from new to cur, you have to change it's name [...]"

You *have* to change the name when the file move from new/ to cur/ , but
there is no specification of other cases; in fact, lots of MUA's will change
info when the file has been in cur/ for a while: mutt, for example, moves
the file from new/ to cur/, adds :2, and only modifies that to be 2,S after
the user has read the message (it is no longer 'N'ew).


Vince.








Starting qmail from /etc/init.d/...

2001-03-12 Thread Eric Pretorious

Hello!

I've been trying to start qmail using a hacked version of the 
/etc/init.d/httpd script but the script - /etc/init.d/smtp - just hangs 
after echo'ing the message "Starting qmail: ". (`csh -cf '/var/qmail/rc'` 
works correctly.) I'm not familiar with shell scripting - could the error be 
caused because /var/qmail/rc doesn't return a value to `RETVAL=$?` ? 
(/etc/init.d/smtp stop works just great!)

Thanks in advance!
Eric P.
Los Gatos, CA

/etc/init.d/smtp:

#!/bin/sh
#
# Startup script for the qmail mail transfer agent (MTA)
#
# description: The qmail package manages all e-mail messages
#  the come into or leave this server.
# processes/daemons: /var/qmail/qmail-send
#/var/qmail/splogger
#/var/qmail/qmail-lspawn
#/var/qmail/qmail-rspawn
#/var/qmail/qmail-clean
# config files: /var/qmail

# Source function library.
. /etc/rc.d/init.d/functions

# Path to the qmail boot script.
qmail=/var/qmail/rc
RETVAL=0

# Until glibc's locale support is working right again, work around it.
LANG=C

# Change the major functions into functions.
start() {
echo -n "Starting qmail: "
daemon ${qmail}
RETVAL=$?
echo
[ $RETVAL = 0 ] && touch /var/lock/subsys/smtp
return $RETVAL
}
stop() {
echo -n "Shutting down qmail: "
killproc qmail-send
RETVAL=$?
echo
[ $RETVAL = 0 ] && rm -f /var/lock/subsys/smtp
return $RETVAL
}

# See how we were called.
case "$1" in
  start)
start
;;
  stop)
stop
;;
  restart)
stop
start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac

exit $RETVAL

_
Get your FREE download of MSN Explorer at http://explorer.msn.com




Re: Please help!!!

2001-03-12 Thread Sean Coyle

Also, 

Another good thing to note:

I was having a serious problem with qMail delivering mail to end users,
however, mail was being stored in the queue (this was quite some time ago
now).  I had made a few changes to a crontab entry the day earlier, however;
everything was seemingly running normally with qMail.

Anyway, it turns out that I was running an INTENCE CRON job every single
second, rather than my intended once per day.  (oops).  It took a little
while after I corrected the error before the backlog was gone, but
everything has been running smoothly since.

Just an example of how a completely unrelated system event can alter the
performance of other items... (hrrmmm chaos mathematics anyone?)

Cheers,

Sean


THCI Billing Department wrote:

> Avery,
> 
> Take a deep breathe and let us work through it together as a group shall we.
> 
> Have you restarted qmail?  Since the last time it was working?
> 
> Have you recently rebooted your server for some reason?
> 
> Have you made "ANY" changes to your firewall?
> 
> Have you made "ANY" changes to your system?
> (Even changes that you think should NOT do anything to qmail.)
> 
> What do the logs in your system say?
> 
> Could you please post the relevant portions of your logs for the community
> to review?
> 
> Have you attempted to send an email to yourself from your own account on the
> same server?
> 
> Does it arrive?
> 
> Have you attempted to send an email TO an OUTSIDE account? Say at Hotmail or
> something?
> 
> And then have you attempted to send TO your server FROM an outside source?
> 
> If you send it FROM an outside source, is the OUTSIDE source account getting
> back any strange "Not Deliverable" type messages or anything?
> 
> Have you changed your DNS records? More specifically the MX records and the
> "A" record for the mail server itself?
> 
> You did set create an "A" record for the mail server and an "MX" record too
> right?
> 
> You state:
>> I can send a blank message from my server to me but I can't send a message
>> from the server.
> 
> Is email coming in and NOT going out?
> OR
> Is email going out and NOT coming in?
> 
> Please clarify.
> 
> Are you running any sort of intrusion detection to let you know if anyone
> has tried to hack your box?
> 
> Is your network connectivity for that box active? Can you ping it from
> across the network?
> Can you ping it from OUTSIDE your network? Or do you get back a type 3 ICMP
> msg?
> 
> Is it live? Is the network cable plugged in firmly? Are the lights lighting
> up on your network card like they should be?
> 
> Those last questions we SERIOUS questions, I wasn't kidding.
> 
> And here is a real true story, so you will know WHY I asked them...
> 
> I used to work in academia (local college campus) where we had multiple
> satellite campuses in various parts of the state where I live, all
> interconnected via VPN. (Academia isn't very good pay by the way... But
> that's another story)
> 
> They had a problem with their mail system where it would suddenly just
> stopped working for a VERY long period of time.
> 
> I told them to check the cables, restart the system, check the logs, etc...
> etc... etc...
> 
> They SWORE they did.
> 
> At the end of the day, I checked in to see how they were doing. The server
> was still down and they couldn't fix it.
> 
> "Its going to require a full reinstall blah blah blah blah blah" They
> grumbled.
> 
> "Oh?" I said. And reached around and plugged in the network cable..
> 
> Needless to say, I smiled and went home, knowing that a bad connection had
> been the problem the whole time
> 
> I told them to check it :)
> 
> Sometimes its the simplest things that we over look.
> 
> So seriously take a deep breath, and start off with the most SIMPLEST of
> things like checking the cables, and work your way into the system from
> there. If those are fine, at least you know that you checked them, and that
> you can rest in the fact that you are one step closer to finding the
> problem.
> 
> But if you could post some of your logs, that would certainly help as well.
> 
> Jack
> [EMAIL PROTECTED]
> 
> 
> 
> - Original Message -
> From: "Avery Brooks" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, March 09, 2001 5:15 PM
> Subject: Please help!!!
> 
> 
>> Greetings,
>> 
>> I setup qmail and it seems to work sometimes but it doesn't work all the
>> time.  What I mean is this morning I sent a mail through one of my forms
> and
>> it worked fine.  But right now and for the last 8 hours I haven't been
> able
>> to get any email's.  I check and qmail is running, but I don't know whats
>> going on.  Qmail just seems to not send mail all the time.
>> 
>> I am running a simple script to just test mailing functions, and it
> doesn't
>> work at all now.  I ran all the diags on qmail and it says that qmail is
> ok.
>> I can send a blank message from my server to me but I can't send a message
>> from the server.
>> 
>

Re: Starting qmail from /etc/init.d/...

2001-03-12 Thread Todd A. Jacobs

On Mon, 12 Mar 2001, Eric Pretorious wrote:

> # Change the major functions into functions.
> start() {
>   echo -n "Starting qmail: "
>   daemon ${qmail}
>   RETVAL=$?
>   echo
>   [ $RETVAL = 0 ] && touch /var/lock/subsys/smtp
>   return $RETVAL
> }

Replace "daemon ${qmail}" with "csh -cf '/var/qmail/rc'" and see what
happens. The fact that qmail doesn't run right from sh/bash is mentioned
in the docs.

-- 
Todd A. Jacobs
CodeGnome Consulting, LTD





Re: How to use qmailanalog?

2001-03-12 Thread Todd A. Jacobs

On Mon, 12 Mar 2001 ling@mail.hnytnet.com wrote:

> What should I do next?
> How to use other command in qmailanalog to analog the outout file?

Pipe the output through any of the z* commands provided by the qmailanalog
package. Each one is a shell script that you can read for information on
what it does.

-- 
Todd A. Jacobs
CodeGnome Consulting, LTD





qmail Digest 12 Mar 2001 11:00:01 -0000 Issue 1301

2001-03-12 Thread qmail-digest-help


qmail Digest 12 Mar 2001 11:00:01 - Issue 1301

Topics (messages 58829 through 58895):

Re: Administrivia: Mailing List Software]
58829 by: Andre Oppermann
58853 by: Scott Gifford

Re: what link for /bin/mail !?!?
58830 by: Eric Stanley
58843 by: Scott D. Yelich

Re: question with qmail-remote
58831 by: Markus Stumpf
58842 by: Peter van Dijk

qmail installation problem
58832 by: Mohammed Omar
58836 by: Noah Sematimba
58837 by: Thomas Beer
58883 by: Lazyman Lay (HGC - Systems Engineer, ITMM)
58884 by: Lazyman Lay (HGC - Systems Engineer, ITMM)

Re: Redirect email!
58833 by: Kirti S. Bajwa
58834 by: Kirti S. Bajwa
58838 by: Noah Sematimba
58839 by: Kirti S. Bajwa
58859 by: Todd A. Jacobs
58860 by: Kirti S. Bajwa
58861 by: Timothy Legant
58862 by: Todd A. Jacobs
58871 by: Kurth Bemis
58874 by: Kirti S. Bajwa
58876 by: Kirti S. Bajwa
58877 by: Kirti S. Bajwa

2 questions
58835 by: Alberto Dainotti
58854 by: Andy Bradford
58886 by: David Dyer-Bennet
58887 by: Andy Bradford

Re: qmail-pop3d bug
58840 by: Peter van Dijk
58856 by: Mark Delany
58857 by: Mark Delany
58864 by: Peter van Dijk
58865 by: Peter van Dijk
58866 by: John R. Levine
58867 by: Peter van Dijk
58879 by: Mark Delany
58891 by: Vincent Schonau

Re: file descriptors
58841 by: Peter van Dijk

Hiding internal server info
58844 by: Subba Rao
58848 by: Peter van Dijk

recordio / logging problem
58845 by: Daniel Kelley
58858 by: Michael T. Babcock

Sorry,_no_mailbox_here_by_that_name._(#5.1.1) [again]
58846 by: Thomas Beer
58847 by: Thomas Beer

/var/qmail/bin/sendmail
58849 by: Alex Le Fevre

/var/qmail/bin/sendmail (addendum)
58850 by: Alex Le Fevre

Re: wrong threat [is:Re: Sorry,_no_mailbox_here_by_that_name._(#5.1.1) [again]]
58851 by: Thomas Beer

I thank anyone in advance who can help me...
58852 by: Avery Brooks
58855 by: Greg White

Does anyone have a copy of NAKEDWIFE.EXE???  ~  Re: NAKEDWIFE.EXE Virus - Filter 
available
58863 by: Jesse Sunday

Qmail-Popup Problem
58868 by: Keary Suska
58869 by: Peter van Dijk
58870 by: Paul J. Schinder

qmail-remote_auth_smtp.patch
58872 by: Henning Brauer

451 timeout
58873 by: Daniel Kelley

How to use qmailanalog?
58875 by: ling
58895 by: Todd A. Jacobs

About splogger's fac? 2? 3?
58878 by: ling
58880 by: Todd A. Jacobs
58882 by: Adrian Ho
58889 by: Todd A. Jacobs

where do I add the patch?
58881 by: Ross Cooney

Re: concurrency
58885 by: David Dyer-Bennet
5 by: Todd A. Jacobs

Re: Quota Exceeded and Procmail
58890 by: Todd A. Jacobs

Starting qmail from /etc/init.d/...
58892 by: Eric Pretorious
58894 by: Todd A. Jacobs

Re: Please help!!!
58893 by: Sean Coyle

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]


--



Mark Delany wrote:
> 
> On Sat, Mar 10, 2001 at 11:49:08PM +0100, Andre Oppermann wrote:
> > Hey guys,
> >
> > lets make this poor man happy and let us all tell him about how well
> > qmail/ezmlm works!
> >
> > This guy is Elias Levy (aleph1) and he runs the Bugtraq mailing list.
> >
> > Please send an email directly to him if you want to suggest qmail/ezmlm
> > for running a large mailing list with a secure piece of software. And
> > he also is sick of handling bounces...
> 
> Whilst bounce processing is indeed a sale point for ezmlm, much of
> what Elias wants is above and beyond ezmlm. For example categorization
> and subscription by category. Sure you can (painfully) make a sublist
> for each category, as long as they don't invent and rename categories
> on the fly.

If he'd run off ezmlm-idx with a database backend I think this should
be no problem?

> Elias also talks about an emulation layer for LISTSERV. I've not heard
> of anyone providing that for ezmlm.

I don't know if there is any mailing list software out there having
an emulation layer for LISTSERV... Worst case he has to write one.

> This is not to under-rate ezmlm, as a base toolkit it would perform
> admirably, but the BUGTRAQ dood wants a lot of value-adds that are not
> part of ezmlm.

"There is no such as a free lunch" maybe? Some effort is required.

-- 
Andre




Andre Oppermann <[EMAIL PROTECTED]> writes:

> Mark Delany wrote:
[ ... ]
> > Elias also talks about an emulation layer for LISTSERV. I've not heard

Re: qmail-pop3d bug

2001-03-12 Thread Mark Delany

> > A more sensible strategy might be to introduce a new "info" flag (say
> > '3' equals POP wire size) on the filename, eg, a 10,000 byte email has
> > a name something like this:
> > 
> > Maildir/new/980195114.16740.geex:2,RS3,1
> 
> From reading http://cr.yp.to/proto/maildir.html>, it is not clear to me
> that this would be the proper format for such an 'info' extension. I would
> worry that MUAs and other software dealing with maildir (scripts!) would
> expect info semantics in the 2, series to be at the end of the filenames.

Indeed, and given that "info is morally equivalent to the Status field
used by mbox readers" I suspect that the my suggested syntax is beyond
the original intent.

> > Optimally the wire-size is calculated when the mail is written to
> > Maildir/tmp/ and then applied as an "info" flag when the file is moved
> > to Maildir/new/.
> 
> > A possible complication with this approach is that my reading of
> > Maildir infers that "info" can only be set when the file moves from
> > Maildir/new/ to Maildir/cur/.
>  
> No, this is not what that document says. It says
> 
>"When you move a file from new to cur, you have to change it's name [...]"

You stopped quoting before the most important part! Here's the
complete sentence.

"When you move a file from new to cur, you have to change its name
from uniq to uniq:info."

To me that implies that a file in new cannot have an "info" section.

> You *have* to change the name when the file move from new/ to cur/ , but
> there is no specification of other cases; in fact, lots of MUA's will change
> info when the file has been in cur/ for a while: mutt, for example, moves
> the file from new/ to cur/, adds :2, and only modifies that to be 2,S after
> the user has read the message (it is no longer 'N'ew).

Right, but that's my point. To specify another case.


Regards.




Re: Please help!!!

2001-03-12 Thread Mark Delany

On Mon, Mar 12, 2001 at 01:52:00AM -0800, Sean Coyle wrote:
> Also, 
> 
> Another good thing to note:
> 
> I was having a serious problem with qMail delivering mail to end users,
> however, mail was being stored in the queue (this was quite some time ago
> now).  I had made a few changes to a crontab entry the day earlier, however;
> everything was seemingly running normally with qMail.
> 
> Anyway, it turns out that I was running an INTENCE CRON job every single
> second,

Are you sure about that? All the crons I've seen only let you run a
job at most, once per minute. How did you get cron to run something
once per second?

If the job runs at most once per minute, it's hard to imagine how it
would consume all available resources such that qmail stopped
delivering.

(Of course it's not impossible, but just unlikely: a job that runs for
an hour that is started once per minute may well have a serious
resource impact).

> Just an example of how a completely unrelated system event can alter the
> performance of other items... (hrrmmm chaos mathematics anyone?)

Most likely the problem is much simpler and more directly related. As
the earlier poster suggested a systematic process of elimination is
the best approach.


Regards.



Re: Virtual hosts

2001-03-12 Thread Pawel Garbowski

hi,

* Joe <[EMAIL PROTECTED]> [010310 18:53] wrote:
> Actually, i would like to put everything in a database.
> Any ideas?

I don't know if all controls files are supporting in mysql database (I
running one of my box on qmail-mysql Iain's patch - diffrent than Yours) 
but records in database are optional. So feel free to put domains in Your
control/locals avoiding mysql's tables. As far I know only
controls/rcpthosts have optional replacement in mysql table.

pawel

-- 
pawel garbowski
[EMAIL PROTECTED]



Re: Starting qmail from /etc/init.d/...

2001-03-12 Thread Noah Sematimba

perhaps you forgot the & to put the process in the background? This
happened to me.

On Mon, 12 Mar 2001, Eric Pretorious wrote:

> Hello!
> 
> I've been trying to start qmail using a hacked version of the 
> /etc/init.d/httpd script but the script - /etc/init.d/smtp - just hangs 
> after echo'ing the message "Starting qmail: ". (`csh -cf '/var/qmail/rc'` 
> works correctly.) I'm not familiar with shell scripting - could the error be 
> caused because /var/qmail/rc doesn't return a value to `RETVAL=$?` ? 
> (/etc/init.d/smtp stop works just great!)
> 
> Thanks in advance!
> Eric P.
> Los Gatos, CA
> 
> /etc/init.d/smtp:
> 
> #!/bin/sh
> #
> # Startup script for the qmail mail transfer agent (MTA)
> #
> # description: The qmail package manages all e-mail messages
> #  the come into or leave this server.
> # processes/daemons: /var/qmail/qmail-send
> #/var/qmail/splogger
> #/var/qmail/qmail-lspawn
> #/var/qmail/qmail-rspawn
> #/var/qmail/qmail-clean
> # config files: /var/qmail
> 
> # Source function library.
> . /etc/rc.d/init.d/functions
> 
> # Path to the qmail boot script.
> qmail=/var/qmail/rc
> RETVAL=0
> 
> # Until glibc's locale support is working right again, work around it.
> LANG=C
> 
> # Change the major functions into functions.
> start() {
>   echo -n "Starting qmail: "
>   daemon ${qmail}
>   RETVAL=$?
>   echo
>   [ $RETVAL = 0 ] && touch /var/lock/subsys/smtp
>   return $RETVAL
> }
> stop() {
>   echo -n "Shutting down qmail: "
>   killproc qmail-send
>   RETVAL=$?
>   echo
>   [ $RETVAL = 0 ] && rm -f /var/lock/subsys/smtp
>   return $RETVAL
> }
> 
> # See how we were called.
> case "$1" in
>   start)
>   start
>   ;;
>   stop)
>   stop
>   ;;
>   restart)
>   stop
>   start
>   ;;
> *)
>   echo "Usage: $0 {start|stop|restart}"
>   exit 1
> esac
> 
> exit $RETVAL
> 
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com
> 
> 




Incoming / Outgoing Rules

2001-03-12 Thread Sumith



Hello All
 
Isn't there a easier way of sending a copy of all 
outgoing mails from Qmail..than what is mentioned in the FAQI mean with out 
recompiling qmail
 
- Sumith
 
How do I keep a copy of all incoming 
and outgoing mail messages? 
Answer: Set QUEUE_EXTRA to "Tlog\0" and QUEUE_EXTRALEN to 5 
in extra.h. Recompile qmail. Put ./msg-log into 
~alias/.qmail-log. 
You can also use QUEUE_EXTRA to, e.g., record the Message-ID of every 
message: run  | awk '/^$/ { exit } /^[mM][eE][sS][sS][aA][gG][eE]-/ { print }'
from ~alias/.qmail-log. 


Re: qmail-pop3d bug

2001-03-12 Thread Vincent Schonau

On Mon, Mar 12, 2001 at 11:03:33AM +, Mark Delany wrote:

> To me that implies that a file in new cannot have an "info" section.

You're right. I didn't think the original point throuhgh.

Regards,


Vince.




Re: qmail-pop3d bug

2001-03-12 Thread Michael T. Babcock

Peter van Dijk wrote:

> > Not if it's calculated as the file is written to the Maildir.
>
> True, but that hurts writing performance.

Have you tested this?  It doesn't seem that qmail has ever been CPU bound --
and if the CPU has spare cycles while writing, then counting lines and adding
bytes for CR/LF won't hurt writing performance at all.

--
Michael T. Babcock (PGP: 0xBE6C1895)
http://www.fibrespeed.net/~mbabcock/






RE: Yet another weird POP3 problem

2001-03-12 Thread Bedel, Pierre

Thanks Sean,

In fact I switched pop3d from inetd to tcpserver and it now works!

Nonetheless, here are the information you asked for, they may be helpful to
someone sometime :-)

>Ah!  I have an idea...   Took a little while, but can you paste to the
>newsgroup the line you are using to start qmail-popup in the news group
>again?  Also give us a few lines surrounding it as well. Also, it seems as
>though you are using a RedHat based OS.  Can you confirm that?   Also
please
>double check in your /etc/services file that ports 110/TCP and 110/UDP are
>open (not commented out)

I'm running qmail under Suse 7.0 although I'm much more familiar with
Redhat.

The services are uncommented.

pop3 stream tcp nowait root /var/qmail/bin/qmail-popup qmail qmail-popup
flateric.webdefense \
 /bin/checkpoppasswd/var/qmail/bin/qmail-pop3d Maildir

...Now that I'm not sick anymore I realize that since my inetd line is in 2
parts, that's probably why it didn't work :-)

>Paste a quick 'ps -aux | grep qmail' to the group as well, I am interested
>to see what shows up..  I am not sure I asked, but could you let us know if
>you are running svc (daemontools) or any other package like that?

I wasn't running anything apart from qmail.

> K, that is good.  Now are you sure those messages are getting stored in
the
> correct directories?  (eg: $HOME/Maildir/) just cd into the directories
and
> go for a quick check on the contents.

Yes everything was stored in the right place.

> Can you double check the existence of your pass checker?

I am using checkpoppasswd, and it is placed in /bin

Cheers,
Pierre


**
In KPMG's opinion, non-encrypted communication via the Internet is not to be 
considered secure.
For that reason, it is KPMG's policy that uninvited use of the Internet concerning 
exchange of confidential information with our clients must not take place.  When 
exchanging information, the client is held liable.

This e-mail may contain confidential information and is intended solely for the 
addressee, and any disclosure of this information is strictly prohibited and may be 
unlawful.  If you have received this e-mail by mistake, please notify us immediately 
and delete this mail.

**



Re: qmail-pop3d bug

2001-03-12 Thread Peter van Dijk

On Mon, Mar 12, 2001 at 08:55:47AM -0500, Michael T. Babcock wrote:
> Peter van Dijk wrote:
> 
> > > Not if it's calculated as the file is written to the Maildir.
> >
> > True, but that hurts writing performance.
> 
> Have you tested this?  It doesn't seem that qmail has ever been CPU bound --
> and if the CPU has spare cycles while writing, then counting lines and adding
> bytes for CR/LF won't hurt writing performance at all.

'hurts writing performance' (although you are right :) also means
'increases resource use', in whatever way.

Measuring in wall-clock time, the performance hit is probably negligible
indeed.

Greetz, Peter.



Mailwrapper not working

2001-03-12 Thread Alex Le Fevre

I've posted several questions to this list recently on
this topic, none of which have been satisfactorily
answered. I apologize for any redundancy.

The root of my problem is that my mail wrapper seems
to be malfunctioning. Neither /usr/sbin/sendmail --
from OBSD 2.8's default install of Sendmail -- or
/var/qmail/bin/sendmail seem to work at all. When I
point a popular Perl script at them (FormMail.pl), the
script executes but produces nothing in
/var/log/maillog.

How can I test my mailwrapper for functionality? Would
it be possible to reinstall the mailwrapper without
reinstalling all of qmail if I find it's not
functional? Are there any config files I need to be
checking?

Thanks for your help.

Alex Le Fevre

__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/



Re: Mailwrapper not working

2001-03-12 Thread Peter van Dijk

On Mon, Mar 12, 2001 at 07:59:07AM -0800, Alex Le Fevre wrote:
[snip]
> How can I test my mailwrapper for functionality? Would
> it be possible to reinstall the mailwrapper without
> reinstalling all of qmail if I find it's not
> functional? Are there any config files I need to be
> checking?

Don't use BSD's mailwrapper. It's terribly unreliable.

Put symlinks in place as the qmail docs tell you.

Greetz, Peter.



Re: traffic

2001-03-12 Thread Kris Kelley

Qmaillist apparently wrote:
> I guess that it just logs the traffic of emails that are sent out by the
> server and of emails that are received by the server.

...which is all that qmail has jurisdiction over.

> But is it also possible to let qmail log when a user collects his email?

This is up to your POP3, IMAP, or other similar server.  qmail ships with a
POP3 server, qmail-pop3d, but even if you are using it, its logs will be
kept separately.

---Kris Kelley




Re: Mailwrapper not working

2001-03-12 Thread Alex Le Fevre

> Put symlinks in place as the qmail docs tell you.

I have, I kill -HUP'ed qmail-send, and it still
doesn't work. Why wouldn't it work

Alex

__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/



Re: qmail-pop3d bug

2001-03-12 Thread Kris Kelley

John R. Levine wrote:
> > > Pop3d just reports the file sizes, while it's clear
> > > from the RFC that it's supposed to report the wire size of each
message,
> > > i.e., the size using cr/lf as a line terminator, so the sizes it
reports
> > > are too small.

Peter van Dijk replied:
> > Yes. This behaviour is known. Fixing it, however, involves a *huge*
> > performance downgrade of qmail-pop3d.

Scott Gifford pondered:
> A solution I have considered is storing the messages in wire format.
> Especially for POP/IMAP-only clients, seems like it could be a
> medium-sized performance win, since the line-conversion is done only
> once, regardless of how many times the message is downloaded.  If the
> message were kept in wire-format from SMTP through delivery, no line
> conversion would be required at either end, and a larger performance
> gain would be possible.
>
> Has anybody tried this, or anything like it?

Something like that, yes.  My last job involved building custom SMTP and
POP3 servers from scratch.  I stored messages in a quasi-maildir-ish folder
scheme, and left the CRLF linebreaks intact.  Since there were no local
users on this box, there was no need to worry about local MUA's, and
everything ran smoothly.  I would think that it probably wouldn't be too
much trouble to rig an MUA to look for CRLFs, so that it could coexist in
this environment if need be.

---Kris Kelley




check on valid user

2001-03-12 Thread gmo

Hello,

can i check received mail, whether is the recipient a valid mail user on my
system? When not valid (e.g. spam), i want it send to postmaster.

Thanks

Gustav

-- 
Sent through GMX FreeMail - http://www.gmx.net




qmail and Solaris?

2001-03-12 Thread Roger Walker

I saw a couple of references to Solaris on the main qmail.org
webpage, and a little bit in some of the files in the tarball. Does anyone
have any specific notes for installing on Solaris?

Thanks.

-- 
Roger Walker 
Voice/Fax 1-780-440-2685 
"HIS Pain; YOUR Gain"





Re: check on valid user

2001-03-12 Thread Charles Cazabon

[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> 
> can i check received mail, whether is the recipient a valid mail user on my
> system? When not valid (e.g. spam), i want it send to postmaster.

`man dot-qmail`.  Then, `echo "&postmaster@yourdomain" >~alias/.qmail-default` .

Charles
-- 
---
Charles Cazabon<[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
---



Re: 2 questions

2001-03-12 Thread David Dyer-Bennet

Andy Bradford <[EMAIL PROTECTED]> writes on 11 March 2001 at 23:33:48 -0700
 > Thus said David Dyer-Bennet on 12 Mar 2001 00:21:10 CST:
 > 
 > > Because my local users are used to using mailbox-based tools, but I'm
 > > using vmailmgr for virtual support and it likes maildir.  And some of
 > > my local users want to also check via pop from time to time.
 > 
 > How do you intend to keep the mailbox and maildir ``in sync?''  Now, if 
 > you can convince your users to use one or the other then you could just 
 > put the proper delivery instruction in their .qmail file.  i.e. for 
 > user joe who wants mailbox format:
 > 
 > ~joe/.qmail:
 > ./Mailbox
 > 
 > and for fred who wants pop (using maildir)
 > ~fred/.qmail:
 > ./Maildir/
 > 
 > Of course, now if joe wants pop then he will be out of luck unless you 
 > do something like:
 > 
 > ~joe/.qmail:
 > ./Mailbox
 > ./Maildir/

Hmm, I see I didn't say that very well.  Users who use mbox can't
check via pop.  Users who need pop can also read locally, but only
using maildir-aware tools (like mutt).
-- 
David Dyer-Bennet  /  Welcome to the future!  /  [EMAIL PROTECTED]
SF: http://www.dd-b.net/dd-b/  Minicon: http://www.mnstf.org/minicon/
Photos: http://dd-b.lighthunters.net/



Re: Mailwrapper not working

2001-03-12 Thread Henning Brauer

On Mon, Mar 12, 2001 at 07:59:07AM -0800, Alex Le Fevre wrote:
> I've posted several questions to this list recently on
> this topic, none of which have been satisfactorily
> answered. I apologize for any redundancy.
> 
> The root of my problem is that my mail wrapper seems
> to be malfunctioning. Neither /usr/sbin/sendmail --
> from OBSD 2.8's default install of Sendmail 

in OpenBSD you shouldn't touch /usr/sbin/sendmail, you should modify
/etc/mailer.conf like

sendmail /var/qmail/bin/sendmail
send-mail /var/qmail/bin/sendmail

and so on. works without any problem.

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



POP3D Traffic

2001-03-12 Thread Estephano

Hello.

Where does pop3d log its traffic?
Where is the standard output file?

Thanks in advance
S. Winter



Re: Mailwrapper not working

2001-03-12 Thread Charles Cazabon

Henning Brauer <[EMAIL PROTECTED]> wrote:
> 
> in OpenBSD you shouldn't touch /usr/sbin/sendmail, you should modify
> /etc/mailer.conf like
> 
> sendmail /var/qmail/bin/sendmail
> send-mail /var/qmail/bin/sendmail
> 
> and so on. works without any problem.

DJB posted to this list once, pointing out problems with mailer.conf -- if
the system fails to open it (out of fds, etc), it defaults to using
sendmail -- hardly what you want.

The symlink solution is more reliable, and no files need to be parsed either.

Charles
-- 
---
Charles Cazabon<[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
---



Re: Mailwrapper not working

2001-03-12 Thread Alex Le Fevre

> DJB posted to this list once, pointing out problems
> with mailer.conf -- if
> the system fails to open it (out of fds, etc), it
> defaults to using
> sendmail -- hardly what you want.
> 
> The symlink solution is more reliable, and no files
> need to be parsed either.
> 
You're still both missing my original point -- not
that my mail as a whole isn't working, but that I
can't get FormMail.pl (from
www.worldwidemart.com/scripts) to send e-mail. I've
only got to the question about mailwrappers because
that's where I was led in search of a fix for this
problem. The script, by default, calls the mail
program as /usr/lib/sendmail, which didn't work; I've
been toying around with everything from a symlinked
/usr/sbin/sendmail to /var/qmail/bin/qmail-inject, and
none of those work. Can anyone provide help relevant
to that problem?

Thanks,
Alex

__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/



Re: Mailwrapper not working

2001-03-12 Thread Henning Brauer

On Mon, Mar 12, 2001 at 10:20:23AM -0800, Alex Le Fevre wrote:
> I
> can't get FormMail.pl (from
> www.worldwidemart.com/scripts) to send e-mail. I've
> only got to the question about mailwrappers because
> that's where I was led in search of a fix for this
> problem. The script, by default, calls the mail
> program as /usr/lib/sendmail, which didn't work; I've
> been toying around with everything from a symlinked
> /usr/sbin/sendmail to /var/qmail/bin/qmail-inject, and
> none of those work. Can anyone provide help relevant
> to that problem?

qmail-inject can't work, you need the sendmail-wrapper - normally
/var/qmail/bin/sendmail. This does work as it should normally. Id it doesn't
there are some serious misconfigurations.

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



Delay pop3

2001-03-12 Thread Desarrollo y Sistemas

Hi
I have qmail, vpomail. I installed tcpserver for smpt and pop3 (works), and
I have one count in Outlook works, but some times when check pop3, send
a messagge cause is waiting somthing, server is busy you want continue
waiting 60 secondos more ?? this is the messagges more or less.

Must I change something  in my configuration ???

Works just fine in sqwebmail, the probles in only in outlook.


Regards
Alexa




Re: Mailwrapper not working

2001-03-12 Thread Alex Le Fevre

> qmail-inject can't work, you need the
> sendmail-wrapper - normally
> /var/qmail/bin/sendmail. This does work as it should
> normally. Id it doesn't
> there are some serious misconfigurations.

How can I test /var/qmail/bin/sendmail? Do you think
there would be a way to check to make sure my script
is actually calling the binary?

Alex

__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/



how do I check on a specific message delivery?

2001-03-12 Thread william f guyton jr

I am using multilog for logging qmail-smtp and qmail-send and would like 
to know how to check the log files for a delivery date and time stamp 
for a specific user.

-- 
william f guyton jr
senior network engineer
INFORMS
334.277.0372




Re: Delay pop3

2001-03-12 Thread Charles Cazabon

Desarrollo y Sistemas <[EMAIL PROTECTED]> wrote:
> I have qmail, vpomail. I installed tcpserver for smpt and pop3 (works), and
> I have one count in Outlook works, but some times when check pop3, send
> a messagge cause is waiting somthing, server is busy you want continue
> waiting 60 secondos more ?? this is the messagges more or less.

Check your DNS and ident lookup options for the tcpserver instance invoking
qmail-pop3d.  This is a FAQ.

Charles
-- 
---
Charles Cazabon<[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
---



Re: Mailwrapper not working

2001-03-12 Thread Henning Brauer

On Mon, Mar 12, 2001 at 10:50:20AM -0800, Alex Le Fevre wrote:
> > qmail-inject can't work, you need the
> > sendmail-wrapper - normally
> > /var/qmail/bin/sendmail. This does work as it should
> > normally. Id it doesn't
> > there are some serious misconfigurations.
> 
> How can I test /var/qmail/bin/sendmail? 

===
#!/usr/bin/perl

open SM, "|/var/qmail/bin/sendmail [EMAIL PROTECTED]";
print SM "From: Test\nTo: Test\nSubject: test\n\n";
print SM "This is a test.\n";
close SM;
===

FormMail works without modifications on a proper configured OpenBSD/qmail
system.

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



pine Mailbox Can't open folder

2001-03-12 Thread Thomas Beer

Hi,

I read the archive and the INSTALL.mbox file
and can't convince Pine opening my localy
delivered mails.
I assume that the delivery will work:

@40003aad24ea1bd07db4 info msg 224657: bytes 204 from
<[EMAIL PROTECTED]> qp 10101 uid 0
@40003aad24ea1c292cd4 starting delivery 1: msg 224657 to local
[EMAIL PROTECTED]
@40003aad24ea1c297edc status: local 1/10 remote 0/20

I put ./Mailbox in my defaultdelivery and in pine the inbox-path=Mailbox,
how it is assumed in INSTALL.mbox. I made the symbolic link from
/var/spool/mail/tom to /$HOME/Mailbox and /var/spool/mail is 1777.
What Am I missing? Assuming that the pine patch is only necessary
if I wanna use Maildir.

Thanks Tom





Re: how do I check on a specific message delivery?

2001-03-12 Thread Aaron L. Meehan

Quoting william f guyton jr ([EMAIL PROTECTED]):
> I am using multilog for logging qmail-smtp and qmail-send and would like 
> to know how to check the log files for a delivery date and time stamp 
> for a specific user.

Maybe you need to be more specific :)  Do you mean something other than:

$ grep user@somedomain *
$ tai64nlocal < current | less
$ egrep '.*from.<[EMAIL PROTECTED]>.*' current
$ egrep '.*to.<[EMAIL PROTECTED]>.*' @* | tai64nlocal

... or the like ?

Aaron



Filter

2001-03-12 Thread Ari Arantes Filho

Hi,

I'm trying to use qtools to filter message.

I've tried:

| condtomaildir ./Maildir/.Listas.qmail iftoccfrom [EMAIL PROTECTED]

It is working, but now I would like to check if the subject contains
[ORACLE], then send to message to .Listas.oracle folder.

How can I do this?

Thanks,

Ari




Re: pine Mailbox Can't open folder

2001-03-12 Thread Jason Kawaja

I set :

mail-directory=Maildir

in /usr/local/lib/pine.conf.fixedI guess you would need to set it to
Mailbox?

I do not set the inbox-path (not sure why you would for maildirs, anyone
know?), works fine for pine4.32 with patch-for-maildirs

-- 

Regards,
Jason Kawaja, UF-ECE Sys Admin



Relaying and changing servers

2001-03-12 Thread Ryan Pape


I'm moving all mail hosting from one server to another.  I will stop SMTP on
server 1, move users & mail to server 2, change DNS, start SMTP on server 2.

However, any mail sent in the time server1 is not receiving mail will be
remotely QUEUED.  I don't want the mail to be ultimately delivered on
server1 ever again, because the users will be checking server2.

When a message is remotely queued, when it tries to resend does it requery
for MX record?  If so, would this solve my problem?

Or, How do I need to setup qmail on server1 to relay messages on to server2.
Set them up in rcpthosts but not in virtualdomains?

Thanks for the help.




Being verbose in error messages

2001-03-12 Thread Michael T. Babcock

Just an FYI to the group, this is what we've come up with for one of our
clients' configurations of qmail-notify.  qmail-notify notifies senders
that their E-mail did not reach the intended recipient within a certain
amount of time and optionally CC's the network administrator (which it
is configured to do in this case):

-x-
Your message has been received by %s but has been
undeliverable to the listed recipients for at least %s.

The mail system will continue to attempt to deliver your message
to these recipients for a total of %s.  Your network administrator
is aware of this situation.  This message is for your information;
you do not need to resend your message at this time.
If the message below is time-critical, consider faxing or calling
the intended recipient.  You will be notified again only if this
message ultimately fails to reach one or more of the recipients.

  Recipient(s):
-x-

This _may_ finally be verbose enough to keep the users from E-mailing
their mail administrator with "Julie didn't get my E-mail yet!"

--
Michael T. Babcock (PGP: 0xBE6C1895)
http://www.fibrespeed.net/~mbabcock/






move basic qmail directory

2001-03-12 Thread Jesús Arnáiz

Hi!

Can I found some problems if i move /var/qmail directory to another localization?

Thanks in advance


--
Jesús Arnáiz
0z0ne Inc I+D/IT Manager
http://www.0z0ne.com
mailto:[EMAIL PROTECTED]




Re: Relaying and changing servers

2001-03-12 Thread Charles Cazabon

Ryan Pape <[EMAIL PROTECTED]> wrote:
> 
> I'm moving all mail hosting from one server to another.  I will stop SMTP on
> server 1, move users & mail to server 2, change DNS, start SMTP on server 2.
> 
> However, any mail sent in the time server1 is not receiving mail will be
> remotely QUEUED.  I don't want the mail to be ultimately delivered on
> server1 ever again, because the users will be checking server2.

Instead, set up server 2 now, and have it send all mail for your domain
to server 1 (if you want to keep serving users out of that machine) using
smtproutes.  Then, once DNS changes have had a chance to propagate, you
can have server 2 handle the mail locally, and switch your users over.

> Or, How do I need to setup qmail on server1 to relay messages on to server2.
> Set them up in rcpthosts but not in virtualdomains?

If it's in rcpthosts but not locals or virtualdomains, it will do this by
MX.  You'll probably want to add an smtproutes entry to get it to send the
mail to server 2.

Charles
-- 
---
Charles Cazabon<[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
---



Re: move basic qmail directory

2001-03-12 Thread Charles Cazabon

Jesús Arnáiz <[EMAIL PROTECTED]> wrote:
> 
> Can I found some problems if i move /var/qmail directory to another
> localization?

It's easy to change where you want to install qmail _before_ you do it,
by changing conf-home.  If you mean you want to move qmail after having
already installed it, it will take some additional work.  You'll have to
recompile qmail anyways, or put in symlinks from the old locations to the
new ones.

In addition, you'll have to either empty your queue before the move, or
fix the queue afterwards.

Charles
-- 
---
Charles Cazabon<[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
---



Re: pine Mailbox Can't open folder

2001-03-12 Thread Thomas Beer

Hi,
> mail-directory=Maildir

I wanna use Mailbox not Maildir.
 
> in /usr/local/lib/pine.conf.fixed
I've tried to edit my pine config before,
but - believe me - there isn't any config at all.
I've done a find -name "*pine*" and _no_ config
at all?!

> 
> I do not set the inbox-path (not sure why you would for maildirs, anyone
> know?), works fine for pine4.32 with patch-for-maildirs

Thanks for the help Tom




Re: pine Mailbox Can't open folder

2001-03-12 Thread Jason Kawaja

>I've tried to edit my pine config before,
>but - believe me - there isn't any config at all.

ok, so create one...

and like I said, you can put in Mailbox instead of Maildir

system wide configs (like this) should go either in
/usr/local/lib/pine.conf or /usr/local/lib/pine.conf.fixed

-- 

Regards,
Jason Kawaja, UF-ECE Sys Admin



Re: question with qmail-remote

2001-03-12 Thread Michael Boyiazis


> -Original Message-
> From: Peter van Dijk [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, March 11, 2001 7:15 AM
> To: [EMAIL PROTECTED]
> Subject: Re: question with qmail-remote
>
>
> On Sun, Mar 11, 2001 at 02:43:50PM +0100, Markus Stumpf wrote:
> > On Fri, Mar 09, 2001 at 10:41:36PM -0800, Rick Yang wrote:
> > > I recently installed qmail on my server with virtual
> domain support, and I found this snapshot while checking the
> processes.
> > >
> > > 1141 ?S  0:00 qmail-remote
> newsletter.join4free.com  [EMAIL PROTECTED]
> > >
> > > This domain was never allowed to relay on my qmail
> configuration. And it seems that this domain is trying to
> email his mailing list through my qmtp server.
> >
> > Why do you think it got relayed?
> > I'd say it's a bounce resulting from a SPAM to a non existing user.
> > The line indicated that the messsage will be delivered to
> > [EMAIL PROTECTED]  and the host it will be
> delivered to is
> > newsletter.join4free.com
> >
> > > How would I block off this domain through qmail configuration?
> >
> > Add
> > @newsletter.join4free.com
> > to
> > /var/qmail/control/badmailfrom
>
> Or unsubscribe the user. join4free are double opt-in spammers that let
> you unsubscribe honestly and easily.
>
> Greetz, Peter.

My observation of them is that they don't do a good job of collecting
bounces.
I have a crapload of them trying to get back to them which never quite do,
clogging my inbound mail server queues.

mail1.wlv.netzero.net# nslookup -type=mx newsletter.join4free.com
Server:  maildns.wlv.netzero.net
Address:  209.247.163.138

Non-authoritative answer:
newsletter.join4free.compreference = 5, mail exchanger =
returns2.optinmail.cc
mail1.wlv.netzero.net# telnet returns2.optinmail.cc 25
Trying 198.173.175.23...
Connected to returns2.optinmail.cc.
Escape character is '^]'.

and that's where things hang...(at least for 15 minutes beginning at 2:30pm
PST 3/12)

--
Michael Boyiazis
[EMAIL PROTECTED]
Mail Architect, NetZero, Inc.





Re: Qmail-Popup Problem

2001-03-12 Thread Keary Suska

That makes sense. It only seems to be the @home addresses that have trouble,
and the trouble seems to be intermittent (no problems today).

Thanks for you help.

-K

"Do not meddle in the affairs of wizards, for they are subtle and quick to
anger."


> From: "Paul J. Schinder" <[EMAIL PROTECTED]>
> Date: Sun, 11 Mar 2001 18:52:47 -0500
> To: Keary Suska <[EMAIL PROTECTED]>
> Cc: Qmail <[EMAIL PROTECTED]>
> Subject: Re: Qmail-Popup Problem
> 
>> Qmail-Popup is filling my logs with:
>> 
>> qmail-popup[29108]: warning: /etc/hosts.allow, line 8: can't verify
>> hostname: gethostbyname(c393514-a.grdjctn1.co.home.com) failed
>> 
>> It appears that every connection attempt log this message, but I can
>> nslookup without any problem, and tcpdmatch without any problem either. It
>> appears that this could be a TCP Wrappers problem but I can't duplicate it
>> with tcpdmatch, and it doesn't fail for other servers.
>> 
>> Anyone seen this before?
> 
> Yes.  @Home has a tendency to lose entries in one or both of their
> main DNS servers.  When this happens, you frequently get this kind of
> message from tcpwrappers.  I just ran a dnstrace on this address and
> it looks like it's back to normal; both 24.0.0.27 and 24.2.0.27 know
> the address.  Usually if you just wait a few hours, the problem gets
> fixed.  Heaven help you if they lose the entries permanently, which
> has happened to us twice  Their front line customer support people
> don't know what DNS is, and you have to argue with them for a while
> until you get kicked up the the second line people, who usually know
> about basic Internet services.
> 
>> 
>> -K
> 
> -- 
> --
> Paul J. Schinder
> NASA Goddard Space Flight Center
> Code 693
> [EMAIL PROTECTED]
> 




Re: pine Mailbox Can't open folder

2001-03-12 Thread Eric Pretorious

> > in /usr/local/lib/pine.conf.fixed
>I've tried to edit my pine config before,
>but - believe me - there isn't any config at all.
>I've done a find -name "*pine*" and _no_ config
>at all?!

Thomas:

There are two configuration files for pine:
  The personal configuration file: $HOME/.pinerc and
  The system-wide configuration file: /etc/pine.conf (location may vary by 
distro.)

I haven't had any success in modifying pine's behavior through changing 
these files either though.  :^(

Eric P.
Los Gatos, CA
_
Get your FREE download of MSN Explorer at http://explorer.msn.com




rc directory

2001-03-12 Thread Essy Ren

I'll try install qmail to my computer,
and I follow the instruction from INSTALL guide 
the problem is I don't find the rc direktori at /var/qmail/
There's only 
/alias
/bin
/boot
/control
/doc
/man
/queue
/users
Why it's gonna happen ? and should I make the directory by myself ?
thanks ... 





Re: Starting qmail from /etc/init.d/...

2001-03-12 Thread Eric Pretorious

>From: "Todd A. Jacobs" <[EMAIL PROTECTED]>
>Replace "daemon ${qmail}" with "csh -cf '/var/qmail/rc'" and see what
>happens. The fact that qmail doesn't run right from sh/bash is mentioned
>in the docs.

Replacing "daemon ${qmail}" with "csh -cf '/var/qmail/rc'" produces the same 
result: The command-line freezes after echoing "Starting qmail:".

Replacing "daemon ${qmail}" with "/var/qmail/qmail-start ./Mailbox splogger 
qmail" produces the same result: The command-line freezes after echoing 
"Starting qmail:".

What is the daemon function looking for from /var/qmail/rc? I don't believe 
that it's an exit status - I've tried appending "exit 0" and "exit 1" to the 
end of /var/qmail/rc but neither made a difference.

Eric P.
Los Gatos, CA
_
Get your FREE download of MSN Explorer at http://explorer.msn.com




Re: Starting qmail from /etc/init.d/...

2001-03-12 Thread Eric Pretorious

CORRECTION TO PREVIOUS MESSAGE: The lines "return 0" and "return 1" were 
appended to /var/qmail/rc - not "exit 0" and "exit 1".

>From: "Todd A. Jacobs" <[EMAIL PROTECTED]>
>Replace "daemon ${qmail}" with "csh -cf '/var/qmail/rc'" and see what
>happens. The fact that qmail doesn't run right from sh/bash is mentioned
>in the docs.

Replacing "daemon ${qmail}" with "csh -cf '/var/qmail/rc'" produces the same 
result: The command-line freezes after echoing "Starting qmail:".

Replacing "daemon ${qmail}" with "/var/qmail/qmail-start ./Mailbox splogger 
qmail" produces the same result: The command-line freezes after echoing 
"Starting qmail:".

What is the daemon function looking for from /var/qmail/rc? I don't believe 
that it's an exit status - I've tried appending "return 0" and "return 1" to 
the end of /var/qmail/rc but neither made a difference.

Eric P.
Los Gatos, CA
_
Get your FREE download of MSN Explorer at http://explorer.msn.com




Re: Starting qmail from /etc/init.d/...

2001-03-12 Thread Eric Pretorious

Actually, I tried both: "exit #" & "return #" and neither worked.

:^(

Eric P.
Los Gatos, CA


>From: "Eric Pretorious" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>CC: [EMAIL PROTECTED]
>Subject: Re: Starting qmail from /etc/init.d/...
>Date: Mon, 12 Mar 2001 17:42:37 -0800
>
>CORRECTION TO PREVIOUS MESSAGE: The lines "return 0" and "return 1" were
>appended to /var/qmail/rc - not "exit 0" and "exit 1".
>
>>From: "Todd A. Jacobs" <[EMAIL PROTECTED]>
>>Replace "daemon ${qmail}" with "csh -cf '/var/qmail/rc'" and see what
>>happens. The fact that qmail doesn't run right from sh/bash is mentioned
>>in the docs.
>
>Replacing "daemon ${qmail}" with "csh -cf '/var/qmail/rc'" produces the 
>same
>result: The command-line freezes after echoing "Starting qmail:".
>
>Replacing "daemon ${qmail}" with "/var/qmail/qmail-start ./Mailbox splogger
>qmail" produces the same result: The command-line freezes after echoing
>"Starting qmail:".
>
>What is the daemon function looking for from /var/qmail/rc? I don't believe
>that it's an exit status - I've tried appending "return 0" and "return 1" 
>to
>the end of /var/qmail/rc but neither made a difference.
>
>Eric P.
>Los Gatos, CA

_
Get your FREE download of MSN Explorer at http://explorer.msn.com




Re: rc directory

2001-03-12 Thread Kurth Bemis

At 08:39 PM 3/12/2001, Essy Ren wrote:

whats teh /alias for?  i think that you may have done a mkdir alias in / 
instead of /var/qmail.  did you read lifewithqmail?  read it at 
www.lifewithqmail.com :-)

~kurth

>I'll try install qmail to my computer,
>and I follow the instruction from INSTALL guide
>the problem is I don't find the rc direktori at /var/qmail/
>There's only
>/alias
>/bin
>/boot
>/control
>/doc
>/man
>/queue
>/users
>Why it's gonna happen ? and should I make the directory by myself ?
>thanks ...




Re: Starting qmail from /etc/init.d/...

2001-03-12 Thread Eric Pretorious

>From: Seth David Schoen:
>
> > >/var/qmail/rc
> > >=
> > >#!/bin/sh
> > >exec env - PATH="/var/qmail/bin:$PATH" \
> > >qmail-start ./Mailbox splogger qmail
>
>How about making this run qmail-start in the background?
>
>qmail-start ./Mailbox splogger qmail &
>
>You might want to do something about the output, if any.

Seth:

Many thanks!!! That's definitely an improvement: qmail now starts quietly 
and runs in the background.

What's left: To correctly report the status of starting-up. There may not be 
anything that can be done though. I guess that this functionality must come 
from the qmail-start binary? (It's possible to execute /var/qmail/rc 
multiple times thus effectively executing /var/qmail/bin/qmail-start 
multiple times without any complaint that qmail is already running.

Eric P.
Los Gatos, CA
_
Get your FREE download of MSN Explorer at http://explorer.msn.com




Re: rc directory

2001-03-12 Thread Peter Cavender



On Tue, 13 Mar 2001, Essy Ren wrote:

> I'll try install qmail to my computer,
> and I follow the instruction from INSTALL guide 
> the problem is I don't find the rc direktori at /var/qmail/
> There's only 
> /alias
> /bin
> /boot
> /control
> /doc
> /man
> /queue
> /users
> Why it's gonna happen ? and should I make the directory by myself ?
> thanks ... 


I think you are referring to the /etc/rc.d/init.d, or similar directory,
dpending on your distributionwhere are your start scripts
stored?  What distro are you using?

--Pete




Username @ host.

2001-03-12 Thread Grant

Are any mailer daemons case sensitive with regards to the username? Qmail
lets through any case username. Thanks.




Re: pine Mailbox Can't open folder

2001-03-12 Thread Eric Pretorious

The answer to this question is somewhat counterintuitive but it is in 
INSTALL.mbox file:

  * pine: Put "inbox-path=Mailbox" in your system-wide pine.conf...

I followed the example given in the pine.conf comments  - "...default is the 
local INBOX (/usr/spool/mail/$USER)" - and added "inbox-path=$HOME/Mailbox".

Eric P.
Los Gatos, CA

>From: "Eric Pretorious" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED], [EMAIL PROTECTED]
>CC: [EMAIL PROTECTED]
>Subject: Re: pine Mailbox Can't open folder
>Date: Mon, 12 Mar 2001 17:29:14 -0800
>
>> > in /usr/local/lib/pine.conf.fixed
>>I've tried to edit my pine config before,
>>but - believe me - there isn't any config at all.
>>I've done a find -name "*pine*" and _no_ config
>>at all?!
>
>Thomas:
>
>There are two configuration files for pine:
>  The personal configuration file: $HOME/.pinerc and
>  The system-wide configuration file: /etc/pine.conf (location may vary by
>distro.)
>
>I haven't had any success in modifying pine's behavior through changing
>these files either though.  :^(
>
>Eric P.
>Los Gatos, CA
_
Get your FREE download of MSN Explorer at http://explorer.msn.com




Slow SMTP and POP3 response (sorry, it's a long one)

2001-03-12 Thread Ahmad Ridha


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


Dear All,

We're currently migrating our server from sendmail+inetd (on Linux kernel 
2.2.13) to qmail+tcpserver.
It's generally done except for one thing. The SMTP and POP3 response is 
much slower than before.
What I mean by slower is about 50 seconds to nearly 2 minutes. It's not 
acceptable to most of our users.
The server is meant to provide mailing service to local network.  Following 
are the logs showing the fact.

/var/log/qmail/smtpd/current

2001-03-13 12:22:16.696959500 tcpserver: status: 0/20
2001-03-13 12:24:52.563739500 tcpserver: status: 1/20
2001-03-13 12:24:52.564019500 tcpserver: pid 2100 from 10.2.2.3
2001-03-13 12:26:50.742521500 tcpserver: ok 2100 :202.159.95.54:25 
:10.2.2.3::1130

/var/log/qmail/pop3d/current

2001-03-13 12:20:35.713440500 tcpserver: status: 0/40
2001-03-13 12:27:55.880273500 tcpserver: status: 1/40
2001-03-13 12:27:55.880431500 tcpserver: pid 2133 from 10.2.2.3
2001-03-13 12:29:12.100342500 tcpserver: ok 2133 :202.159.95.54:110 
:10.2.2.3::1151

I know that this is an FAQ but before flaming me please take a look what 
I've tried to do.
Here are my configuration (basically following LWQ):

Output of qmail-showctl (some are deleted but they are just default ones):

qmail home directory: /var/qmail.
user-ext delimiter: -.
paternalism (in decimal): 2.
silent concurrency limit: 120.
subdirectory split: 23.
user ids: 7790, 7791, 7792, 0, 7793, 7794, 7795, 7796.
group ids: 2108, 2107.

bouncehost: (Default.) Bounce host name is lsi.ipb.ac.id.
concurrencylocal: (Default.) Local concurrency is 10.
concurrencyremote: (Default.) Remote concurrency is 20.
databytes: (Default.) SMTP DATA limit is 0 bytes.
defaultdomain: Default domain name is ipb.ac.id.
defaulthost: (Default.) Default host name is lsi.ipb.ac.id.
helohost: (Default.) SMTP client HELO host name is lsi.ipb.ac.id.
idhost: (Default.) Message-ID host name is lsi.ipb.ac.id.
localiphost: (Default.) Local IP address becomes lsi.ipb.ac.id.
locals:
Messages for localhost are delivered locally.
Messages for lsi.ipb.ac.id are delivered locally.
Messages for perpus.ipb.ac.id are delivered locally.
Messages for pustaka.ipb.ac.id are delivered locally.
me: My name is lsi.ipb.ac.id.
plusdomain: Plus domain name is ac.id.
rcpthosts: (Default.) SMTP clients may send messages to any recipient.

perpus.ipb.ac.id and pustaka.ipb.ac.id are not yet registered to the 
machine (202.159.95.54) but lsi.ipb.ac.id is.
Relaying is controlled by tcpserver

/etc/tcp.smtp

202.159.95.54:allow,RELAYCLIENT=""
127.:allow,RELAYCLIENT=""
10.:allow,RELAYCLIENT=""

qmail-smtpd and qmail-popup use tcpserver and supervise

/var/qmail/supervise/qmail-smtpd/run

#!/bin/sh
QMAILDUID='id -u qmaild'
NOFILESGID='id -g qmaild'
MAXSMTPD='cat /var/qmail/control/concurrencyincoming'
exec /usr/local/bin/softlimit -m 200 \
 /usr/local/bin/tcpserver -v -p -R -H -x /etc/tcp.smtp.cdb -c 20 \
-u 7791 -g 2108  0 25 /var/qmail/bin/qmail-smtpd 2>&1

/var/qmail/supervise/qmail-smtpd/run

#!/bin/sh
exec /usr/local/bin/softlimit -m 200 \
   /usr/local/bin/tcpserver -v -R -H 0 110 /var/qmail/bin/qmail-popup \
   lsi.ipb.ac.id \
   /bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir 2>&1

As you can see I have tried using both options -R and -H which are usually 
advised for this kind of problem.

Our qmail start script is basically using the LWQ version with minor change 
to incorporate pop3d using supervise

|#!/bin/sh

- --deleted--

   pause)
- --deleted--
 echo "Pausing qmail-pop3d"
 svc -p /var/qmail/supervise/qmail-pop3d
 ;;
   cont)
- --deleted--
 echo "Continuing qmail-pop3d"
 svc -c /var/qmail/supervise/qmail-pop3d
 ;;
   restart)
- --deleted--
 echo "* Restarting qmail-pop3d"
 svc -u /var/qmail/supervise/qmail-pop3d
 ;;
- --deleted--

exit 0

I apologize for the length of this message but we're a bit stuck here. 
Thank you
in advance.

Regards,

Ahmad Ridha
<[EMAIL PROTECTED]>

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 7.0.3 for non-commercial use 

iQA/AwUBOq2sNq01M7MMw92qEQJm1gCg4REaoQ9aM0wJJRiK2NNNwCosXWIAn288
KwnB/DDdFElvja/Mcd1oy55e
=Yu4k
-END PGP SIGNATURE-




Re: Please help!!!

2001-03-12 Thread Sean Coyle

Mark,

Thank you for pointing out my error.  The process was in fact running
once per minute.

I do agree regarding the previous post for systematic elimination of
other possible problems, I was simply showing what might occur from stupid
typographical errors on the part of user/sysadmin.

Cheers,

Sean


Mark Delany wrote:

> On Mon, Mar 12, 2001 at 01:52:00AM -0800, Sean Coyle wrote:
>> Also, 
>> 
>> Another good thing to note:
>> 
>> I was having a serious problem with qMail delivering mail to end users,
>> however, mail was being stored in the queue (this was quite some time ago
>> now).  I had made a few changes to a crontab entry the day earlier, however;
>> everything was seemingly running normally with qMail.
>> 
>> Anyway, it turns out that I was running an INTENCE CRON job every single
>> second,
> 
> Are you sure about that? All the crons I've seen only let you run a
> job at most, once per minute. How did you get cron to run something
> once per second?
> 
> If the job runs at most once per minute, it's hard to imagine how it
> would consume all available resources such that qmail stopped
> delivering.
> 
> (Of course it's not impossible, but just unlikely: a job that runs for
> an hour that is started once per minute may well have a serious
> resource impact).
> 
>> Just an example of how a completely unrelated system event can alter the
>> performance of other items... (hrrmmm chaos mathematics anyone?)
> 
> Most likely the problem is much simpler and more directly related. As
> the earlier poster suggested a systematic process of elimination is
> the best approach.
> 
> 
> Regards.




POP mail not appearing in a session

2001-03-12 Thread Brett Randall

Maybe I'm just going crazy, but I am having stupid troubles with
qmail-pop3d.

I've got a server which has an NFS export (exporting /nfs/mail to *,
with rw, no_root_squash). I've got another server which mounts this
NFS share in the same location (/nfs/mail). Both servers are using NIS
and have exactly the same user information on both, and nsswitch.conf
both use nis first when looking for passwd and group.

Both servers start POP3 via:

/usr/local/bin/tcpserver 0 pop3  /var/qmail/bin/qmail-popup \
bigbird.domain.com /usr/local/bin/checkpassword \
/var/qmail/bin/qmail-pop3d Maildir &

Both servers appear to authenticate me without any problems when I
open a POP3 session, but only the one that has the NFS share locally
actually shows any mail. On both servers, I can type 'ls
~brett_remote/Maildir/new' (assuming brett_remote is the username that
is stored remotely but accessed via an NFS share), and I can see all
the new mail. But the POP3 daemon on the remote machine shows that I
have no mail.

For those that are wondering, the `remote' machine is a server located
in another part of the city in another set of offices. We allow
external pop access (ie REALLY external, like when they dial into
another ISP overseas) for all our staff, no matter which offices they
are located in, as long as they point their mail software to one
single POP3 server. This POP server then goes and grabs the mail via
NFS for the user. This is where the trouble is coming in.

Does anybody know why I would be able to access e-mail from the real
server, but not another one mounting it as an NFS share? I've never
had this problem before which is why I think I am going crazy... And
all the permissions are fine. That's not likely to be the problem
since the same NIS maps are on both servers.

TIA!
-- 
Calvin: I've been thinking, Hobbes
Hobbes: On a weekend?
Calvin: Well, it wasn't on purpose...



Re: rc directory

2001-03-12 Thread Paulus Hendarwan

You must copy the file /var/qmail/boot/home to /var/qmail/rc and then
change the Mailbox to Maildir/
And rc is not a directory.


Regards,
Paulus Hendarwan
---
Essy Ren wrote:

> I'll try install qmail to my computer,
> and I follow the instruction from INSTALL guide
> the problem is I don't find the rc direktori at /var/qmail/
> There's only
> /alias
> /bin
> /boot
> /control
> /doc
> /man
> /queue
> /users
> Why it's gonna happen ? and should I make the directory by myself ?
> thanks ...