qmail Digest 13 Mar 2001 11:00:01 -0000 Issue 1302

Topics (messages 58896 through 58956):

Re: qmail-pop3d bug
        58896 by: Mark Delany
        58901 by: Vincent Schonau
        58902 by: Michael T. Babcock
        58904 by: Peter van Dijk
        58909 by: Kris Kelley

Re: Please help!!!
        58897 by: Mark Delany
        58948 by: Sean Coyle

Re: Virtual hosts
        58898 by: Pawel Garbowski

Re: Starting qmail from /etc/init.d/...
        58899 by: Noah Sematimba
        58939 by: Eric Pretorious
        58940 by: Eric Pretorious
        58941 by: Eric Pretorious
        58943 by: Eric Pretorious

Incoming / Outgoing Rules
        58900 by: Sumith

Re: Yet another weird POP3 problem
        58903 by: Bedel, Pierre

Mailwrapper not working
        58905 by: Alex Le Fevre
        58906 by: Peter van Dijk
        58908 by: Alex Le Fevre
        58914 by: Henning Brauer
        58916 by: Charles Cazabon
        58917 by: Alex Le Fevre
        58918 by: Henning Brauer
        58920 by: Alex Le Fevre
        58923 by: Henning Brauer

Re: traffic
        58907 by: Kris Kelley

check on valid user
        58910 by: gmo.gmx.de
        58912 by: Charles Cazabon

qmail and Solaris?
        58911 by: Roger Walker

Re: 2 questions
        58913 by: David Dyer-Bennet

POP3D Traffic
        58915 by: Estephano

Delay pop3
        58919 by: Desarrollo y Sistemas
        58922 by: Charles Cazabon

how do I check on a specific message delivery?
        58921 by: william f guyton jr
        58925 by: Aaron L. Meehan

pine Mailbox Can't open folder
        58924 by: Thomas Beer
        58927 by: Jason Kawaja
        58933 by: Thomas Beer
        58934 by: Jason Kawaja
        58937 by: Eric Pretorious
        58946 by: Eric Pretorious

Filter
        58926 by: Ari Arantes Filho

Relaying and changing servers
        58928 by: Ryan Pape
        58931 by: Charles Cazabon

Being verbose in error messages
        58929 by: Michael T. Babcock

move basic qmail directory
        58930 by: Jes�s Arn�iz
        58932 by: Charles Cazabon

Re: question with qmail-remote
        58935 by: Michael Boyiazis

Re: Qmail-Popup Problem
        58936 by: Keary Suska

rc directory
        58938 by: Essy Ren
        58942 by: Kurth Bemis
        58944 by: Peter Cavender
        58950 by: Paulus Hendarwan
        58953 by: Peter van Dijk

Username @ host.
        58945 by: Grant

Slow SMTP and POP3 response (sorry, it's a long one)
        58947 by: Ahmad Ridha
        58951 by: Andrew Richards
        58952 by: Ahmad Ridha

POP mail not appearing in a session
        58949 by: Brett Randall

How to unsuscribe?
        58954 by: Sergio Saugar Garc�a

MAXIMUM NUMBER OF RECIPIENTS/MAIL
        58955 by: qmailu
        58956 by: Peter van Dijk

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]


----------------------------------------------------------------------


> > 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,10000
> 
> From reading <URL: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.





On Mon, Mar 12, 2001 at 11:03:33AM +0000, 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.





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/







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.




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





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.




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.





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]




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
> 
> 





>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





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





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





>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





Hello All
 
Isn't there a easier way of sending a copy of all outgoing mails from Qmail..than what is mentioned in the FAQ....I 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.




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.

**********************************************************************




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/




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.




> 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/




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




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.
-----------------------------------------------------------------------




> 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/




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




> 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/




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




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





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





[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.
-----------------------------------------------------------------------




        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                         <http://www.rat-hole.com>
Voice/Fax 1-780-440-2685             <http://www.man-from-linux.com>
"HIS Pain; YOUR Gain"                <http://www.rope.net>
<http://www.rope.net/signature.html>





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/




Hello.

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

Thanks in advance
S. Winter




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





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.
-----------------------------------------------------------------------




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





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




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:

@400000003aad24ea1bd07db4 info msg 224657: bytes 204 from
<[EMAIL PROTECTED]> qp 10101 uid 0
@400000003aad24ea1c292cd4 starting delivery 1: msg 224657 to local
[EMAIL PROTECTED]
@400000003aad24ea1c297edc 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






I set :

mail-directory=Maildir

in /usr/local/lib/pine.conf.fixed....I 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




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





>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




> > 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





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





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






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.





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.
-----------------------------------------------------------------------




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/







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]





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.
-----------------------------------------------------------------------





> -----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.com        preference = 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.






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]
> 





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 ... 






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 ...







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 distribution....where are your start scripts
stored?  What distro are you using?

--Pete





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 ...





On Mon, Mar 12, 2001 at 09:19:11PM -0500, Kurth Bemis wrote:
> 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 

His listing was /var/qmail. The alias dir is correct.

Greetz, Peter.




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






-----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 2000000 \
     /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 2000000 \
   /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 <http://www.pgp.com>

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





Ahmad,

Without reading your message in detail, this sounds like
one of the FAQs - checkout the -H, -R and -l (That's a
lower-case L) options to tcpserver: Your system is
probably failing on ident or DNS lookups.

Dig around in the archives for more info (keywords:
slow, tcpserver).

cheers,

Andrew.

----------
From:   Ahmad Ridha[SMTP:[EMAIL PROTECTED]]
Sent:   13 March 2001 05:11
To:     [EMAIL PROTECTED]
Subject:        Slow SMTP and POP3 response (sorry, it's a long one)


-----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 2000000 \
     /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 2000000 \
   /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 <http://www.pgp.com>

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








-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

At 09:18 AM 03/13/2001 +0000, Andrew Richards wrote:
>Ahmad,
>
>Without reading your message in detail, this sounds like
>one of the FAQs - checkout the -H, -R and -l (That's a
>lower-case L) options to tcpserver: Your system is
>probably failing on ident or DNS lookups.
>
>Dig around in the archives for more info (keywords:
>slow, tcpserver).

It's finally done. As you can see in my previous mail I've used the -R and 
- -H options to
tcpserver because they're usually suggested to such a problem (after digging
a while). I just added the -l option and my server is now responsive fast 
enough.
I guess I didn't dig long enough. Thanks.

Regards,

Ahmad Ridha
<[EMAIL PROTECTED]>


-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBOq3p9601M7MMw92qEQI2sQCZARiB2qX+RGkU8Hi3F31SOkS6h8oAn3uM
jbsNampUXvdopGBqGe4t9K8V
=FSm6
-----END PGP SIGNATURE-----





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...










Hi,
 
How do I restrict the maximum number of recipients/mail and how do I restrict maximum number of mails/transaction ?
 
Raghu




On Tue, Mar 13, 2001 at 04:01:23PM +0530, qmailu wrote:
> Hi,
> 
> How do I restrict the maximum number of recipients/mail and how do I restrict 
>maximum number of mails/transaction ?

Do you think you can get rid of the capital letters?

Greetz, Peter.


Reply via email to