9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] /mail/ratify permissions
@ 2009-06-21 12:51 Matthias Teege
  2009-06-21 13:57 ` erik quanstrom
  0 siblings, 1 reply; 2+ messages in thread
From: Matthias Teege @ 2009-06-21 12:51 UTC (permalink / raw)
  To: 9fans

Moin,

I try to get ratfs to work. I've created a mountpoint under /mail,
run ratfs from cpurc and add "mount -c #s/ratify /mail/ratify" to
/lib/namespace.

Then I add a IP address to /mail/lib/blocked and reload the config
with "echo reload > /mail/ratify/ctl". I can see the file under
/mail/ratify/block/ip but SMTP connections are still possible. I put
"ls -l /mail > debug.log" in my tcp25 and got:

d-rwxrwxrwx M 32 upas upas 0 Sep 17  2007 /mail/box
d-rwxrwxrwx M 32 upas upas 0 Oct 22  2004 /mail/faxoutqueue
d-rwxrwxrwx M 32 upas upas 0 Oct 22  2004 /mail/faxqueue
d-r-xr-xr-x M 32 upas upas 0 Oct 22  2004 /mail/fs
d-rwxrwxr-x M 32 upas upas 0 Jun 21 04:40 /mail/grey
d-rwxrwxr-x M 32 upas upas 0 Jun 19 17:31 /mail/lib
d-rwxrwxrwx M 32 upas upas 0 Jun 21 10:20 /mail/queue
d-rwxrwxr-x M 32 upas upas 0 Jun 19 16:30 /mail/ratify
d-rwxrwxrwx M 32 upas upas 0 Jun 21 12:16 /mail/tmp

but "ls -l /mail/ratify > debug.log" gives me nothing. It looks like
upas/smtpd cannot access /mail/ratify. How do I get ratfs to work?

Many thanks
Matthias




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

* Re: [9fans] /mail/ratify permissions
  2009-06-21 12:51 [9fans] /mail/ratify permissions Matthias Teege
@ 2009-06-21 13:57 ` erik quanstrom
  0 siblings, 0 replies; 2+ messages in thread
From: erik quanstrom @ 2009-06-21 13:57 UTC (permalink / raw)
  To: 9fans

> but "ls -l /mail/ratify > debug.log" gives me nothing. It looks like
> upas/smtpd cannot access /mail/ratify. How do I get ratfs to work?

since smtpd runs as none if you're starting it from listen in
the typical way, i was going to suggest that a process running
as none might not have sufficient permissions to mount
/srv/ratify.  however on my system this isn't the case.

i suppose that you could break out the big hammer and
add "ls -l /srv", "mount /srv/ratify mail/ratify" to your tcp25
script.

if you're trying to stop spam, the new upas/smtp(d?) is
compatable with the old upas.  i find the hacks there
to be necessary to avoid getting several hundred spams/
day.  there are also some changes that allow the validatesender
script to call spamhaus and/or spf.  it's all in the contrib
package nupas or you can pull out the bits you want

	/n/sources/contrib/quanstro/root/sys/man/8/smtp
	/n/sources/contrib/quanstro/root/sys/src/cmd/nupas/smtp
	/n/sources/contrib/quanstro/root/lib/mail

- erik



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

end of thread, other threads:[~2009-06-21 13:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-21 12:51 [9fans] /mail/ratify permissions Matthias Teege
2009-06-21 13:57 ` erik quanstrom

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