checkhab script

2001-07-27 Thread Tony Campisi

My apologies for using Outlook Express.

From Noel Mistula's checkHAB script
http://www.ornl.gov/its/archives/mailing-lists/qmail/2001/03/msg01041.html
# Read about qmail-inject to customize this line.
 /var/qmail/bin/qmail-inject [EMAIL PROTECTED]
[EMAIL PROTECTED]  $tmpfile

Has anyone else used this script, and if so, can you share with me how this
line looks in your configuration?

thanks,






Re: A firestorm of protest?

2001-01-16 Thread Tony Campisi

: I vote for "source code plug-ins". :-)
:
: -Dave
:

Service pack 0.1 Beta?

TonyCam






Re: Strange Problems with tcprules.

2000-08-29 Thread Tony Campisi

I got 4. Do I win something?

From Mr. Sill,
"1) Post the message multiple times. "

tony:campisi





Improper message removal

2000-08-10 Thread Tony Campisi

This was brought up yesterday and I know what to do next time. I am one of
the people that forcibly removed a message from the queue without properly
stopping qmail.

When I run Russ' qsanity it tells me:
message has no entry in info: 256004
message is neither local nor remote: 256004
message has no entry in info: 256015
message has no entry in mess: 256015
..
My logs are showing these quite regularly.
2000-08-10 09:29:45.582458500 warning: trouble opening local/0/256013; will
 try again later
2000-08-10 09:30:20.752585500 warning: trouble opening info/2/256015; will
try again later
2000-08-10 09:30:42.762486500 warning: trouble opening remote/12/256002; wi
ll try again later

My question. Will these messages, which aren't really there, be bounced to
me eventually?
If queue-fix-1.4 will fix this, I will run it tonight.

*OR* my question before I read the "How to annoy People"
My gear be broken. What now? :)

Thanks,
tonyC






Re: Help! Post vpopmail install, everything bounces

2000-08-09 Thread Tony Campisi

 I ran ./configure, then had someone at the site reboot the mail server.
 It works.
=
If you ran a ./config you might want to re-check your /control/locals and
/control/rcpthosts. I did that the other day and it removed the information
I had in it.

HTH,
tonyC




qmailanalog for dummies

2000-08-08 Thread Tony Campisi

Our qmail server has been up for 2 days and everything is working fine. I
would like to use qmailanalog to analyze activity.
I have read through the archive but need more answers.
I installed qmailanalog-0.70

:From an archived message:
awk '{$1="";$2="";$3="";$4="";$5="";print}' /var/log/maillog \
 | matchup \
  processed_log

My 'processed_log' is an empty file I created - /var/log/qmail/analog
I want to analyze my /var/log/qmail/current file.

awk '{$1="";$2="";$3="";$4="";$5="";print}' /var/log/qmail/current |
/usr/local/qmailanalog/bin/matchup  /var/log/qmail/analog

The above is all on one line

After running the above, my 'analog' file has data in it like,

?  3317 from qmail-return-51885-tony.campisi=cardinalservices.com@list
?  256010 to local [EMAIL PROTECTED]
?
?  1908 from qmail-return-51884-tony.campisi=cardinalservices.com@list
?  256010 to local [EMAIL PROTECTED]
?  0/40
?
?  0/40

When I try
/usr/local/qmailanalog/bin/zoverall  /var/log/qmail/analog
I get

One line per recipient. Information on each line:
* sbytes is the number of bytes successfully delivered to this recipient.
* mess is the number of messages sent to this recipient (success plus failu
re).
* tries is the number of delivery attempts (success, failure, deferral).
* xdelay is the total xdelay incurred by this recipient.

sbytes  mess  tries  xdelay  recipient

There is no information under these headers. Can someone please tell me what
I'm doing wrong.

TIA,
Tony Campisi





Re: qmail-unsubscribe

2000-08-07 Thread Tony Campisi

--- Here are the ezmlm command addresses.

I can handle administrative requests automatically.
Just send an empty note to any of these addresses:

   [EMAIL PROTECTED]:
   Stop receiving messages.

   [EMAIL PROTECTED]:
   Retrieve a copy of message 12345 from the archive.

DO NOT SEND ADMINISTRATIVE REQUESTS TO THE MAILING LIST!
If you do, I won't see them, and subscribers will yell at you.

and subscribers will yell at you,
Tony Campisi





Failure Notice

2000-08-05 Thread Tony Campisi
 with SMTP; 5 Aug 2000 16:36:26 -
Received: (qmail 20815 invoked from network); 5 Aug 2000 16:36:23 -
Received: from unknown (HELO ns.cardinalservices.com) (209.192.74.2)
  by 192.168.1.253 with SMTP; 5 Aug 2000 16:36:23 -
Received: (qmail 20812 invoked from network); 5 Aug 2000 16:36:21 -
Received: from unknown (HELO ns.cardinalservices.com) (209.192.74.2)
  by 192.168.1.253 with SMTP; 5 Aug 2000 16:36:21 -
Received: (qmail 20809 invoked from network); 5 Aug 2000 16:36:18 -
Received: from unknown (HELO ns.cardinalservices.com) (209.192.74.2)
  by 192.168.1.253 with SMTP; 5 Aug 2000 16:36:18 -
Received: (qmail 20806 invoked from network); 5 Aug 2000 16:36:16 -
Received: from unknown (HELO ns.cardinalservices.com) (209.192.74.2)
  by 192.168.1.253 with SMTP; 5 Aug 2000 16:36:16 -
Received: (qmail 20803 invoked from network); 5 Aug 2000 16:36:14 -
Received: from unknown (HELO ns.cardinalservices.com) (209.192.74.2)
  by 192.168.1.253 with SMTP; 5 Aug 2000 16:36:14 -
Received: (qmail 20800 invoked from network); 5 Aug 2000 16:36:11 -
Received: from unknown (HELO ns.cardinalservices.com) (209.192.74.2)
  by 192.168.1.253 with SMTP; 5 Aug 2000 16:36:11 -
Received: (qmail 20797 invoked from network); 5 Aug 2000 16:36:08 -
Received: from unknown (HELO ns.cardinalservices.com) (209.192.74.2)
  by 192.168.1.253 with SMTP; 5 Aug 2000 16:36:08 -
Received: (qmail 20794 invoked from network); 5 Aug 2000 16:36:06 -
Received: from unknown (HELO ns.cardinalservices.com) (209.192.74.2)
  by 192.168.1.253 with SMTP; 5 Aug 2000 16:36:06 -

snipped

I send mail to myself from my account, but I don't recieve it. Here's what
it says in /var/log/qmail/current:

@4000398c422b2732919c new msg 256005
@4000398c422b2732cc34 info msg 256005: bytes 10540 from tony.campisi@c
ardinalservices.com qp 20665 uid 771
@4000398c422b2747e68c starting delivery 4118: msg 256005 to remote tony
[EMAIL PROTECTED]
@4000398c422b27481954 status: local 0/20 remote 2/20
@4000398c422b2ba18c4c delivery 4117: success: 209.192.74.2_accepted_mes
sage./Remote_host_said:_250_ok_965493281_qp_20665/
@4000398c422b2ba1d684 status: local 0/20 remote 1/20
@4000398c422b2ba1f1dc end msg 256002
@4000398c422d32d9cca4 delivery 4118: failure: 209.192.74.2_failed_after
_I_sent_the_message./Remote_host_said:_554_too_many_hops,_this_message_is_l
ooping_(#5.4.6)/
@4000398c422d32da2a64 status: local 0/20 remote 0/20
@4000398c422d33524864 bounce msg 256005 qp 20669
@4000398c422d33551724 end msg 256005

It looks like its doing this for every mail that is being sent to any of our
users. I'm in dire need here. Please help me understand what I'm doing
wrong. Please reply to the [EMAIL PROTECTED] account.

Thanks,
Tony Campisi





Re: Failure Notice

2000-08-05 Thread Tony Campisi



 Your test email is addressed to a user at cardinalservices.com.
 Cardinalservices.com isn't listed as in your local files, so it's not
 getting delivered locally.  I think you need to add
 cardinalservices.com to control/locals.
=
I added cardinalservices.com to control/locals and it looks like mail is
flowing nicely!
ns.cardinalservices.com was in there and I removed it. I then kill -HUP the
qmail-send process. Can someone tell me if having cardinalservices.com and
ns.cardinalservices.com living together in locals will effect anything?


 There may have been a previous bounce attempt that failed; do you have
 aliases for root and postmaster set up?
=
Yes, root and postmaster were set up following the EXCELLENT Life with qmail
guide. :)


 There are a couple of anomalies that I don't feel I fully understand,
 so I'm not 100% confident in this diagnosis.

 Putting in the showctl output, log lines, and bounce message werre all
 necessary for me to make any serious attempt to analyze this problem.
 Good job figuring out what was useful to include!  Oh, and I also made
 use of the fact that you *didn't* obscure the domain names to check
 out a couple of things.  Lurkers planning to ask for help soon, use
 Tony's message as an example of how to do it!

I'm blushing David. Thanks for the praise. Note to the Lurkers:
http://www-archive.ornl.gov:8000/
Hooked on qmail works for me.

Thank You David,
Tony Campisi




Permissions Dilemma?

2000-07-21 Thread Tony Campisi

When I set up my Sendmail box last year I added all of my users in
'userconf' as POP accounts (mail only). Approx 250. As I'm attempting to add
Maildir folders under their /home/name directories, I cannot chown Maildir.
For example:

drwx--   5 root popusers 1024 Jul 21 11:22 Maildir
[root@mail2 /home/al.koch]# chown -R al.koch /home/al.koch/Maildir
chown: al.koch: invalid user

Will I have to remove all my users and add them as regular users?

thanks,
tony.campisi







Re: Permissions Dilemma? FIXED!

2000-07-21 Thread Tony Campisi

 Try chown -R al.koch: /home/al.koch/Maildir
 ^--- colon there
 
 It may or may not work. Colon is now the preferred separator between
 user and group, but historically the dot has been used for that, and
 so it's still supported for compatibility.
===
chown -R al.koch: /home/al.koch/Maildir WORKS!
drwx--   5 al.koch  popusers 1024 Jul 21 11:22 Maildir

Another person on the X-mas list. Thanks to Armando as well! woo hoo

tony.campisi




Urgent Help Needed

2000-07-18 Thread Tony Campisi

This evening I attempted to bring up my companys qmail server. Things are
not going well.
I installed these packages
checkpassword-0.81
daemontools-0.70
qmail-1.03
ucspi-tcp-0.88
I am starting POP in a different way. I created a
/var/qmail/supervise/qmail-pop3d/run file like this:

#!/bin/sh
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
exec /usr/local/bin/softlimit -m 200 \
/usr/local/bin/tcpserver -v -R 0 pop3 /var/qmail/bin/qmail-popup
mailperson.cardinalservices.com \
/usr/local/bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir 21

I made sure that 'pop3' is in /etc/services
stopped sendmail - /etc/rc.d/init.d/sendmail stop
made my aliases for postmaster and such.
I removed these lines from /etc/inetd.conf

completely REMOVED these lines
# do not uncomment smtp unless you *really* know what you are doing.
# smtp is handled by the sendmail daemon now, not smtpd.  It does NOT
# run from here, it is started at boot time from /etc/rc.d/rc#.d.
#smtp   stream  tcp nowait  root/usr/bin/smtpd  smtpd
#nntp   stream  tcp nowait  root/usr/sbin/tcpd  in.nntpd

pop-2   stream  tcp nowait  root/usr/sbin/tcpd  ipop2d
#pop-3   stream  tcp nowait  root/usr/sbin/tcpd ipop3d
pop-3  stream  tcp nowait  root/usr/sbin/tcpd  popper -sR
#pop-3   stream  tcp nowait  root/usr/sbin/tcpd in.qpopper
imapstream  tcp nowait  root/usr/sbin/tcpd  imapd

and rebooted the server. After reboot I do a ps waux | grep qmail

qmaild /usr/local/bin/tcpserver -v -p -x /etc/tcp.smtp.cdb -u 771 -g 730
0 smtp /var/qmail/bin/qmail-smtpd
qmaill /usr/local/bin/multilog t !tai64nlocal /var/log/qmail
qmaill /usr/local/bin/multilog t !tai64nlocal /var/log/qmail/smtpd
qmaill /usr/local/bin/multilog t !tai64nlocal /var/log/qmail/pop3d
qmailq qmail-clean
qmailr qmail-rspawn
qmails qmail-send
root   supervise qmail-send
root   supervise qmail-smtpd
root   supervise qmail-pop3d
root   /usr/local/bin/tcpserver -v -R 0 pop3 /var/qmail/bin/qmail-popup
mailperson.cardinalservice
s.com /usr
root   qmail-lspawn ./Maildir/

As I attempt to gather my mail through Outlook Express, it prompts me for
password. I try multiple accounts with no luck. My password is rejected.
That's odd. I just checked the line in the above script
/usr/local/bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir 21
I did a 'locate checkpassword' and it showed it in /bin, and I changed the
script, but my password still isn't good. Any Ideas?

On top of that, I got the convert-and-create script from qmail.org.
I chmod 755 it. When I run it , I get this:
Bareword found where operator expected at /var/qmail/bin/convert-and-create
 line 8, near "/var/spool"
(Missing operator before pool?)
syntax error at /var/qmail/bin/convert-and-create line 8, near "/var/spool"
Execution of /var/qmail/bin/convert-and-create aborted due to compilation e
rrors.

Anyone ever come across this one? Any help is appreciated

tony.campisi




Re: Urgent Help Needed

2000-07-18 Thread Tony Campisi

 From: Tony Campisi [EMAIL PROTECTED]
 /usr/local/bin/tcpserver -v -R 0 pop3 /var/qmail/bin/qmail-popup
 Shouldn't that be
  /usr/local/bin/tcpserver -v -R 0 pop-3 /var/qmail/bin/qmail-popup
 ? Notice the dash in the name of the service.

In my /etc/services file it says:
pop3110/tcp
pop-3   110/tcp

I've been using 'pop3' during my testing on another machine and it worked
good. My server was down for 3 hours, so I panicked and put sendmail back on
until I can figure out what happened.
Thanks guys for answering. Armando, I'm gonna try to write 110 instead of
pop3 or pop-3 next time.


...oh! the shame
tony.campisi





pop3d questions

2000-07-16 Thread Tony Campisi

Hi,
I created  a /var/qmail/supervise/qmail-pop3d/run file

#!/bin/sh
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
exec /usr/local/bin/softlimit -m 200 \
/usr/local/bin/tcpserver -v -R 0 pop3 /var/qmail/bin/qmail-popup
mailperson2.cardinalservices.com \
/usr/local/bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir 21

Does anyone see any drawbacks to running pop3d like this?

My /var/log/qmail/pop3d/current files contents look like this:
@400039720b74038df72c tcpserver: end 3255 status 256
@400039720b74038ee574 tcpserver: status: 0/40

I want my log files to have dates that I can read. I tried putting this in
my /var/qmail/supervise/qmail-pop3d/log/run file but it's not working as
planned.

exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t |
/usr/local/bin/tai64nlocal /var/log/qmail/pop3d

Can someone tell me if I am anywhere close to getting this right?

thanks
tony.campisi





problem stopping qmail

2000-07-13 Thread Tony Campisi

hello,
I installed qmail according to LWQ . LWQ says,
To use tcpserver, add the following to your qmail startup script (not
inetd.conf):

tcpserver -v -R 0 pop3 /var/qmail/bin/qmail-popup FQDN \
/bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir 21 | \
/var/qmail/bin/splogger pop3d 

where pop3 is the name of the POP3 service listed in /etc/services and FQDN
is the fully qualified domain name of the POP server you're setting up,
e.g., pop.example.net

So I added it to my /etc/rc.d/init.d/qmail file that I created

#!/bin/sh

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

# This line will add POP3d to our installation
tcpserver -v -R 0 pop3 /var/qmail/bin/qmail-popup
mailperson2.cardinalservices.com
/bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir 21 | \
/var/qmail/bin/splogger pop3d 

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

And this is the output of ps waux | grep qmail right after bootup. (edited
for space)
qmaild   /usr/local/bin/tcpserver -v -p -x /etc/tcp.smtp.cdb -u 878 -g 602 0
smtp /var/qmail/bin/qmail-smtpd
qmaill /usr/local/bin/multilog t /var/log/qmail/smtpd
qmaill /usr/local/bin/multilog t /var/log/qmail
qmailq   qmail-clean
qmailr   qmail-rspawn
qmails   qmail-send
root  tcpserver -v -R 0 pop3 /var/qmail/bin/qmail-popup
mailperson2.cardinalservices.com /bin/che
ckpassword
root  /var/qmail/bin/splogger pop3d
root  supervise qmail-send
root  supervise qmail-smtpd
root  qmail-lspawn ./Maildir/
root  grep qmail

When I attempt to stop qmail by using /usr/local/sbin/qmail stop
It tells me
Stopping qmail: svscan qmail logging.
[root@**]# ps waux | grep qmail (edited for space)
root   tcpserver -v -R 0 pop3 /var/qmail/bin/qmail-popup
mailperson2.cardinalservices.com /bin/checkpassword
root   /var/qmail/bin/splogger pop3d

My question is: Am I stopping qmail properly or does my startup script
contain errors? Thanks to everyones help I have gotten qmail running on my
test machine and I will begin installing it on our "real" mail server soon.
I can't figure out why these processes will not go away.

any help is appreciated,
tony.campisi





qsanity question

2000-07-10 Thread Tony Campisi

Hello all. I installed qmail-qsanity from http://www.qmail.org/qmail-qsanity-0.52 
yesterday.
Here is some output from this morning.

[root@# /var/qmail/bin]# ./qmail-qstat
messages in queue: 1
messages in queue but not yet preprocessed: 0
[root@# /var/qmail/bin]# ./qmail-qread
[root@# /var/qmail/bin]# ./qmail-qsanity
message has no entry in info: 50493
message is neither local nor remote: 50493

My question.. is there any way to look at this message and /or deliver it?

thanks,
tony.campisi






Re: qsanity question answered

2000-07-10 Thread Tony Campisi

: Tony Campisi writes:
:  [root@# /var/qmail/bin]# ./qmail-qread
:  [root@# /var/qmail/bin]# ./qmail-qsanity
:  message has no entry in info: 50493
:  message is neither local nor remote: 50493
: 
:  My question.. is there any way to look at this message and /or deliver
it?
:
: As root (or qmailq), look at /var/qmail/queue/*/*/50493.

...
Thanks Paul. I found it. It was a cron message.

tC





SMTP port 25 - cannot connect

2000-07-08 Thread Tony Campisi

Hello all!
I really want to thank Dave Sill for writing "Life with qmail." I realized
that if you follow the directions EXACTLY, good things are bound to happen.
After 2 previous failed attempts in installing qmail, I completely removed
everything qmailish from my system. Sendmail was also pulled out by the
roots. I carefully went step-by-step and when I was finished I only had to
chown and chgrp some files that were left over from the previous attempts.
This is the output of a ps right after the install.
qmaild   /usr/local/bin/tcpserver -v -p -x /etc/tcp.smtp.cdb -u 878 -g 602 0
smtp /var/qmail/bin/qmail-smtpd
qmaill/usr/local/bin/multilog t /var/log/qmail
qmaill/usr/local/bin/multilog t /var/log/qmail/smtpd
qmailq  qmail-clean
qmailr   qmail-rspawn
qmails  qmail-send
root supervise qmail-send
root supervise qmail-smtpd
root qmail-lspawn ./Maildir/

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

This is where my problem begins. I cannot access port 25 on my mail server.
I am accessing the machine from my home this weekend. When I 'telnet
mailmachine2.companyname.com 25' I get 'Connect Failed - Could not open a
connection'. Inetd is not maintaining my POP3 and SMTP anymore,
tcpserver is. There is NO mention of either POP or SMTP in the inet.conf
file. This is where I usually get stumped. I will gladly post any output you
request. :)

2- This is not a problem, I would just like to make sure I did this
properly. I added this line to my /etc/rc.d/init.d/qmail startup file. My
users will be checking their mail through Outlook Express and I want to use
pop3d / checkpassword to do this.

tcpserver -v -R 0 pop3 /var/qmail/bin/qmail-popup
mailmachine2.companyname.com
/bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir 21 | \
/var/qmail/bin/splogger pop3d 

this is the output of ps after I added the above line

qmaild   /usr/local/bin/tcpserver -v -p -x /etc/tcp.smtp.cdb -u 878 -g 602 0
smtp
 /var/qmail/bin/qmail-smtpd
qmaill   /usr/local/bin/multilog t /var/log/qmail/smtpd
qmailq   qmail-clean
qmailr   qmail-rspawn
qmails   qmail-send
root   tcpserver -v -R 0 pop3 /var/qmail/bin/qmail-popup
mailmachine2.companyname.com /bin/checkpassword
root /var/qmail/bin/splogger pop3d
root supervise qmail-send
root supervise qmail-smtpd
root qmail-lspawn ./Maildir/

Once again, thanks for any help you can give me,
tony.campisi






Re: SMTP port 25 - cannot connect

2000-07-08 Thread Tony Campisi

 What's the contents of tcp.smtp ?
 If you telnet to mailmachine2.compantname.com and then do a telnet
localhost
 25, what happens ?

 Greetz,
  Steffan
contents of /etc/tcp.smtp
127.:allow,RELAYCLIENT=""
127.0.0.1:allow,RELAYCLIENT=""
192.168.1.:allow,RELAYCLIENT=""
:allow

I am connected to a Mindspring account and I am using Tera Term to work on
the server.
[root@mailmachine2 /etc]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mailmachine2.companyname.com ESMTP
when I hit Enter it says
502 unimplemented (#5.5.1)

thanks for the quick reply,
tony.campisi




Re: SMTP port 25 - cannot connect

2000-07-08 Thread Tony Campisi

It may very well be the firewall.
 What's the REAL name of the server ?
mailperson2.cardinalservices.com

also,
[root@mailperson2 /etc]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mailperson2.cardinalservices.com ESMTP
ehlo
250-mailperson2.cardinalservices.com
250-PIPELINING
250 8BITMIME

thanks,
tony.campisi




Re: SMTP port 25 - cannot connect

2000-07-08 Thread Tony Campisi

 H, there's something wrong on your home end :
 Work like a charm from my end :-)

Thanks for your help Steffan! I looked in my /var/log/qmail/smtpd and saw
this.

@400039676f90255891dc tcpserver: pid 29286 from 212.64.80.2
@400039676f9136331194 tcpserver: ok 29286 :192.168.1.247:25
1dyn2.vb.casema.
net:212.64.80.2::12378
I can guess this is you, so that does narrow the problem down to my end.
h. Thanks for your timely responses. I appreciate it.

tony.campisi




Re: SMTP port 25 - cannot connect (new clues?)

2000-07-08 Thread Tony Campisi

 BTW: if you're recieving mail from the Net the problem isn't with
 your server config but with your local config ;)
 BTW: tried another telnet client ?

I did try telnetting in with my Tera Term program, and that didn't work
either.
I sent a mail to an account on the mailserver, and this showed up in
/var/log/qmail/smtpd
@4000396775ac39eb33ac tcpserver: pid 19137 from 207.69.200.226
@4000396775ad1c564b9c tcpserver: ok 19137 :192.168.1.247:25
blount.mail.mind
spring.net:207.69.200.226::4766
@4000396775ae14e7b134 tcpserver: end 19137 status 0
@4000396775ae14e7e3fc tcpserver: status: 0/40

my /var/log/maillog says
Jul  8 13:49:12 mailperson2 pop3d: 963082152.910890 tcpserver: status: 1/40
Jul  8 13:49:12 mailperson2 pop3d: 963082152.912702 tcpserver: pid 4471 from
209
.138.163.167
Jul  8 13:49:12 mailperson2 pop3d: 963082152.951141 tcpserver: ok 4471
:192.168.
1.247:110 pool-209-138-163-167.dlls.grid.net:209.138.163.167::1283

So the mail is getting there, but I am not getting the mail at my house and
it is not in my /new folder. That made me look at this...
[root@mailperson2]# /var/qmail/bin/qmail-qstat
messages in queue: 10
messages in queue but not yet preprocessed: 8

So what is not running to flush these mails out? Does this have anything to
do with my original problem?

TIA,
tony.campisi







Multilog: fatal: the final answer (hopefully)

2000-06-28 Thread Tony Campisi

Back in March someone asked about the multilog: fatal: unable to open directory
 /var/log/qmail: access denied problem. Dave asked that person to 
Post the output of:
 ls -ld /var/log/qmail /var/log /var /
 cat /var/qmail/supervise/qmail-send/log/run
but I searched the archive and didn't see their reply. Since I am getting the same
problem, I will do as Dave suggests.

[root@* /var/log/qmail]# ls -ld /var/log/qmail /var/log /var /
drwxr-xr-x  19 root root 1024 Jun 21 16:05 /
drwxr-xr-x  18 root root 1024 May 31 14:33 /var
drwxr-xr-x   7 root root 1024 Jun 25 04:02 /var/log
drwxrwxr-x   6 qmaill   qmail1024 May 31 14:37 /var/log/qmail
-
[root@* /var/log/qmail]# cat /var/qmail/supervise/qmail-send/log/run 
#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t /var/log/qmail
-
BTW - I am also getting the 'multilog: fatal: unable to lock directory 
/var/log/qmail/smtpd: access denied' error.
[root@* /var/log/qmail]# dir
drwxrwxr-x   2 879  root 1024 May 31 11:29 qmail-pop3d
drwxrwxr-x   2 879  root 1024 Jun 26 10:31 qmail-send
drwxrwxr-x   2 qmaill   qmail1024 Jun 26 10:16 qmail-smtpd
drwxrwxr-x   2 qmaill   nofiles  1024 Jun  1 11:22 smtpd
--
I'll gladly give any more info if needed. 
Thanks again,
tony.campisi






Planning an Install and need Help.

2000-06-27 Thread Tony Campisi

My email needs are small time in comparison to some of the installs out there. I have 
approx. 300
 users on my network (LAN no dialups). All of my users are checking their mail with 
Outlook
Express from MS. We are currently using Sendmail on a Linux 5.2 install. The users 
email settings 
have them checking both POP3 and SMTP on the IP address of the mail server, which is 
192.168.*.*. Each of the users have an account on the Linux machine 
under /home/firstname.lastname. An example of an email address is 
[EMAIL PROTECTED] A few of my users have aliases set up in /etc/aliases 
so that 
their companyname email is sent to a mindspring address so they can check it on their 
laptops on 
the road. 
I don't want to make this any harder than it has to be! Can someone/anyone please give 
me some 
insight as to what I will need to make this configuration work for me? 

From what I have read on the mailing list, Maildir delivery seems to be the way to 
go. Is pop3d 
something I will need? Is syslog and multilog the same thing/different and which one 
should I use? 
I'm pretty sure I will need the fastforward, uscpi-tcp(tcpserver), 
daemontools(supervise), qmailanalog and rblsmtpd
packages. 
Honestly, I really appreciate any advice you can give me about this. I tried to do it 
on my own,
and it's not working out at all. 
Thank you very much,
tony.campisi




Re: Planning an Install and need Help.

2000-06-27 Thread Tony Campisi

Dave, thank you so much for the information! I will follow your
"Life with qmail" to the letter. I have to clarify a few things though.
You mentioned in your reply,
"With qmail, users can redirect their mail using their .qmail
file. E.g., ~courtney.love/.qmail could contain:
 [EMAIL PROTECTED]
You'll need to convert your
/etc/alias redirections into .qmail files."

Q - Would doing this be the same as using the fastforward package? 

I misspoke when I asked this question.
"Are syslog and multilog the same thing/different and which one should I use?"

I meant to ask about splogger/multilog. When I follow the LWQ, which logging
tool will be used? I can build a house with all these logs. :-D

thanks again,
tony.campisi




multilog/splogger

2000-06-23 Thread Tony Campisi

Thanks to everyone that helped me get qmail started! I really appreciate it. 
This is a copy of my ps ax 
ps ax
  PID TTY STAT TIME COMMAND
1  ?  S0:03 init [3] 
2  ?  SW   0:00 (kflushd)
3  ?  SW  0:00 (kswapd)
4  ?  SW   0:00 (md_thread)
5  ?  SW   0:00 (md_thread)
   36  ?  S0:00 /sbin/kerneld 
  213  ?  S0:00 syslogd 
  222  ?  S0:00 klogd 
  244  ?  S0:00 crond 
  256  ?  S0:00 inetd 
  267  ?  S0:00 named 
  279  ?  S0:00 rpc.mountd 
  288  ?  S0:00 rpc.nfsd 
  302  ?  S0:00 gpm -t ps/2 
  313  ?  S0:00 httpd 
  336  ?  S0:00 smbd -D 
  345  ?  S0:01 nmbd -D 
  366   2 S0:00 /sbin/mingetty tty2 
  367   3 S0:00 /sbin/mingetty tty3 
  368   4 S0:00 /sbin/mingetty tty4 
  369   5 S0:00 /sbin/mingetty tty5 
  370   6 S0:00 /sbin/mingetty tty6 
  372  ?  S0:00 update (bdflush) 
  431   1 S0:00 /sbin/mingetty tty1 
 4048  ?  S0:00 svscan 
 4125  ?  S0:00 supervise qmail-send 
 4126  ?  S0:00 supervise log 
 4127  ?  S0:00 supervise qmail-smtpd 
 4128  ?  S0:00 supervise log 
 4131  ?  S0:00 qmail-lspawn |dot-forward .forward\012./Maildir/ 
 5077  ?  S0:00 in.telnetd 
 5119  p1 S0:00 su 
 5120  p1 S0:00 bash 
 5170  p1 R0:00 ps ax 
  199  ?  S0:00 portmap 
  233  ?  S0:00 /usr/sbin/atd 
  317  ?  S0:00 httpd 
  318  ?  S0:00 httpd 
  319  ?  S0:00 httpd 
  320  ?  S0:00 httpd 
  321  ?  S0:00 httpd 
  322  ?  S0:00 httpd 
  323  ?  S0:00 httpd 
  324  ?  S0:00 httpd 
  326  ?  S0:00 httpd 
  327  ?  S0:00 httpd 
 5078  p1 S0:00 -bash 
 4134  ?  S0:00 /usr/local/bin/tcpserver -v -p -x /etc/tcp.smtp.cdb -u
 4130  ?  S0:00 /usr/local/bin/multilog t s250 /var/log/qmail/qmail
 4135  ?  S0:00 /usr/local/bin/multilog t s250 /var/log/qmail/qmail
 4133  ?  S0:00 qmail-clean 
 4132  ?  S0:00 qmail-rspawn 
 4129  ?  S0:00 qmail-send 
-
Can someone tell me if anything is either missing or shouldn't be there? 

I'm reading through D.J.'s faq and I'm at part 9.1 about running qmail-smtpd under 
tcpserver.
I installed the ucspi-tcp 0.88 package. 
This is what I see in my inetd.conf file :
# do not uncomment smtp unless you *really* know what you are doing.
# smtp is handled by the sendmail daemon now, not smtpd.  It does NOT
# run from here, it is started at boot time from /etc/rc.d/rc#.d.
#smtp   stream  tcp nowait  root/usr/bin/smtpd  smtpd
#nntp   stream  tcp nowait  root/usr/sbin/tcpd  in.nntpd
Do I remove these lines?
..continuing...Remove the smtp line from /etc/inetd.conf, and put the two lines 
 tcpserver -v -u 7770 -g 2108 0 smtp /var/qmail/bin/qmail-smtpd \
 21 | /var/qmail/bin/splogger smtpd 3 
into your system boot scripts; replace 7770 with your qmaild uid, and replace 2108 
with your nofiles gid. 

I know I want to use multilog instead of splogger. Should I replace the splogger part 
of the script
with multilog? And if so, please tell me what to put. 
Your help is appreciated,
tony.campisi





multilog/splogger

2000-06-23 Thread Tony Campisi

Thanks to everyone that helped me get qmail started! I really appreciate it. 
This is a copy of my ps ax 
ps ax
  PID TTY STAT TIME COMMAND
1  ?  S0:03 init [3] 
2  ?  SW   0:00 (kflushd)
3  ?  SW  0:00 (kswapd)
4  ?  SW   0:00 (md_thread)
5  ?  SW   0:00 (md_thread)
   36  ?  S0:00 /sbin/kerneld 
  213  ?  S0:00 syslogd 
  222  ?  S0:00 klogd 
  244  ?  S0:00 crond 
  256  ?  S0:00 inetd 
  267  ?  S0:00 named 
  279  ?  S0:00 rpc.mountd 
  288  ?  S0:00 rpc.nfsd 
  302  ?  S0:00 gpm -t ps/2 
  313  ?  S0:00 httpd 
  336  ?  S0:00 smbd -D 
  345  ?  S0:01 nmbd -D 
  366   2 S0:00 /sbin/mingetty tty2 
  367   3 S0:00 /sbin/mingetty tty3 
  368   4 S0:00 /sbin/mingetty tty4 
  369   5 S0:00 /sbin/mingetty tty5 
  370   6 S0:00 /sbin/mingetty tty6 
  372  ?  S0:00 update (bdflush) 
  431   1 S0:00 /sbin/mingetty tty1 
 4048  ?  S0:00 svscan 
 4125  ?  S0:00 supervise qmail-send 
 4126  ?  S0:00 supervise log 
 4127  ?  S0:00 supervise qmail-smtpd 
 4128  ?  S0:00 supervise log 
 4131  ?  S0:00 qmail-lspawn |dot-forward .forward\012./Maildir/ 
 5077  ?  S0:00 in.telnetd 
 5119  p1 S0:00 su 
 5120  p1 S0:00 bash 
 5170  p1 R0:00 ps ax 
  199  ?  S0:00 portmap 
  233  ?  S0:00 /usr/sbin/atd 
  317  ?  S0:00 httpd 
  318  ?  S0:00 httpd 
  319  ?  S0:00 httpd 
  320  ?  S0:00 httpd 
  321  ?  S0:00 httpd 
  322  ?  S0:00 httpd 
  323  ?  S0:00 httpd 
  324  ?  S0:00 httpd 
  326  ?  S0:00 httpd 
  327  ?  S0:00 httpd 
 5078  p1 S0:00 -bash 
 4134  ?  S0:00 /usr/local/bin/tcpserver -v -p -x /etc/tcp.smtp.cdb -u
 4130  ?  S0:00 /usr/local/bin/multilog t s250 /var/log/qmail/qmail
 4135  ?  S0:00 /usr/local/bin/multilog t s250 /var/log/qmail/qmail
 4133  ?  S0:00 qmail-clean 
 4132  ?  S0:00 qmail-rspawn 
 4129  ?  S0:00 qmail-send 
-
Can someone tell me if anything is either missing or shouldn't be there? 

I'm reading through D.J.'s faq and I'm at part 9.1 about running qmail-smtpd under 
tcpserver.
I installed the ucspi-tcp 0.88 package. 
This is what I see in my inetd.conf file :
# do not uncomment smtp unless you *really* know what you are doing.
# smtp is handled by the sendmail daemon now, not smtpd.  It does NOT
# run from here, it is started at boot time from /etc/rc.d/rc#.d.
#smtp   stream  tcp nowait  root/usr/bin/smtpd  smtpd
#nntp   stream  tcp nowait  root/usr/sbin/tcpd  in.nntpd
Do I remove these lines?
..continuing...Remove the smtp line from /etc/inetd.conf, and put the two lines 
 tcpserver -v -u 7770 -g 2108 0 smtp /var/qmail/bin/qmail-smtpd \
 21 | /var/qmail/bin/splogger smtpd 3 
into your system boot scripts; replace 7770 with your qmaild uid, and replace 2108 
with your nofiles gid. 

I know I want to use multilog instead of splogger. Should I replace the splogger part 
of the script
with multilog? And if so, please tell me what to put. 
Your help is appreciated,
tony.campisi




Almost Started qmail

2000-06-21 Thread Tony Campisi

I just wanted to thank everyone for their help so far! I'm close to getting this 
together and running

 but I'm still getting one error at startup! 

supervise: fatal: unable to start qmail-smtpd/run: exec format error

My /var/qmail/supervise/qmail-smtpd/run file contains:
#!/bin/sh
QMAILDUID=`id -u qmaill`
NOFILESGID=`id -g qmaill`
exec /usr/local/bin/softlimit -m 300 \
/usr/local/bin/tcpserver -v -p -x /etc/tcp.smtp.cdb \
-u $QMAILDUID -g $NOFILESGID 0 smtp /var/qmail/bin/qmail-smtpd 21

Dave Kelly asked : 
Q- Something is already bound to port 25.  Have you turned off sendmail? 
A- Yes, Sendmail is dead but I still can't telnet to port 25.

Q- Have you checked to see that there are no errant qmail-smtpd processes already
running?
A- No qmail processes are running.

(Plus, you'll still need to correct the ownership or permissions on
/var/log/qmail)

drwxrwxr-x   6 qmaill   root 1024 May 31 14:37 qmail
I changed some things around in my /etc/passwd file, but I'm such a newbie I don't 
which one
is correct. From LWQ section 2.5.4 I had,
qmaill:*:879:602::/var/qmail:/bin/true
and from another source I had,
qmaill:!!:879:602::/var/qmail:/bin/bash (this is in there now).

I don't know if the above has anything to do with my problem. Is one format correct 
and the other not? Thanks for your help and patience!

tony.campisi






Trouble Starting qmail

2000-06-20 Thread Tony Campisi

When I attempt to start qmail the following errors scroll continuously accross my 
screen.

multilog: fatal: unable to lock directory /var/log/qmail/smtpd: access deni
ed
multilog: fatal: unable to lock directory /var/log/qmail: access denied
supervise: fatal: unable to start qmail-smtpd/run: exec format error

I have followed LWQ to the best of my meager ability.
 Can someone please help this misguided soul?

TIA,
/tony.campisi




Re: Trouble Starting qmail

2000-06-20 Thread Tony Campisi

: What's in your qmail-smtpd/run file?  There's an error with the call to exec
: in there, it appears.

Actually there's an error I missed upon startup.
/usr/local/sbin/qmail start 

Starting qmail: svscan.
tcpserver: fatal: unable to bind: address already used
multilog: fatal: unable to lock directory /var/log/qmail: access denied
multilog: fatal: unable to lock directory /var/log/qmail/smtpd: access deni
ed
supervise: fatal: unable to start qmail-smtpd/run: exec format error

My /var/qmail/supervise/qmail-smtpd/run file contains:
#!/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 21

I took this directly from LWQ. Is the problem with tcpserver? I don't know what 
"address already used" means. Any ideas?

tony.campisi





Maildir..Reheated

2000-06-19 Thread Tony Campisi

At 16:21 00/06/17 -0600, you wrote:
  can u help me setting up Maildir
  here iam not able to setup Maildir
   Easy, correct method:
 /var/qmail/bin/maildirmake {username}

Don't forget to "su" to the user before you
execute maildirmake.
Kristina
--
I'm using a RedHat 5.2 install running Sendmail. I am installing qmail on this backup 
machine at this time. Our naming convention is  - [EMAIL PROTECTED]
[root@mailperson2 /var/qmail]# su al.koch
[al.koch@mailperson2 /var/qmail]$ /var/qmail/bin/maildirmake al.koch
maildirmake: fatal: unable to mkdir al.koch: access denied

What am I missing here? All of my users (only 250) are under /usr/home/. Should they 
be under the /home directory? 

TIA,
//tony.campisi




Re: Maildir..Reheated

2000-06-19 Thread Tony Campisi

: Try
: su - al.koch
: instead of
: su al.koch
---
That worked for me Peter. Thank you. One more question. My users folders (on the 
backup machine I'm testing this on) are located under /usr/home. Is this correct or 
should they be under /home? I seem to have read this somewhere. I initially created 
all of the accounts using 'userconf'  'user accounts'. If they are actually supposed 
to be under /home, is there a way to move them all without re-creating them? On my 
main mail server the accounts are under the /home directory.

Thanks for your help!,
/tony.campisi