Re: RELAYCLIENT

2001-07-27 Thread Clemens Hermann

Am 27.07.2001 um 14:35:17 schrieb Michele Schiavo:

Hi Michele,

> Who i can set up qmail to accept e-mail from a secific client?

depends on how you have setup qmail.

> I have RedHat 7.0 and qmail.
> I try to use the file /etc/hosts.allow for insert the list of my client

you can specify a group of hosts in /etc/hosts.allow and do not have to
list each single machine.
 
> can send e-mail but it don't work.

/etc/hosts.allow has nothing to do with qmail relaying. It's probably a
good idea not to list any host without knowing why.

> I try to change the /etc/xinet.d/smtp 

it is not recommended to use inet.d with qmail. You should use tcpserver
instead.

> in line server and server argument to 
> change tcp-env in tcpd and meke the file /etc/tcp.xxx. 

this is not for inet.d but for tcpserver. If you switch to tcpserver you
should:

a) create an /etc/tcp.smtp (or similar) and
b) build the /etc/tcp.smtp.cdb from this file

detailled information can be found on
www.palomine.net/qmail/selectiverelay.html

Good luck

/ch

-- 
"Contrary to popular belief, Unix is user friendly.
It just happens to be selective about who it makes friends with."



Re: Where's a good place to put a script to filter every mail

2001-07-26 Thread Clemens Hermann

Am 26.07.2001 um 14:17:22 schrieb Noel Mistula:

Hi,

> http://www.ornl.gov/its/archives/mailing-lists/qmail/2001/03/msg01041.html

wouldn't this script just spread a virus as the one that we now all know
very good over a mailinglist? If so, how could one avoid this?

tia

/ch

-- 
"Contrary to popular belief, Unix is user friendly.
It just happens to be selective about who it makes friends with."



who should get postmaster mails?

2001-06-21 Thread Clemens Hermann

Hi,

Who should get mails to [EMAIL PROTECTED]?
Is it someone in the organization that "owns" the domain e.g. postmaster
could be an alias to webmaster? Or should the postmaster of every hosted
domain point to the administrator of the mailsever?

tia

/ch



mini-qmail with smtp

2001-06-14 Thread Clemens Hermann

Hi,

in a small network I want to have one qmail machine where all the clients can send 
their mails via smtp. This machine then will forward the mails via smtp to the 
smarthost of my provider.
If I got it rigt, much of a "normal" qmail installation is not needed because no local 
delivery is necessary, the mails are just piped through the server.
There is one problem I have with mini-qmail: My Provider does not support qmtp. Can I 
just replace the according passages with smtp or will this lead into trouble?
Second: mini-qmail has no queue. What happens if more mails arrive than the server is 
able to deliver if there is no way to queue?
Is there somthing in the web that an advise me how to build the intended setup?

tia

/ch



Re: Using fetchmail with qmail

2001-05-20 Thread Clemens Hermann

Am 20.05.2001 um 12:31:16 schrieb Alexandre Goncalves Jacaranda:
> Hi everybody, How can I use fetchmail program with qmail ?

To fetch mail from a qmail server via pop3/imap fetchmail works right
out of the box.
To fetch mail and deliver it local into maildirs getmail might be the
right approach.

/ch



Re: authenticate Roaming Users

2001-05-15 Thread Clemens Hermann

Am 15.05.2001 um 13:06:16 schrieb Tony Vickers:

Hi Tony,

> What is the most practical way to allow users to rely mail after they
> authenticate? 

either one of the smtp-auth patches from qmail.org or without patching
smtp-after-pop (I recommend relay-ctrl from Bruce Guenter).

/ch



Re: HELP - newbie

2001-05-11 Thread Clemens Hermann

Am 12.05.2001 um 08:14:41 schrieb Pavel Sorejs:

Hi Pavel,

> I Using qmail with MySQL
> I did everything in LifeWithQMAIL 

afaik LWQ does not talk about MySQL, does it?

As it seems that you do not have long-time experience with qmail it
might make sense to follow LWQ *EXACTLY* to get a plain installation
that works. If this works and if you got at least a basic knowledge of
what is going on you could customize the setup, e.g. patch qmail to use
a MySQL Database to look up users.

bye

/ch



delete old mails

2001-05-08 Thread Clemens Hermann

Hi,

quite a while ago I read about a script that checks a maildir and
deletes any mail that is older than a specified time (e.g. 30 days).
I can not find it anymore :-(.

any hints

tia

/ch



Re: smtp auth. question through vmailmgr

2001-05-08 Thread Clemens Hermann

Am 08.05.2001 um 10:24:54 schrieb Evgeni Dobrev:

Hi Evgeni,

> Is there a posibility to enable smtp authentication through the vmailmgr?

not with the standard setup. The problem is that vmailmgr stores the
user-database in different home-directories, so you must have
root-access to read them.
Martin Gerardi offered the following solution on the vmailmgr list: 
use Eric M. Johnston's smtp-auth patch and set checkvpw suid-root.
I have now idea how secure this is, even Bruce did not make any
promises.
Any comments if this is good or bad are highly appreciated.

bye

/ch



sender Domain

2001-05-06 Thread Clemens Hermann

HI,

is there a way to only accept Mails that have one of my local/virtual Domains
either as sender or as recepient? I do not want to make relaying based
on this because I use smtp-auth and there it is possible to send mails
to otherdomain1.tld as sender otherdomain2.tld. 
I just want to prevent people who have a valid account from using my server 
to send mails with different adresses than the one that are hosted from me.

tia

/ch



Re: open BSD

2001-05-03 Thread Clemens Hermann

Am 03.05.2001 um 14:27:02 schrieb Essy Ren:

Hi,

> Can I use qmail in open BSD ?

yes. Afaik it is the system Dan uses himself.

/ch



qmail PAM

2001-04-17 Thread Clemens Hermann

Hi,

at the moment I am using the standard unix authentication (/etc/passwd). One
system-user for each Domain (vmailmgr). Now I plan to switch to pam but I
did not find anything about how I could integrate qmail. I would prefer it
to have the mail-users in a special file/database.
Sow do I have to modify qmail and if so - how?
Can anyone give me some hints how to integrate qmail into PAM?
I am using FreeBSD 4.2

tia

/ch




synchronize two maildirs

2001-04-12 Thread Clemens Hermann

Hi,

is there a common way to synchronize two maildirs? These are two
qmail-servers that both only offer imap to the outside. One is a dialin
proxy.
I had a look at Michael Elkins' isync but if I got it right it only
works if you use mutt as direct client and it might not work if the
mails are polled via imap.
Furthermore I thought of a synchronisation with unison. This would be a
two-way synchronisation of the files in the maildirs. Should one
encounter problems doing it this way because the mails never pass
qmail when they enter the system? The files are just copied into the
maildirs and if necessary deleted there. Is this a bad idea?

thanks for any hint

/ch



qmail smp

2001-04-01 Thread Clemens Hermann

Hi,

does qmail support systems with more then one processor (Intel)? If so, How
can I enable SMP-Support to really use both processors? Are there any
ressources about this issue on the web? I did not find any.

Thanks in advance for any hints

/ch




Re: Qmail on FreeBSD 4.2-STABLE

2001-02-04 Thread Clemens Hermann

Am 04.02.2001 um 18:07:15 schrieb Bruce Dang:

Hi Bruce

> What is wrong with qmail on FreeBSD 4.2?  

I don't know. I installed it from the ports. Before that I patched it
with the smtp-auth patch. After installation I made some adjustments to
have it run LWQ-like. I did not run into any Problems. I did not have a
close look at the situation before my adjustments but as far as I
remember you have to do a bunch of additional configuration anyway
before the qmail-port runs.

-regards

/ch



Re: Migrating from sendmail to qmail... help

2001-02-04 Thread Clemens Hermann

Am 04.02.2001 um 16:31:12 schrieb Ross Burton:

Hi Ross,

> I have installed qmail alongside sendmail and have tested it according
> to the install documents.  However, I do not know how to stop it sending
> mails to remote addresses every time it gets a message. 
> How can I make qmail replicate the behaviour I described above?

have a look at serialmail.

> Also: what issues are there with fetchmail? I only use it to filter
> mailing list messages, so is there another package which is more suited
> to qmail for this task?

Did not use it but - getmail. Fetchmail should also work under some
conditions, have a look at Life with qmail, there is a short section
about it. 

-regards

/ch



bind qmail-smtp to one IP-adress

2001-02-03 Thread Clemens Hermann

Hi

I have a machine with several IP-adresses assigned to it. I installed qmail
with LWQ. Now I want qmail to "listen" just on one IP. At the moment I
can connect on any IP. What about pop3d? Here I would like to achive the
same thing. Thanks in advance.

/ch



Re: qmail license

2001-01-26 Thread Clemens Hermann

Am 26.01.2001 um 08:39:04 schrieb Charles Cazabon:

Hi Charles,

> > this might seem like a stupid question but I really *did* bother quite a
> > while with the subject before asking here.
> 
> Except that this has been discussed to death many times in the past on the
> list.  

perhaps it might be an idea to lose some words about this in the
qmail-FAQ or on the website to avoid people (as mine ;-) asking the same
question over and over again.

> Look through the qmail list archives; you'll find everything you
> need there.

I did exactly this and I looked at the archive again for a long time
back. My Problem is this: DJB says as the first words in his statement 
about Software user's rights:

In the United States, once you own a copy of a program..
2 Problems:
a) I am not within the United States and the *much *bigger problem is:
b) When Do I own a copy of a program? If I burn a CD of M$ Windows I own
the CD but this still does not grant the right to me to use the program
on it. The part I need is: Where is said, that if I download qmail from
DJB's website, I *DO OWN* the copy of qmail? 
There are lots of examples where by just having the source of a pice of 
software you do not own this software by any means. You can even receive
the software legally but you are just not allowed to use them e.g. for
commercial purpose.
So: Where is said that I own qmail as soon as I download it? This would
be necessary to apply DJBs statement to any existing situation.

thanks in advance

/ch



qmail license

2001-01-26 Thread Clemens Hermann

Hi,

this might seem like a stupid question but I really *did* bother quite a
while with the subject before asking here. Someone else asked me what
exactly the qmail license ist about. So I was looking for "the license".
I searched LWQ and google but everything I found is a statement about
limitaions for qmail-distributors and DJB's opinion about licenses.
Well, This does no have something to do with the qmail license, does it?
Is there a statement anywhere on the aouthors website that grants the
right to use qmail for any purpose as long as you just do not
redistribute it? Is there a statement that qmail can be used free of
charge? I did not fint a hint in "Running qmail" either (but there I
might have overseen it).

thanks for any explanation

/ch



alias domain

2001-01-24 Thread Clemens Hermann

Hi,

I want to have an alias domain for an existing domain. I have several
mail users for my existiung domain and want to use the same users on my
new domain. E.g [EMAIL PROTECTED] shold automatically be accessible
via [EMAIL PROTECTED] Can I do this by just adding the new domain to
virtualdomains with the same user then the existing domain or is there a
better solution? I am also using vmailmgr.

thanks

/ch



Re: qmail problem ?

2001-01-20 Thread Clemens Hermann

Am 21.01.2001 um 00:19:14 schrieb Henning Brauer:

Hi Henning,

> > > What is qmail concurrency ?
> > it is a non-standard control file 
> 
> wrong. there are concurrencylocal and concurrencyremote, both standard
> control files.

sorry, I mixed up concurrency and concurrencyincomming. Taken this, at
least the other answers were correct ;-)

I did not use this myself, I just tried to proved some little help to
Nicolas and - now he got it, thanks to you ;-)

good n8

/ch



Re: qmail-queue

2001-01-20 Thread Clemens Hermann

Am 20.01.2001 um 22:05:42 schrieb NDSoftware:
> Hi,

Hi Nicolas,

> Can you send me a qmail-queue patched for use with qmail-scanner, 

why don't we try to get it to run on your computer? It might not be a
good idea to take a program from someone you do not know, sent to you per
mail. You can imagine yourself what could happen.

> because i have patched qmail-queue 

how did you do this? where did you download the patch? how did you call
patch (commandline). What did patch say?

> but the 2 files have the same size !

this is not necesarily a problem but very likely patch failed. Have a
look at the patched file and try to find the lines in the patch file.
Are they there?

regards

/ch



Re: qmail problem ?

2001-01-20 Thread Clemens Hermann

Am 20.01.2001 um 23:41:01 schrieb NDSoftware:

Hi Nicolas

> What is qmail concurrency ?

it is a non-standard control file introduced in LifeWithQmail. It is
used in the tcpserver call. It specifies the maximum numbers of the
qmail-smtpd processes that can run simultaniously. If not specified 
the default is 40.
Simply said it is the maximum number of smtp-connections that
can be made to your server.

Hopefully this helped

/ch



Re: qlogtools compile - error

2001-01-20 Thread Clemens Hermann

Am 20.01.2001 um 12:01:10 schrieb Clemens Hermann:

Hi,

sorry, I used the wrong make but now it does not work anyway:

gmake: *** No rules to make target 'qlogselect', needed by 'all'. Stop.

what is wrong? on my Debian it compiles perfect but not under FreeBSD

/ch



qlogtools compile - error

2001-01-20 Thread Clemens Hermann

Hi,

while trying to compile Bruce's qlogtools-package on my FreeBSD-Box I
get the error-message: 

gcc -g -o -multitail
gcc: No input files specified
*** Error code 1

gmake is installed.
any hints?

/ch



qmail logs - again

2001-01-20 Thread Clemens Hermann

Hi,

while trying to evaluate te qmail logs I have another problem: I want to
evaluate the logs daily. The result I want to have is to catch any mails
that pased the server in the time between the last time I run
qmailanalog and now. How do I know which "@..." log-files to take and
how can I avoid to evaluate an entry twice?

At the moment I am usn it like this

cat /var/log/qmail/* | tai64nfrac | matchup | /path/to/eval/script

what must I change to process any entry just once even during several
qmailanalog-runs?

thanks in advance

/ch



LWQ - Which log contains what?

2001-01-19 Thread Clemens Hermann

Hi,

I want to evaluate the logs that are generated within ma LWQ-Setup. I am
not really sure which log directory contains what.

/var/loq/qmail
/var/log/qmail/smtpd

As one might guess the smtpd directory might contain any message that
enters or leaves the mailserver via smtp, right? But what is in the
/qmail log-dir? Any mail that is processed, also the mails that do not
come/go via smtp? 
If I want to generate statistics and I use only the
logs in /var/log/qmail (and I skip the ones in the smtpd subdir) do I
then catch any mail that comes to/leaves/passes my server?

thanks

/ch



Re: who rotates the logs?

2001-01-19 Thread Clemens Hermann

Am 18.01.2001 um 14:31:26 schrieb Dave Sill:

Hi Dave,

> >yes I have and it is *exactly* what I need, but if I did not misread the 
> >docu, isoqlog uses syslog and I really would like to keep this away from
> >syslog.
> 
> Argh. You're right. I assumed it was based on multilog since syslog
> sucks so bad...

Anyway, as I did not get a response from the IsoQlog-People I ask you
one again: Can you imagine a way how to process multilog-mails with
IsoQlog (which needs Syslo-style-logs). Furthermore I likely run into
trouble because IsoQLog wants to rotate te logs on its own so I think
one would have to make sure each log-entry must only be passed once to
IsoQlog even when it gets processed several times.

Any Ideas?

Is there no ISP out that uses qmail and is interested which of his
domains uses the mailserver how much? I do not necessrily need all the
html-stuff, I just want to know in the end of the month who caused how
much traffic like this. 

DOMAIN  IN  OUT
domain1.tld 23MB143MB
domain2.tld 42MB879MB

This information is in the logs, how do I get it out? I do not offer any
smtp-servives for domains not located on the server (smtp-auth,
smtp-after-pop etc.) so I should be able to get perfectly correct
stats, schouldn't I?

/ch



Re: who rotates the logs?

2001-01-18 Thread Clemens Hermann

Am 18.01.2001 um 11:29:44 schrieb Matthew Patterson:

Hi Matthew,

> THE REASON THAT WE USE OPEN SYSTEMS IS BECAUSE IT MEANS WE ARE NOT RESTRICTED
> BY SOMEONE ELSE'S DECISIONS.

You are perfectly right. But qmail and its relatives are a rather
complex building if you really try to understand every detail. So if you
do not really know 100% what you are doing and you want to take time to
learn then it seams to be a good approach to configure it like a well
designed installation which is known to work.
Now it is the first time it *might* be possible that I have to leave
some parts of LWQ. But now everyone knows exactly what my setup looks
like and I cn get the best help possible this way.

bye

/ch



Re: who rotates the logs?

2001-01-18 Thread Clemens Hermann

Am 18.01.2001 um 09:02:52 schrieb Dave Sill:

Hi Dave,

> >I just use [multilog] because I want to stay as close as possible
> >with LWQ.
> 
> I think it's more important to use a configuration that does what you
> want than to use any particular "standard" configuration.

so far it did what I wanted ;-). As you might remember I did not really
follow LWQ on my first installation and the resulting problems could
have been avoided in following LWQ. I do not need much besides standard
qmail because I do all the configuration within vmailmgr/omail-admin.

> Have you looked at the isoqlog log analyzer?

yes I have and it is *exactly* what I need, but if I did not misread the 
docu, isoqlog uses syslog and I really would like to keep this away from
syslog. I contacted the programmer of isoqlog and asked for advice but
so far I did not get an answer (it is only a few hours ago I wrote)

thanks for your hints

/ch



Re: who rotates the logs?

2001-01-18 Thread Clemens Hermann

Am 18.01.2001 um 05:04:35 schrieb tc lewis:

Hi Tc,

> not much reason to use multilog if you're not going to use its rotation
> features, 

I just use it because I want to stay as close as possible with LWQ.

> unless you're using other features it possesses, like pattern
> matching or something.  i can't think of what self-rotation would be wiser
> than multilog, 

My problem is, that I have to pipe the multilog-logs to qmailanalog.
I need advice how to process the multilog-logs (all the different files
created) with qmailanalog on a monthly basis. 
All I need is a per-domain analysis of the Traffic caused for mails that 
contain the domain as sender or recipient.

any hints?

thanks a lot in advance

/ch



who rotates the logs?

2001-01-18 Thread Clemens Hermann

Hi,

who rotates the logs when using multilog? I did not find a manpage for
multilog. I want to avoid the automatic rotation and rotate the logs my
own. qmail is installed as described in LWQ.

thanks

/ch



LWQ and timestamp

2001-01-17 Thread Clemens Hermann

Hi,

I installed qmail as described in LWQ. As I try to evaluate the logs
with qmail analog I run into trouble because multilog does not have the
timestamps needed by qmailanalog. Can I just replace any multilog entry
with splogger or is this no good idea? Can I create the timestamps in
multilog in any way? Is there any information available about the log tools 
used with qmail and qmailanalog? 
Comaprison multilog/splogger etc.
The docu provided with the package is not that much ;-)

Thanks

/ch



qmailanalog scripts

2001-01-16 Thread Clemens Hermann

Hi,

did anyone make the attemt to get the output of qmailanalog in a
webpage. I think of kind of report-page where you get a short monthly
summary for each local/virtual domain (how many messages, how many Megs,
etc.)
If there is nothing like this around, would anyone else be interested in 
such a script or is it just me?

bye

/ch



synchronize 2 Maildirs

2000-12-23 Thread Clemens Hermann

Hi,

I have two computers (qmail, vmailmgr) which should synchronize their Maildirectories 
once one hour.
One of the computers (The authorative Mailserver) has a permanent
Internet connection and the other one (office) has a dialin ISDN connection.
The users shall be able to poll mails from the Server (Webmail, POP3,
etc.) and from the dialin-Sevrer (office).
Problem: when a mail is deleted on the office-server it should also be
deleted on the server as soon as the nex synchronization takes place and
not (!) transferred to the office again. The same vice versa.
The problem is: How does the synchronization program know if a missing
mail on one side was deleted there or not yet transferred.
Has anyone solved a similar problem?

thanks a lot in advance

Clemens



accept only mails from or for local domain

2000-12-19 Thread Clemens Hermann

Hi,

my config is: FreeBSD 4.2, qmail 1.03, smtp-auth.
my problem: I do not want my users to use a different "From-domain". 
Some people use their businnes-account for (heavy-traffic) private mail 
exchange. 
They simply replace their "[EMAIL PROTECTED]" with
"[EMAIL PROTECTED]" in their private Mailprogs.
smtp-auth makes it easy for them because they have a valid login.
So is there any possibility to reject any mail which does not contain my
local domain either as part of the sender adress or as part of the
recipient adress?

thanks for your hints

/clemens



Re: smtp-auth problem

2000-12-19 Thread Clemens Hermann

Am 19.12.2000 um 10:08:05 schrieb Clemens Hermann:

Hi,

Problem solved,

> /bin/true

is /usr/bin/true in FreeBSD ;-)

thanks for the help

/clemens



Re: smtp-auth problem

2000-12-19 Thread Clemens Hermann

Am 18.12.2000 um 18:13:49 schrieb Kris Kelley:

Hi Kris,

thanks for your help!

> It may be a matter of permissions.  When invoked from patched
qmail-smtpd,
> both checkpassword and cmd5checkpw do not have root access.
Therefore, they
> must be given permission to look at /etc/poppasswd.  One way to grant
this
> permission is to set /etc/poppasswd world writable, but obviously that
is
> NOT a good idea.

I did it as described in the INSTALL-file of cmd5checkpw

> The latest version of cmd5checkpw (0.22) handles both clear-text and
> CRAM-MD5 authentication schemes, so I would recommend using it
exclusively,

It is the version I use.

> for simplicity's sake.  Assuming you have 0.22, change your
> /var/qmail/supervise/qmail-smtpd/run file to look like this:
>
>  #!/bin/sh
>  QMAILDUID=`id -u qmaild`
>  NOFILESGID=`id -g qmaild`
>  exec /usr/local/bin/softlimit -m 200 \
>  /usr/local/bin/tcpserver -v -p -x /etc/tcp.smtp.cdb \
>  -u $QMAILDUID -g $NOFILESGID 0 smtp
/var/qmail/bin/qmail-smtpd
> \
>  /bin/cmd5checkpw /bin/true /bin/cmd5checkpw /bin/true

I changed it according to this example.

> Next, follow these instructions, taken from the cmd5checkpw INSTALL
file:
>
>  Now select a free user id in your system. Create that user in
> /etc/passwd
>  do "chown thatuser /etc/poppasswd" , "chmod 400 /etc/poppasswd",
>  "chown thatuser /bin/cmd5checkpw" and "chmod a+s
/etc/cmd5checkpw".
>  Of course replace "thatuser" with username of the user you have
> created.

I have done this when I installed cmd5checkpw. (I thing it should be
"chmod a+s /bin/cmd5ckeckpw" instead of "chmod a+s /etc/". If
Krzysztof is not reading the List I will drop him a note)

> This makes cmd5checkpw set itself to be owned by the same UID that
owns
> /etc/poppasswd, thus allowing it to read the file.

it should always have been able to read it, I double-checked te
permissions, they look like this:

-r 1 smtpauth smtpauth 10 Dec 19 09:51 /ec/poppasswd
-rwsr-sr-x 1 smtpauth smtpauth 22701 Dec 18 21:36 /bin/cmd5checkpw

it still does not work, still the same problem. I tried it with a system

user (included in /etc/passwd) and with a trest-user (not in /etc/passwd

but only in /etc/poppasswd) it worked in no case.

Thanks for your help

/Clemens







smtp-auth problem

2000-12-18 Thread Clemens Hermann

Hi,

I am having some trouble setting up Krzysztof Dabrowski's SMTP-AUTH
patch with qmail.
I applied the smtp-auth patch and it run through without errors.
I compiled qmail out of the ports collection af FreeBSD 4.2 and
according to LWQ.
qmail itsself seems to run o.k. (I tested it with telnet from local and
remote).
I also installed cmd5checkpw.
the mailserver (mail.mydomain.com) is correctly resolved on the server
and on the client.
My /etc/poppasswd looks like this:

--
user1:password
--

my /var/qmail/supervise/qmail-smtpd/run looks like this:

--
#!/bin/sh
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
exec /usr/local/bin/softlimit -m 200 \
/usr/local/bin/tcpserver -v -p -x /etc/tcp.smtp.cdb \
-u $QMAILDUID -g $NOFILESGID 0 smtp /var/qmail/bin/qmail-smtpd \

 /bin/checkpassword /bin/true /bin/cmd5checkpw /bin/true
--

I configured Netscape Communicater (4.75) on my remote machine like
this:

--
outgoing Mailserver: mail.mydomain.com
outgoing username:   user1
Use SSL:   never
--

If I try to send a Mail this way via my mailserver I am presented wit an
Netscape-auth-window in both cases, for recipients in the local domain
and for those in a foreign domain.
If I enter "password" when I am asked for the password for
[EMAIL PROTECTED] the password is not accepted and I am asked
again and again.

any ideas?
is there any information on qmail & smtp-auth available besides the
short description on the HP of the above patch?

thanks in advance for any hints

/Clemens




html log evaluation

2000-11-27 Thread Clemens Hermann

Hi,

is there a package out there which produces qmail HTML-statistics from
the logfiles? I have had a look at qmailmrtg but it does not semm to be
what I am looking for.
I have several virtual mail-domains and the most importent number I need
is the complete traffic per virtual domain per month which passed my mailserver.
Furthermore it would be great to have some statistics like amount per
user, etc.
Something similar to webalizer but not for a websserver but for qmail.

thanks in advance 

Clemens



necessary patches?

2000-11-27 Thread Clemens Hermann

Hi,

now I have been using qmail for several months and I am quite satisfied. I
change my server HW and for this and some other reasons I reinstall my
System from scratch (FreeBSD 4.2).
I have been digging around in the qmail.org page to find out which
patches are needed for me. I was really overwhelmed and I do not really
know much more than before ;-).
So my question is: Which patches should one not miss. 
I will make things as described in LWQ and I would appreciate it if I
could patch things during installation so that I do not have to apply
patches when the system is in use but I do not know which combination I
should use and (even more imortant): which combination works?
I know, depends on my needs ;-). Hmmm, I plan the following things:

POP3/SMTP (no imap, no qmtp)
smtp-after-pop and smtp-auth
tarpiting RBL
vmailmgr / omail-admin
omail
(if possible) POP3/smtp ssl optional
EZMLM

that's it ;-)
The load will be low.

Are there any hints which patches should be applied in general not
to be sorry some weeks later.

Thanks in andvance

Clemens



Re: SPAM - Help!

2000-10-27 Thread Clemens Hermann

Hi Tim,

> Well if he was denying the spammers ip it would stop any incoming mail, 

as I understood this is not a problem at all. The spamer uses a
different smtp server (perhaps his own serer ;-) but fakes the FROM: tag
so that bounces are directed to Ari's mailserver. For short there is no
way to stop the outgoing mail because you do not have access to the
server.

> for
> the mail still in the queue I would setup a .qmail for the "fake" user and
> redirect it to /dev/null

But if there is enough mail to this user this can be a continuing
problem for quite a while.
One way could be to block messages adressed to the user which appers in
the spammers FROM tag. This is theory I do not know how to do this but
perhaps some tcpserver experts know a way to avoid mails for a certain
adress to rech qmail.

/ch

> Problem solved, well except for contacting the spammers isp.
> 
> -Original Message-
> From: Daniel Augusto Fernandes [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 27, 2000 12:28 PM
> To: Tim Hunter
> Cc: Ari Arantes Filho; [EMAIL PROTECTED]
> Subject: Re: SPAM - Help!
> 
> Tim Hunter wrote:
> >
> > If your using tcpserver, you should be denying his connection.
> >
> > If not you should be, you need to check LWQ for a good reference.
> >
> 
> I think his problem is bigger than that! What I understood was that he's
> receiving bounce from lots of the spam destination servers.
> 
> 
> Daniel Augusto Fernandes (DAF tm)   [EMAIL PROTECTED]
> GCSNethttp://www.gcsnet.com.br/
> 
>  Se você não encontra
>  o sentido das coisas
>  é porque este não
>  se encontra, se cria.
>Antoine Saint-Exupéry
> 
> > -Original Message-
> > From: Ari Arantes Filho [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, October 27, 2000 11:38 AM
> > To: [EMAIL PROTECTED]
> > Subject: SPAM - Help!
> >
> > Hello,
> >
> > Someone is using another smtp server to send a very big spam, but they
> > write the header with FROM = an unknown user of one of my virtual domains,
> > so postmasters keep sending bounce messages or autoresponders to this
> > unknown user and my postmaster is receving more than 1 emails.
> >
> > I've temporary created this unknows user, but how can I stop this? I
> > can't remove the domain of my list of virtual domains because there are
> more
> > then 100 valid users to this domain...
> >
> > The spammer is from USA and I'm from Brazil, I don't known this f...
> >
> > I really need help!!!
> >
> > Thanks,
> >
> > Ari



Re: error compiling qmail Suse 6.4

2000-10-27 Thread Clemens Hermann

Hi Hans-Jürgen,

> wrong with it? Do you got any ideas?

no I don't. I am running qmail under SuSE 6.4. I installed it according
to LWQ.
If you want I can send you my compiled qmail via e-mail which hopefully
runs on your SuSE.

Furthermore you might have a look on Erwin Hoffmanns website for more
information on SuSE Linux & qmail (SuSE does not officially support
qmail but it runs quite well anyway ,-)

bye

/clemens



Re: Qmail Basics

2000-10-05 Thread Clemens Hermann

Hi Daniel

I was faced the same problem two months ago and I was provided with
great help from the list. My big problems were problems in the config
files. Especially your tcp-server problems seem to occur for this
reason. So I sent you my startup script for tcpserver. I have the same
Configuration as you so you should have not a big problem to adapt it to
your setup.

Just call it in the appropriate rc.x level and everything should be
fine.

The documentation you asked for is Dave sills Life with qmail. I think
you yet found it. When I had problems I was also looking for further
documentation but finally I discouvered that you could really everything
to work with LWQ.

hth

/ch



Re: roaming user

2000-09-29 Thread Clemens Hermann

Hi Petr,

I thought of a setup similar to what you described. It is no problem
when there is some delay in mail delivery and it is also no problem when
there gets mail downloaded for another 10 minutes after the user has
"gone home".

> Well, I would solve the problem differently.
> 
> I'd start up from POP-before-SMTP kind of set up.

sounds great.

> 1. fetchmail uses database of users "known to be present".

I will get this to run.

> 2. This database gets "aged" every now and then from a cron script.

I will use as plain textfile because there are not that much users. this
should simplify things a littele bit.

> 3. After a successful POP3 connection, you'd write "user xxx
> present" into the database.

exactly this is the point where I do not know how to do it. I get the IP
adress, but I do not know how to get the user. Can you give me a hint on
how to do this? 
If I know how to get the username from a pop3 connection written down in
a textfile I have solved my problem.

> A user would first connect by POP3 and learn that there's no new
> mail; then fetchmail would start up, download the e-mails also for
> this user (because his name is in the database); next POP3
> session would bring the user all his mails. - Some ten minutes
> after his last POP3 session, his name would get deleted from the
> database and mail would stay at the main server.

fits my needs perfectly

> If you can tune
> 1. how often fetchmail pulls

I can

> 2. how often user pop3-connects

I can

> 3. how often the database gets aged

I can - if I know how to catch the username from the POP3 connection.

> you can close the window (after last pop3 session, fetchmail might
> pick up user's mail once more, leaving it in your queue).

no Problem. If it was a problem I shorten the time between the calls and
so I can reduce the risk of fetching a mail which should stay on the
server. But this "Problem" does not matter at all at the moment.

Thanks for your help

Clemens



roaming user

2000-09-29 Thread Clemens Hermann

Hi,

my probem is a bit hard to describe, I hope I will make it :)
2 Mailservers, both qmail. One ist the "official" mailserver for the
domain, always online, official IP-adress. The other server is an
inhouse Mail-Proxy with dial on demand net-access.
At the moment the official mailserver recives all mail and the mail
proxy fetches all mails every 10 Minutes and deliveres them to the local
users.
Now I want to install webmail. The problem is, that fetchmail must not
fetch mail from users who are not in the office at the moment because in
this case the mails were not available on the webmail interface of the
official-mailserver in case the user wants to read his new mail from
somewhere else via the new webmail interface.
So now what do I want to do: Is there a way to fetch mail only for a
user when he/she contacts te local mailproxy via pop3? So I think of a
solution like tcpserver listens on the pop3-port and when a user los in,
tcpserver starts fetchmail for the appropriate user, fetches the mails
and dliveres it to the users maildir.
So only when local users open their mailprogramm to fetch
Internet-e-mail, fetchmail fetches the mail. When te user is not in the
office, his mailprog does not contact te local mailproxy ant the mail
stays on the official mailserver.

Hopefully anyone understood my problem. 

thanks in advance for any help

Clemens



several patches

2000-09-15 Thread Clemens Hermann

Hello again,

first of all, thanks once again to all of you who provided me with a large
variety of very helpful information yestarday.
At the moment I am looking at quite a hand full of qmail patches I would
like to use.  May there occur problems combinig different patches which run
great if they are alone?
If there are problems in interaction between different patches will I most
likely know this by a compile-error or might there be some problems which
occur at runtime or (even worse) create security problems?
Can I avoid these problems in patching the qmail sources manually?

thanks in advance

Clemens




comparison vmailmgr - inter7

2000-09-15 Thread Clemens Hermann

Hi,

there are two packages on the net fulfilling my needs - vmailmgr and the
inter7 suite.
Could one say that one of the two is "better"? So fare I use the "Bruce
Guenther way" for virtual mailusers but not his package (only "natural"
qmail) and I am really satisfied.
Now I need to choose one of the two tools but I am not sure which would be
the better choice for my purpose. It would be great if someone could give me
a hint, I need the following things:

virtual users
databases for users and aliases
pop access
imap access
quota support
html-mail-administration
webmail

I did not see webmail in the vmailmgr package, does sqwebmail run with the
vmailmgr without problems?
Thanks in advance for any advice which of the two I should use

Clemens




best combination

2000-09-14 Thread Clemens Hermann

Hi,

I am running qmail without any problems. No I want to install it on a
second server and need some more features. The features do exist all and
can be found on qmail.org but some tools seem not to work together with
others, etc.
It would be great if someone who in running a qmail-server including the
following featurese could give me a short response. I do not need any
detail, just a good and working combination of packages to fulfill the
needs.

besides standard features I need the following:

password- and alias- database.
webmail
virtual users (no system users)

there are some other things but I expect them to work. Who has
experience combining these things? Is there a tool including all three?

Thanks in advance

Clemens



Re: log database

2000-09-06 Thread Clemens Hermann

Hi sean,

> Here are a couple of benefits for throwing the logs into a database.
> 
> 1) You can be dumb and create killer reports using Crystal Reports. (IE your
> BOSS who dont know anything about qmail or unix)

this is one of the reasons. I want to be able to query the database and
generate HTML-Reports. I tend to use PHP4 because it seems to be
relatively easy to generate such reports this way for someone who is not
very experienced with databases

> 2) If you have more then one server then you have a central repository for
> all your logs.

I only have one server but my log directory keeps on growing and for
this reason I want to get all logs into a database. Now I have the
problem that I have to set up 5000 Mail accounts and it is absolutely
necessary to get monthly traffic reports. Furtermore it might come up
that the customers want to know more about the accounts and I suppose it
might finally be easier to geth this information in an HTML document
from a database than from very large text log-files.

anyway, I still would appreciate it to get a hint how to get the job
done. The problem is not to analyze the logs but to get them into a
database. The tools mentioned (e.g. qmail analog) work with textfiles
but when I have set up the database I can generate my own queries and do
not necessarily need the tool, right?
Ho should this be done best? 
No Text logs, only the database?
The text-logs get written into the database every few hours?
When should I get rid of old logs?
Thanks for any hint.

Clemens

> Sean
> 
> - Original Message -
> From: Bill Carlson <[EMAIL PROTECTED]>
> To: Clemens Hermann <[EMAIL PROTECTED]>
> Cc: qmail mailinglist <[EMAIL PROTECTED]>
> Sent: Wednesday, September 06, 2000 9:28 AM
> Subject: Re: log database
> 
> > On Wed, 6 Sep 2000, Clemens Hermann wrote:
> >
> > > Hi
> > >
> > > now I have been running qmail fore a while. The logs keep on growing,
> > > the mail-traffic increases. It now becomes necessary to evaluate the
> > > logs to know who produced how much traffic. There will be some thousand
> > > pop users and so I guess it might be a really good idea to put all the
> > > logs in a database and query the database for needed information.
> > > So I would be glad if someone could give me a hint on how to solve the
> > > following two problems:
> > > 1. How can I get the qmail logs into a database? Is there a wesite
> > > onthis issue? I really would like to use MySQL.
> > > 2. How do I generate a log analysis from the database (all the tools use
> > > textfiles). Any tool evaluationg the logs might be o.k.
> > >
> > > It would be great if anyone could give me a hint, website, etc.
> > >
> > > thanks a lot in advance
> >
> > 1. What purpose is there in having the logs in a MySQL database?
> > Aside from that, one could write a perl script to do just that.
> >
> > 2. You seek qmailanalog, which can be found at
> > http://cr.yp.to/qmailanalog.html, as well as qlogtools, at
> > http://em.ca/~bruceg/qlogtools/.
> >
> > Check http://www.qmail.org/ and do a find for 'log' or 'statistic', that
> > might turn up more than my cursory look.
> >
> > Later,
> >
> > Bill Carlson
> > 
> > Systems Programmer[EMAIL PROTECTED] |  Opinions are mine,
> > Virtual Hospital  http://www.vh.org/|  not my employer's.
> > University of Iowa Hospitals and Clinics |



log database

2000-09-06 Thread Clemens Hermann

Hi

now I have been running qmail fore a while. The logs keep on growing,
the mail-traffic increases. It now becomes necessary to evaluate the
logs to know who produced how much traffic. There will be some thousand
pop users and so I guess it might be a really good idea to put all the
logs in a database and query the database for needed information.
So I would be glad if someone could give me a hint on how to solve the
following two problems:
1. How can I get the qmail logs into a database? Is there a wesite
onthis issue? I really would like to use MySQL. 
2. How do I generate a log analysis from the database (all the tools use
textfiles). Any tool evaluationg the logs might be o.k. 

It would be great if anyone could give me a hint, website, etc.

thanks a lot in advance

Clemens



Re: assign multiple users

2000-08-29 Thread Clemens Hermann

Hello again,

I really would appreciate it if someone could give me a short hint
conderning my problem because I should continue adding some mail users.
If there is no solution to the problem the way I want it it would also
help me to know that it is impossible. In this case I really would
appreciate it to know some alternatives to solve the problem centralized
(not with single files in the maildirs).

Thanks in advance

Clemens

> Hi,
> 
> I do all my qmail mailadress-configuration via the /users/assign file.
> Is it possible to get all mails to a specified adresse delivered to two
> mailboxes? I know there are possibilities e.g. .qmail files but I really
> would love it to be able to configure it in my assign file. The only
> thing I want to have is one mailadresse being delivered into two
> distinkt mailboxes.
> 
> thanks in advance
> 
> Clemens



assign multiple users

2000-08-28 Thread Clemens Hermann

Hi,

I do all my qmail mailadress-configuration via the /users/assign file.
Is it possible to get all mails to a specified adresse delivered to two
mailboxes? I know there are possibilities e.g. .qmail files but I really
would love it to be able to configure it in my assign file. The only
thing I want to have is one mailadresse being delivered into two
distinkt mailboxes.

thanks in advance

Clemens



Re: mail size - mailbox quota

2000-08-24 Thread Clemens Hermann

Hi Charles,

> No, the system can't enforce it per-user if they aren't system users.
> Are you using a virtual domain manager package, like vmailmgr?  It has
> recently added quota-checking on a per-user basis.

no, I simply set it up as Paul gregg described it in his howto.
How can I solve the problem then?
Everything works fine, so I would not like to change to a complete
different package

Thanks

Clemens



costumizing messages

2000-08-24 Thread Clemens Hermann

Hi,

is there a way to customize the messages qmail sends? For emample to add
some lines in the language the recipients are most like expected to
speak?

I think of messages like this:

***

Hi. This is the qmail-send program at hiob.linuxlupe.de.
I'm afraid I wasn't able to deliver your message to the following
addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

***

Thanks

Clemens



mail size - mailbox quota

2000-08-24 Thread Clemens Hermann

Hi,

I am using qmail with virtual users.
Now I have two questions:

1. what is the best way to set a quota on the boxes? I would appreciate
it if there was a "centralized" way so that I would not be forced to put
a .quata file in any mailbox.

2. how can I set a maximum limit for incomming mails?

thanks

Clemens



Re: Pop3 for qmail

2000-08-24 Thread Clemens Hermann

Hi,

> Any startup script that is guaranteed to start when your system starts
> 
> Most people will stick it in the /etc/rc.d file

should qmail be started first or tcp server?

tanks

Clemens



Thanks to all of you

2000-08-23 Thread Clemens Hermann

Hi,

thanks to anybody who helped me this time. Finally I chose Chris' suggestion
because it was exactly what I needed and what ran out of the box with my
existing setup

By the way, I think now it is time to point out that I am really thankful
for the great help I received from many of you during the last weeks. I am
no Linux crack at all, I simply tried to set up a small webserver for a few
pages. Everything worked fin - except sendmail. I read two books about
sendmail and finally when I was trying to solve a relay problem I left
sendmail. I found the qmail webpage and tried to install it. Dave's LWQ
helped me a lot but without the help of you nothing would work now. The
first days with qmail were a bit frustrating, because I had some little
difficulties with te source installation and I made a typing error in one
script Dave suggested. In any case - when I asked for help here there was
not just one answer but alwas several. Any of them very detailled and
understandable for me. When I had an error I did not find, one of you loged
in my machine and led me to the error.
Now I have running qmail for a few days and I am really glad to have don the
step of switching to qmail. qmail is the package I really love on my server.
Although it runs really perfect now from any point of view I spend some time
in reading webpages aboput add ons and patches every day and my qmail
grows - every day a little bit.

Thanks again my friends thanks for all your great help.

Clemens




Re: password database

2000-08-23 Thread Clemens Hermann

Hi, Gjermund

Thanks for your offer to help me, Chris led me in his postiong to an
existing package which fits exactly my needs.

> Today, my server has roughly one million mail accounts and my current
> password authentication scheme is a bit more sophisticated,
> but that's another story.

If you have time I would greatly appreciate to hear a few lines about it. I
won't have any need the next years for this (I hope ;-) but anyway I really
would like to know what comes after a password database. No description how
(for me ;-) but if you like a few words what.

thanks

> Gjermund Sorseth

Clemens




password database

2000-08-22 Thread Clemens Hermann

Hi,

how can I use a password database instead of a textfile to authenticate
pop-users in qmail? There are some solutions I have seen, but I am using the
singel-user-id way described by Paul Gregg. Therefore I am using his
suggested version of checkpoppasswd
(http://www.tibus.net/pgregg/projects/qmail/checkpoppasswd.c). I really
would appreaceate to keep this password tool, because it has two nice
features I do not want to miss (nice loging and delaying after failed
login).
Now my question: how many users can be kept within a text passord file until
it gets slow?
is there a way to use my password tool with a database? the file used is
specified in the source (see url aboce) and I did not find any way to change
to a database.
If there is no possibility with this tool, what can I use instead - It must
work with the virtual users methode described in
http://www.tibus.net/pgregg/projects/qmail/single-uid-howto.html.

Thanks a lot

Clemens




Re: assign problem supplemental

2000-08-22 Thread Clemens Hermann

> Hi,

Hi,
 
>   Your virtualdomains shouldn't be in your ./control/local file ...

it isn't ;-)

thanks for the hint

> ...Ken

Clemens

P.S. the problem is solved ;-)







Re: assign problem supplemental

2000-08-21 Thread Clemens Hermann

Hi Andrew,

checking again and again the issues mentioned in your great and detailled
help instructions now the problem is solved. I even do not know what finally
caused the problem ;-). Everything seems to work now as I wanted it to.
Thanks again for your effort

Clemens




assign problem supplemental

2000-08-21 Thread Clemens Hermann

Hi,

seems as If my description did not get the point of my problem. Give me a
second try:

My /var/qmail/users/assign is this

+allesrabe-de:popuser:500:100:/var/qmail/popboxes/allesrabe-de/helmut:::
=haribeau:popuser:500:100:/var/qmail/popboxes/linuxlupe-de/haribeau:::
=neo:popuser:500:100:/var/qmail/popboxes/linuxlupe-de/haribeau:::
+wetterbestellung-de:popuser:500:100:/var/qmail/popboxes/wetterbestellung-de
/default:::
.

the first line delivers any Mail to @allesrabe.de into the Mailbox as
specified
the second and third line creats mail aliases for my local domain
(linuxlupe.de). This also works. the mails are delivered perfect in the
specified mailboxes.
the fourth line delivers any mail to @wetterbestellung.de into the specified
Mailbox.

so far so good.

What I now want to do is being able to create several virtual users for my
virtual domain allesrabe.de (as ist works yet for my local domain - see
second and third line in the config file above).

for this reason my /var/qmail/control/virtualdomains looks like this:

allesrabe.de:allesrabe-de
wetterbestellung.de:wetterbestellung-de

So I expected that when I change the first Line in my assign file from (as
above):

+allesrabe-de:popuser:500:100:/var/qmail/popboxes/allesrabe-de/helmut:::

to

=allesrabe-de-info:popuser:500:100:/var/qmail/popboxes/allesrabe-de/helmut::
:

only the mails adressed to [EMAIL PROTECTED] should be delivered to helmut's
mailbox, korrekt?
But this is not the case. after inserting this line no mail to
[EMAIL PROTECTED] is delivered anywhere. No errormessages or undelivery
mails are send neither.

wildcard assignment works if I try this:

+allesrabe-de-inf*:popuser:500:100:/var/qmail/popboxes/allesrabe-de/helmut::
:

now [EMAIL PROTECTED] is delivered to helmuts box, as everything
inf**@allesrabe is.

a wildcard assignment as follows is _not_ delivered:

+allesrabe-de-info*:popuser:500:100:/var/qmail/popboxes/allesrabe-de/helmut:
::

I really do not get the point where I am wrong. I rebuilt the database after
any change and for sure I restarted sendmail after changing my
virtualdomains file.

It would be great if anyone could help me

thanks in advance

Clemens







Re: assign problem

2000-08-21 Thread Clemens Hermann

> Clemens,

Hi Andrew,

> I think the answer to your problem is to change the line in
> your users/assign,
>
> +domain-com:username:uid:gid:userhomedir:::
>
> to,
>
> +domain-com:username:uid:gid:userhomedir:-::

hmmm, the "+domain-com:username:uid:gid:userhomedir:::" version works fine.
the "=domain-com-user:username:uid:gid:userhomedir:::" does not (equations
at the beginning of the line).
sorry if I posted my question not clear enough ;-)
my problem is that I want to deliver 5 different mailadresses belonging to
one virtual domain to 5 different mailboxes.
I ment this:

=domain-com-user1:username:uid:gid:user1homedir:::
=domain-com-user2:username:uid:gid:user2homedir:::
=domain-com-user3:username:uid:gid:user3homedir:::
=domain-com-user4:username:uid:gid:user4homedir:::
=domain-com-user5:username:uid:gid:user5homedir:::

the home dirs exist I do not get an error message bot the Mail is not
delivered.
What works perfectly (as I described in detail in my first mail) is the
delivery a la

+domain-com:username:uid:gid:user1homedir:::

but this way one user gets any mail for the complete domain, what is not
expected.

Next question: when I send a mail to [EMAIL PROTECTED] the sender
does not get an undelivery message as he would if domain.com was not virtual
but local.
That's bad.
Can I collect any non-deliverable messages in one Box?

> I'm not completely sure, however... (over to the people
> who *really* understand users/assign...)

thanks anyway ;-)

> cheers,

Clemens




assign problem

2000-08-20 Thread Clemens Hermann

Hi,

I have been working on a strange qmail-assign Problem the whole night and
hope someone can help me ;-)

qmail runs and works fine

all lines in qmail/control/virtualdomains are like this:

domain1.com:domain1-com
domain2.com:domain2-com
domain3.com:domain3-com
...

my problem is located in the /qmail/users/assign file

+domain-com:username:uid:gid:userhomedir:::

works perfect. any mail to [EMAIL PROTECTED] gets delivered to the home
directory specified in /users/assign.
but when I want to split the mailstream to different users and specify
mailadresses (info for example) as follows nothing works.

=domain-com-info:username:uid:gid:userhomedir:::

the only difference between those to "versions" is the + or = at the
beginning of the line and the "-info" existing or not!

I want to get all mails adressed to [EMAIL PROTECTED] being delivered to
info's home dir.
when I use

+domain-com-inf:username:uid:gid:userhomedir:::

it works, but then I can append whatever I want to inf
([EMAIL PROTECTED])and this is for sure not the way I am expected to
solve the problem (am I?)

I updated the database after any changes.
there is no error in syslog, I get no undelivery message but the message is
not delivered to the users Maildir.
I specified different users for the "real" (=not virtual) domain of my host
and everything works perfect. I have 4 users and anyone gets his mail as
expected in his distinct mailbox.
But with the virtual domains only a "evberything to one user" methode works.

thanks for your help

Clemens





relay-ctrl

2000-08-19 Thread Clemens Hermann


Hi,

after having successfully set up qmail I really start loving it  ;-).
The only way to get it secure for my purpose seemed to be a smtp after
Pop implementation. So I downloaded the relay-ctrl-2.0.tar.gz package
and installed it as described.
I changed the following lines in defines.h:

RULESDIR  "/etc"
TCPRULES  "/usr/local/bin/tcprules"
SMTPRULES "tcp.smtp"
SMTPCDB   "tcp.smtp.cdb"

I use POP3D via tcpserver and tcpserver with qmail-smtp. Everything
works fine locally.

When I pop the server, the IP of the client gets listed correctly in
/var/spool/relay-ctrl.
But it is not pssible to send any Mail wit a foreign adress even if the
adresse is listed there.

Thanks for any Help

Clemens



Re: alert: cannot start: qmail-send is already running

2000-08-16 Thread Clemens Hermann

Hi Petr

thanks for assisting me solving the problem.

> What command exactly do you use to spawn qmail? (I mean,
> you're obviously using svscan and supervise; 

yes, I made everything 100% as described in Dave Sills Life with qmail.
There it is described that way ;-)

> what does the
> DIR/run file look like? 

/var/qmail/supervise/qmail-send/run:

#!/bin/sh
exec /var/qmail/rc

/var/qmail/supervise/qmail-send/log/run:

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

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

#!/bin/sh
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
exec /usr/local/bin/softlimit -m 400 \
/usr/local/bin/tcpserver -v -p -x /etc/tcp.smtp.cdb \
-u $QMAILDUID -g $NOFILESGID 0 smtp /var/qmail/bin/qmail-smtpd
2>&1


/var/qmail/supervise/qmail-smtpd/log/run file:

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

exactly as described in LWQ

the /var/qmail/rc file looks like this:

#!/bin/sh

# Using stdout for logging

# Using control/defaultdelivery from qmail-local to deliver messages by
default

exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start "`cat /var/qmail/control/defaultdelivery`"

the /sbin/init.d/qmail start script is this one:

http://Web.InfoAve.net/~dsill/qmail-script-dt61.txt


> If it starts other file (like /var/qmail/rc), what
> does _that_ file look like? 

I hope I included everything you wanted in this reply. If not I did
anything as describen in LWQ.

> Please make sure that you're not putting
> anything into background ('&' at the end of the line) 

doesn't look like.
I took the files from LWQ by copy'n paste to make sure there is no
typing mistake

> - supervise
> thinks your program has died when it detaches and tries to
> respawn it.

thanks

Clemens



Re: alert: cannot start: qmail-send is already running

2000-08-16 Thread Clemens Hermann

Hi,

the error is up again. I rebooted, rebooted without starting qmail
before, nothing works. Whenever i start qmail (qmail start) it seems to
start o.k srvscan and loging and 2 seconds later the well nown error
message (see subject) is repeated over and over.
There still is no qmail-send process up before and I did not change
anything in the meantime.

Clemens



Re: alert: cannot start: qmail-send is already running

2000-08-16 Thread Clemens Hermann

> Hello Clemens,

Hi Erwin

thanks for your help
 
> Show us your process table: ps -aux | grep qmail

before qmail start the output is as follows:

username 767 0.0 0.3 1264 504 pts/0 S 14:18 0:00 grep qmail

after the qmail start

root   775  0.0  0.1  1012  308 pts/0S14:21   0:00 supervise
qmail-send
root   777  0.0  0.1  1012  308 pts/0S14:21   0:00 supervise
qmail-smtpd
qmaild 781  0.0  0.3  1232  584 pts/0S14:21   0:00
/usr/local/bin/tcpserver -v -p -x /etc/tcp.smtp.cdb -u 505 -g 101 0 smtp
/var/qmail/bin/qmail-smtpd
qmails 782  0.1  0.2  1068  396 pts/0S14:21   0:00
qmail-send
qmaill 786  0.0  0.1  1024  308 pts/0S14:21   0:00
/usr/local/bin/multilog t /var/log/qmail/smtpd
root   790  0.0  0.2  1024  324 pts/0S14:21   0:00
qmail-lspawn ./Maildir/
qmailr 791  0.0  0.1  1024  320 pts/0S14:21   0:00
qmail-rspawn
qmailq 792  0.0  0.2  1016  344 pts/0S14:21   0:00
qmail-clean
qmails1290  0.0  0.1  1056  316 pts/0S14:21   0:00
qmail-send
root  1292  0.0  0.1  1024  320 pts/0S14:21   0:00
qmail-lspawn ./Maildir/
qmailr1293  0.0  0.1  1024  320 pts/0S14:21   0:00
qmail-rspawn
qmailq1294  0.0  0.2  1016  340 pts/0S14:21   0:00
qmail-clean
root  1354  0.0  0.3  1268  512 pts/0S14:26   0:00 grep
qmail

strange thing: now the error message does no longer come up but in the
meantimeI did definitely not touch qmail. There are some other messages
about delivery problems now (I will make it I suppose ;-) but the
message complainig that the qmail-send process was already running
disappeared. As I said - I definitely did not touch anything!
What I was wonderin is the fact, that qmail-send was not running eiter
at times the error message came up.
Seems the output to be o.k. now?
Is it o.k. that any process appears twice?


> You may have a look at my Website. It includes some hints how to run qmail
> on SuSE linux. 

good hints. If allowed I will link to your page.
I plan to make my page a bit more expanded, include some "all in one"
scripts which manage the complete first installation. 

> An article on qmail based on my presentation at the GUUG
> will be published in the next issues of the GUUG-Nachrichten.

I am looking forward to this.

> cheers.

thanks

Clemens



alert: cannot start: qmail-send is already running

2000-08-16 Thread Clemens Hermann

Hi

Does anyone have an Idea where the message in the Subject could result
from?
I am working on getting up qmail on a SuSE system for 2 weeks now and
this one last problem seems to kill my effort. I asked for help in
comp.mail.misc, the SuSE groups and here some days ago but nobody could
help me. I made eyerything as described in Dave Sill's Life with qmail
but whenever I start qmail (qmail start) this message gomes up
repeatedly although qmail seems to work.
I plan to make a website including a description on setting up qmail on
SuSE Linux because there are some differences in starting qmail at
boottime etc.. There I will offer some "automation scripts" to make it a
bit easier for SuSE people to install qmail from the tarball.
But before this I would have to get rid of this last error.
I really do not know where else I should look.
If anyone is willing to he even can have ssh access to my test
environment.

thanks in advance

Clemens



Re: starting qmail-send

2000-08-14 Thread Clemens Hermann

Hi,

> What does your startup script look like? My guess is that it has an '&' at the
> end of it. If it does, take it out.

That is my script:



#!/bin/sh

# Using stdout for logging

# Using control/defaultdelivery from qmail-local to deliver messages by
default

exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start "`cat /var/qmail/control/defaultdelivery`"

*

the /sbin/init.d/qmail is as follows:

*

#!/bin/sh

PATH=/var/qmail/bin:/usr/local/bin:/usr/bin:/bin
export PATH

case "$1" in
  start)
echo -n "Starting qmail: svscan"
cd /var/qmail/supervise
env - PATH="$PATH" svscan &
echo $! > /var/run/svscan.pid
echo "."
;;
  stop)
echo -n "Stopping qmail: svscan"
kill `cat /var/run/svscan.pid`
echo -n " qmail"
svc -dx /var/qmail/supervise/*
echo -n " logging"
svc -dx /var/qmail/supervise/*/log
echo "."
;;
  stat)
cd /var/qmail/supervise
svstat * */log
;;
  doqueue|alrm)
echo "Sending ALRM signal to qmail-send."
svc -a /var/qmail/supervise/qmail-send
;;
  queue)
qmail-qstat
qmail-qread
;;
  reload|hup)
echo "Sending HUP signal to qmail-send."
svc -h /var/qmail/supervise/qmail-send
;;
  pause)
echo "Pausing qmail-send"
svc -p /var/qmail/supervise/qmail-send
echo "Pausing qmail-smtpd"
svc -p /var/qmail/supervise/qmail-smtpd
;;
  cont)
echo "Continuing qmail-send"
svc -c /var/qmail/supervise/qmail-send
echo "Continuing qmail-smtpd"
svc -c /var/qmail/supervise/qmail-smtpd
;;
  restart)
echo "Restarting qmail:"
echo "* Stopping qmail-smtpd."
svc -d /var/qmail/supervise/qmail-smtpd
echo "* Sending qmail-send SIGTERM and restarting."
svc -t /var/qmail/supervise/qmail-send
echo "* Restarting qmail-smtpd."
svc -u /var/qmail/supervise/qmail-smtpd
;;
  cdb)
tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp
chmod 644 /etc/tcp.smtp*
echo "Reloaded /etc/tcp.smtp."
;;
  help)
cat < Chris

Clemens



starting smail-send

2000-08-14 Thread Clemens Hermann

Hi,

I installed qmail as described in Dave Sills LWQ from the tarball on a
SuSE Linux 6.4 machine.

After playing around quite a while qmail almost runs but I have one last
problem:

when qmail starts I still get the following message:

Starting qmail: svscan.

2 seconds later there comes the following message up repeatedly:

alert: cannot start: qmail-send is already running
alert: cannot start: qmail-send is already running
alert: cannot start: qmail-send is already running

qmail seems to run, there are 5 qmail processes alive.
What can I do to get rid of this message? Something is strange with this
message because there was definitely no qmail process running before (ps
-A|grep qmail).

Thanks for your help

Clemens