9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] smtp help needed..
@ 2002-12-17 20:53 Russ Cox
  2002-12-17 21:03 ` Ish Rattan
  0 siblings, 1 reply; 3+ messages in thread
From: Russ Cox @ 2002-12-17 20:53 UTC (permalink / raw)
  To: 9fans

did you create /mail/box/you/mbox for each
person who is going to receive mail on the machine?



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

* Re: [9fans] smtp help needed..
  2002-12-17 20:53 [9fans] smtp help needed Russ Cox
@ 2002-12-17 21:03 ` Ish Rattan
  0 siblings, 0 replies; 3+ messages in thread
From: Ish Rattan @ 2002-12-17 21:03 UTC (permalink / raw)
  To: 9fans

So far it is only glenda and entry for glenda exists

alrw-rw--w- M 8 glenda glenda 0 Dec 18 4:15 mbox

It feels as if smtpd is not running?

-ishwar

On Tue, 17 Dec 2002, Russ Cox wrote:

> did you create /mail/box/you/mbox for each
> person who is going to receive mail on the machine?
>


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

* [9fans] smtp help needed..
@ 2002-12-17 20:40 Ish Rattan
  0 siblings, 0 replies; 3+ messages in thread
From: Ish Rattan @ 2002-12-17 20:40 UTC (permalink / raw)
  To: 9fans


just installed terminal from plan9-new.iso.bz2

the email can go out but can't come in (syslog in sender
says that mail refused the plan9 box. files in question are
(/mail/lib/smtpd.conf, /mail/lib/rewrite, /mail/lib/remotemail)
given below.

-ishwar
-----
#
#	sample smtpd configuration options for inside connections
#

#
#	replace YOURDOM with the name of your domain
#	replace 10.0.0.0 with the IP address range of your networks

defaultdomain		shardi.cps.cmcih.edu
norelay			on	#allow relaying
verifysenderdom		off	#disable dns verification of sender domain
saveblockedmsg		off	#save blocked messages

#
# if norelay is on, you need to set the
# networks allowed to relay through
# as well as the domains to accept mail for
#

# ournets 192.168.0.0/16

# ourdomains *.fakedom.dom, *.fakedom.rog
ourdomains *.cps.cmich.edu
---
#
#	sample rewrite file for systems that send and receive mail directly.
#
#	by default, the return address points to this system; if you have multiple systems
#	and don't want them all to be mail recipients, set $site to a generic
#	name (e.g., plan9) or system name in /rc/bin/termrc and /rc/bin/cpurc
#	and put an MX DNS record in /lib/ndb to point to that system.
#
#	replace YOURDOMAIN.DOM in the following rules with your domain name.

# translate local aliases from /mail/lib/namefiles
[^!@.]+			translate	"/bin/upas/aliasmail '&'"

# deliver mail without a domain locally
local!(.*)		>>		/mail/box/\1/mbox

# your local names
\l!(.*)					alias		\1
\l\.cps\.cmich\.edu!(.*)		alias		\1

# convert source domain address to a chain a@b@c@d...
@([^@!,]*):([^!@]*)@([^!]*)		alias	\2@\3@\1
@([^@!]*),@([^!@,]*):([^!@]*)@([^!]*)	alias	@\1:\3@\4@\2

# convert a chain a@b@c@d... to ...d!c!b!a
([^@]+)@([^@]+)@(.+)	alias		\2!\1@\3
([^@]+)@([^@]+)		alias		\2!\1

# queue all mail for delivery
([^!]*)!(.+) 		| 		"/mail/lib/qmail '\s' 'net!\1'" "'\2'"
---
#!/bin/rc
shift
sender=$1
shift
addr=$1
shift

exec /bin/upas/smtp -h shardi.cps.cmich.edu $addr $sender $*
--


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

end of thread, other threads:[~2002-12-17 21:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-17 20:53 [9fans] smtp help needed Russ Cox
2002-12-17 21:03 ` Ish Rattan
  -- strict thread matches above, loose matches on Subject: below --
2002-12-17 20:40 Ish Rattan

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