9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] smtpd no longer running?
@ 2007-06-19 20:40 John Floren
  2007-06-19 21:04 ` Skip Tavakkolian
  0 siblings, 1 reply; 16+ messages in thread
From: John Floren @ 2007-06-19 20:40 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hi everyone
So, my Plan 9 server had been up for quite a while, but it eventually
became necessary to reboot it. However, after doing so, it seems that
I am not able to receive mail any more. 'ps' doesn't show any instance
of smtpd... any ideas what's going on?
Thanks

John
--
Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] smtpd no longer running?
  2007-06-19 20:40 [9fans] smtpd no longer running? John Floren
@ 2007-06-19 21:04 ` Skip Tavakkolian
  2007-06-19 21:19   ` John Floren
  0 siblings, 1 reply; 16+ messages in thread
From: Skip Tavakkolian @ 2007-06-19 21:04 UTC (permalink / raw)
  To: 9fans

> So, my Plan 9 server had been up for quite a while, but it eventually
> became necessary to reboot it. However, after doing so, it seems that
> I am not able to receive mail any more. 'ps' doesn't show any instance
> of smtpd... any ideas what's going on?

listen(8) starts it up.  do you have handler script in your service dir?



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] smtpd no longer running?
  2007-06-19 21:04 ` Skip Tavakkolian
@ 2007-06-19 21:19   ` John Floren
  2007-06-20 10:13     ` John Floren
  0 siblings, 1 reply; 16+ messages in thread
From: John Floren @ 2007-06-19 21:19 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On 6/19/07, Skip Tavakkolian <9nut@9netics.com> wrote:
> > So, my Plan 9 server had been up for quite a while, but it eventually
> > became necessary to reboot it. However, after doing so, it seems that
> > I am not able to receive mail any more. 'ps' doesn't show any instance
> > of smtpd... any ideas what's going on?
>
> listen(8) starts it up.  do you have handler script in your service dir?
>
>

/rc/bin/service/tcp25 contains the following:

#!/bin/rc
#smtp serv net incalldir user
user='{cat /dev/user}
exec upas/smtpd -n $3


John
--
Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] smtpd no longer running?
  2007-06-19 21:19   ` John Floren
@ 2007-06-20 10:13     ` John Floren
  2007-06-20 10:52       ` erik quanstrom
  0 siblings, 1 reply; 16+ messages in thread
From: John Floren @ 2007-06-20 10:13 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Now, after a replica/pull update and a reboot, it seems that the
fileserver part is no longer accessible, either. I installed Plan 9 on
this machine several months ago using a CD that was rather older. Have
there been any updates which might have broken something?
I can still connect with drawterm, if there's anything I should check.

John
--
Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] smtpd no longer running?
  2007-06-20 10:13     ` John Floren
@ 2007-06-20 10:52       ` erik quanstrom
  2007-06-20 17:41         ` John Floren
  0 siblings, 1 reply; 16+ messages in thread
From: erik quanstrom @ 2007-06-20 10:52 UTC (permalink / raw)
  To: 9fans

what do you mean by "the fileserver part is no longer accessible?"

- erik

> Now, after a replica/pull update and a reboot, it seems that the
> fileserver part is no longer accessible, either. I installed Plan 9 on
> this machine several months ago using a CD that was rather older. Have
> there been any updates which might have broken something?
> I can still connect with drawterm, if there's anything I should check.
>
> John


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] smtpd no longer running?
  2007-06-20 19:05                       ` Steve Simon
@ 2007-06-20 13:07                         ` john
  0 siblings, 0 replies; 16+ messages in thread
From: john @ 2007-06-20 13:07 UTC (permalink / raw)
  To: 9fans

> don't forget that all the log files in /sys/log
> should have the append flag to prevent races when
> updating them (chmod +a /sys/log/*)
>
> -Steve

Taken care of. Thanks!


John



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] smtpd no longer running?
  2007-06-20 10:52       ` erik quanstrom
@ 2007-06-20 17:41         ` John Floren
  2007-06-20 18:08           ` Skip Tavakkolian
  0 siblings, 1 reply; 16+ messages in thread
From: John Floren @ 2007-06-20 17:41 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Well, yesterday I wasn't able to mount fossil remotely using "9fs
csplan9" or boot my terminal from that root. This morning, I checked
and saw that RIT apparently changed my IP address, which isn't
supposed to happen but did anyway. After I realized that, I was able
to mount fossil.
Still not receiving mail, though.

John

On 6/20/07, erik quanstrom <quanstro@coraid.com> wrote:
> what do you mean by "the fileserver part is no longer accessible?"
>
> - erik
>
> > Now, after a replica/pull update and a reboot, it seems that the
> > fileserver part is no longer accessible, either. I installed Plan 9 on
> > this machine several months ago using a CD that was rather older. Have
> > there been any updates which might have broken something?
> > I can still connect with drawterm, if there's anything I should check.
> >
> > John
>


--
Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] smtpd no longer running?
  2007-06-20 17:41         ` John Floren
@ 2007-06-20 18:08           ` Skip Tavakkolian
  2007-06-20 18:25             ` John Floren
  0 siblings, 1 reply; 16+ messages in thread
From: Skip Tavakkolian @ 2007-06-20 18:08 UTC (permalink / raw)
  To: 9fans

> Still not receiving mail, though.

that's not enough information. might want to start here:

cpu% telnet net!csplan9.rit.edu!smtp
connected to net!csplan9.rit.edu!smtp on /net/tcp/40
220 *********************
VRFY slawmaster
500 5.5.1 illegal command or bad syntax
cpu%

if you want somebody to walk you through it, you might want to try
#plan9 irc.  it probably works better for the
remote-robot-iterative-debugging method; i'm not being sarcastic.



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] smtpd no longer running?
  2007-06-20 18:08           ` Skip Tavakkolian
@ 2007-06-20 18:25             ` John Floren
  2007-06-20 18:31               ` erik quanstrom
  2007-06-20 18:40               ` andrey mirtchovski
  0 siblings, 2 replies; 16+ messages in thread
From: John Floren @ 2007-06-20 18:25 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On 6/20/07, Skip Tavakkolian <9nut@9netics.com> wrote:
> > Still not receiving mail, though.
>
> that's not enough information. might want to start here:
>
> cpu% telnet net!csplan9.rit.edu!smtp
> connected to net!csplan9.rit.edu!smtp on /net/tcp/40
> 220 *********************
> VRFY slawmaster
> 500 5.5.1 illegal command or bad syntax
> cpu%
>
> if you want somebody to walk you through it, you might want to try
> #plan9 irc.  it probably works better for the
> remote-robot-iterative-debugging method; i'm not being sarcastic.
>
>

okay, I'll try #plan9, but one more question--is there any reason that
deleting /sys/log/smtpd would break something? The file was getting
pretty big, so I deleted it. I know that on Unix, deleting a log file
shouldn't hurt anything, but Plan 9 is not Unix ;)


John
--
Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] smtpd no longer running?
  2007-06-20 18:25             ` John Floren
@ 2007-06-20 18:31               ` erik quanstrom
  2007-06-20 18:43                 ` Skip Tavakkolian
  2007-06-20 18:40               ` andrey mirtchovski
  1 sibling, 1 reply; 16+ messages in thread
From: erik quanstrom @ 2007-06-20 18:31 UTC (permalink / raw)
  To: 9fans

no.  that shouldn't do anything except shunt log information to /dev/null.
if you are using either venti or ken's fs, this won't save you any space as the
old log file is already in an arena (or in the dump).

- erik


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] smtpd no longer running?
  2007-06-20 18:25             ` John Floren
  2007-06-20 18:31               ` erik quanstrom
@ 2007-06-20 18:40               ` andrey mirtchovski
  1 sibling, 0 replies; 16+ messages in thread
From: andrey mirtchovski @ 2007-06-20 18:40 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> The file was getting
> pretty big, so I deleted it.

i cron a C program^W^Wscript to clean up the logs once a month so they
are kept manageable. i don't care if i miss a few minutes' worth:

cpu% cat /bin/chop
#!/bin/rc

cd /sys/log

for (i in 	\
	aan		\
	auth		\
	cron		\
	chat	\
	cs		\
	dns		\
	fossil	\
	ftp		\
	imap4d	\
	ipboot	\
	listen	\
	mail		\
	nfs		\
	nfsserver	\
	pop3	\
	portmapper	\
	ppp		\
	pptpd	\
	runq		\
	smtp		\
	secstore	\
	smtp.fail	\
	smtpd	\
	ssh		\
	telnet	\
	timesync	\
)
{
	chmod -a $i
	>$i
	chmod +a $i
}


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] smtpd no longer running?
  2007-06-20 18:31               ` erik quanstrom
@ 2007-06-20 18:43                 ` Skip Tavakkolian
  2007-06-20 18:45                   ` John Floren
  0 siblings, 1 reply; 16+ messages in thread
From: Skip Tavakkolian @ 2007-06-20 18:43 UTC (permalink / raw)
  To: 9fans

> no.  that shouldn't do anything except shunt log information to /dev/null.
> if you are using either venti or ken's fs, this won't save you any space as the
> old log file is already in an arena (or in the dump).

syslog man implies that the file has to be there.

doesn't fossil pay attention to DMTMP bit?



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] smtpd no longer running?
  2007-06-20 18:43                 ` Skip Tavakkolian
@ 2007-06-20 18:45                   ` John Floren
  2007-06-20 19:02                     ` John Floren
  0 siblings, 1 reply; 16+ messages in thread
From: John Floren @ 2007-06-20 18:45 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On 6/20/07, Skip Tavakkolian <9nut@9netics.com> wrote:
> > no.  that shouldn't do anything except shunt log information to /dev/null.
> > if you are using either venti or ken's fs, this won't save you any space as the
> > old log file is already in an arena (or in the dump).
>
> syslog man implies that the file has to be there.
>
> doesn't fossil pay attention to DMTMP bit?
>
>

Well, part of the problem was that I had /sys/log/smtpd set mode 664
instead of 666. I changed that, and now I'm seeing the following in my
log file:
csplan9 Jun 20 14:41:51 helo from 130.203.4.6 as mail.cse.psu.edu
csplan9 Jun 20 14:41:51 [mail.cse.psu.edu/130.203.4.6]
cse.psu.edu!9fans-bounces+john=csplan9.rit.edu -> csplan9.rit.edu!john
sendercheck: error

Shed any light on the matter?

John
--
Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] smtpd no longer running?
  2007-06-20 18:45                   ` John Floren
@ 2007-06-20 19:02                     ` John Floren
  2007-06-20 19:05                       ` Steve Simon
  2007-06-20 19:21                       ` erik quanstrom
  0 siblings, 2 replies; 16+ messages in thread
From: John Floren @ 2007-06-20 19:02 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On 6/20/07, John Floren <slawmaster@gmail.com> wrote:
> On 6/20/07, Skip Tavakkolian <9nut@9netics.com> wrote:
> > > no.  that shouldn't do anything except shunt log information to /dev/null.
> > > if you are using either venti or ken's fs, this won't save you any space as the
> > > old log file is already in an arena (or in the dump).
> >
> > syslog man implies that the file has to be there.
> >
> > doesn't fossil pay attention to DMTMP bit?
> >
> >
>
> Well, part of the problem was that I had /sys/log/smtpd set mode 664
> instead of 666. I changed that, and now I'm seeing the following in my
> log file:
> csplan9 Jun 20 14:41:51 helo from 130.203.4.6 as mail.cse.psu.edu
> csplan9 Jun 20 14:41:51 [mail.cse.psu.edu/130.203.4.6]
> cse.psu.edu!9fans-bounces+john=csplan9.rit.edu -> csplan9.rit.edu!john
> sendercheck: error
>
> Shed any light on the matter?
>

Thanks to John-Galt on #plan9, I found out that it's also necessary to
have /sys/log/smtpd.mx, because the validatesender script apparently
doesn't have the cojones to create its own.
Anyway, /sys/log may end up getting the temporary flag, because
although the logs are useful, I don't see any reason to preserve a
bunch of mail logs for all posterity.
Thanks


John
--
Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] smtpd no longer running?
  2007-06-20 19:02                     ` John Floren
@ 2007-06-20 19:05                       ` Steve Simon
  2007-06-20 13:07                         ` john
  2007-06-20 19:21                       ` erik quanstrom
  1 sibling, 1 reply; 16+ messages in thread
From: Steve Simon @ 2007-06-20 19:05 UTC (permalink / raw)
  To: 9fans

don't forget that all the log files in /sys/log
should have the append flag to prevent races when
updating them (chmod +a /sys/log/*)

-Steve


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [9fans] smtpd no longer running?
  2007-06-20 19:02                     ` John Floren
  2007-06-20 19:05                       ` Steve Simon
@ 2007-06-20 19:21                       ` erik quanstrom
  1 sibling, 0 replies; 16+ messages in thread
From: erik quanstrom @ 2007-06-20 19:21 UTC (permalink / raw)
  To: 9fans

we haven't deleted any log files since 2004 and yet the largest
is 1GB.  all told, the log files eat < 1% of our total space and
every so often somebody wants to know something that only the
log files can answer.

it seems false economy.  disk space is generally not a scarce resource.

- erik


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2007-06-20 19:21 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-19 20:40 [9fans] smtpd no longer running? John Floren
2007-06-19 21:04 ` Skip Tavakkolian
2007-06-19 21:19   ` John Floren
2007-06-20 10:13     ` John Floren
2007-06-20 10:52       ` erik quanstrom
2007-06-20 17:41         ` John Floren
2007-06-20 18:08           ` Skip Tavakkolian
2007-06-20 18:25             ` John Floren
2007-06-20 18:31               ` erik quanstrom
2007-06-20 18:43                 ` Skip Tavakkolian
2007-06-20 18:45                   ` John Floren
2007-06-20 19:02                     ` John Floren
2007-06-20 19:05                       ` Steve Simon
2007-06-20 13:07                         ` john
2007-06-20 19:21                       ` erik quanstrom
2007-06-20 18:40               ` andrey mirtchovski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).