Any pointers ?

2001-06-25 Thread Iain Morrison

I know this is not strictly on topic, but

I have qmail setup running with qmail-scanner, supervise  courier-imap on 
top of a bog standard RedHat 7.1 linux box (kernel 2.4.2 I think)

The problem I have is that when people are using imap to check mail I can 
only have about 40 connections at once to the server before it refuses to 
accept an more, I have about 80 - 90 connections are needed at all times on 
this system.

Any pointers as to what config file(s) I should alter to enable more 
concurrent user access to imap?

Any help is gratefully apprecated.

TIA, Iain Morrison
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Qmail internal domain routing?

2001-04-16 Thread Iain Morrison

Hi I hope you can point me in the right direction with this one.

I have setup qmail, qmail-scanner and courier imap on a test server, what we 
need to be able to do is only allow certain users access to external e-mail 
i.e. they can only send internally by default unless we let them do 
otherwise.

To further compound this I need to be able to setup 3 additional servers on 
our WAN for e-mail to our branch offices.

I was thinking that by assigning sub domains to the e.g. office1.domain.com 
etc... This would enable this to happen via DNS MX records. I would propose 
to have one system as the server that sends  receives all mail from the 
internet acting as a gateway for our internal network, scanning for viruses 
using qmail-scanner and mapping email for the few real e-mail address to 
their internal ones. But I am not sure how to limit only certain users to 
send mail outside whilst allowing unlimited e-mail internally i.e. across 
our WAN!

Any advice would be greatly appreciated.

Iain Morrison

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




RH 6.2 - qmail logging

2001-03-22 Thread Iain Morrison

I would just like to thank you all for your help in getting qmail running on 
my server.

Thanks everyone.

Iain Morrison
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Supervise logging - RH 6.2

2001-03-21 Thread Iain Morrison

Further to my various troubles with Qmail on RH 6.2, I have now managed to 
get the SMTP server running with supervise, the problem I have been left 
with is as follows!!!

The logging for Qmail is set to use multilog for both qmail-smtp and the 
qmail-send programs. Only trouble is that supervise is not able to start 
them for some reason so all logging goes to the console.

I have the following structure from LWQ setup in /var/qmail/supervise

located in /var/qmail/supervise/ qmail-smtpd -- /qmail-smtpd/log

The run file for smtpd logging is:

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



qmail-send - /qmail-send/log

The run file for the send part is:

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

When I do a /etc/rc.d/init.d/qmail stat I get the following message:

qmail-send: up (pid 602) 1290 seconds
qmail-smtpd: up (pid 604) 1290 seconds
qmail-send/log: unable to open supervise/ok: file does not exist
qmail-smtpd/log: unable to open supervise/ok: file does not exist

Any ideas???

Iain Morrison

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Trouble with qmail on Redhat 6.2

2001-03-20 Thread Iain Morrison

I am in the process of setting up qmail on a Redhat 6.2 Box 2.2.14-5.0 
kernel.

The problem is that I am unable to connect to the SMTP server even via the 
loopback address. When I telnet to port 25 I get connected but get a dead 
prompt.

I am able to inject mail for qmail to process and this works without any 
problems at all for local addresses and external addresses. I am able to 
retrieve mail via pop3 with no trouble, I just cant send it the SMTP server.

I have enclosed below the various startup and config files used for this 
system.

Any ideas are gratefully recieved.

TIA

Iain Morrison

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

Qmail RC file:

#!/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 above script uses the defaultdelivery file below:

./Maildir/

*-*-*

The qmail start script is below:

#!/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 HELP
   stop -- stops mail service (smtp connections refused, nothing goes out)
  start -- starts mail service (smtp connection accepted, mail can go out)
  pause -- temporarily stops mail service (connections accepted, nothing 
leaves)
   cont -- continues paused mail service
   stat -- displays status of mail service
cdb -- rebuild the tcpserver cdb file for smtp
restart -- stops and restarts smtp, sends qmail-send a TERM  restarts it
doqueue -- sends qmail-send ALRM, scheduling queued messages for delivery
reload -- sends qmail-send HUP, rereading locals and virtualdomains
  queue -- shows status of queue
   alrm -- same as doqueue
hup -- same as reload
HELP
;;
  *)
echo "Usage: $0 
{start|stop|restart|doqueue|reload|stat|pause|cont|cdb|queue
|help}"
exit 1
;;
esac

exit 0

*-*-*

The above qmail script uses svcscan to start qmail, the files are located in

/var/qmail/supervise - in the directories of qmail-smtpd  qmail-send (both 
directories have

a log directory in them, althugh it does not work!)

The run file for qmail-smtpd is:

#!/bin/sh
QMAILDUID='is -u qmaild'
NOFILESGID='id -g qmaild'
MAXSMTPD='cat /var/qmail/control/concurrencyincoming'
exec /usr/local/bin/softlimit -m 200 \
/usr/bin/tcpserver -v -p -x /etc/tcp.smtp.cdb -c "MAXSMTPD" \
 -u "$QMAILDUID" -g "$NOFILESGIS" 0 smtp /var/qmail/bin/qmail-smtpd 
21

The qmail-smtpd - log run file is:

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

The run file for qmail-send:

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

The qmail-send - log run file is:

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

*-*-*

After qmail has supposedly started up I have the following processes 
running:

PID TTY  STAT   TIME COMMAND
  415 ?S  0:00 svscan
  416 ?S  0:00 supervise qmail-send
  417 ?S  0:00 supervise qmail-smtpd
  418 ?S  0:00 /usr/bin/tcpserver -v -p -x /etc/tcp.smtp.cdb -c 
MAXS
  419 ?S  0:00 qmail-send
  426 ?S  0:00 qmail-lspawn ./Maildir/
  427 ?S  0:00 qmail-rspawn
  428 ?S  0:00 qmail-clean
  437 ?S  0:00 lpd



_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.