9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] Unable to relay email with upas/smtpd
@ 2024-09-28  3:30 jrmu
  2024-09-28 19:13 ` william
  0 siblings, 1 reply; 2+ messages in thread
From: jrmu @ 2024-09-28  3:30 UTC (permalink / raw)
  To: 9front

Greetings,

I am trying to connect to my mail server jrmu9.inter9.org running upas/smtpd
using mutt (on IP 104.167.242.140, domain breadofgod.org) to send email. I
am able to connect using imap4d but I can't seem to relay any mail.

Any suggestions would be greatly appreciated.

Here is the error message I see on mutt:

[2024-09-27 18:34:48] SMTP session failed: 554 5.7.1 mail refused:  from 'jrmu9.inter9.org!jrmu'

And here is the error message I see in /sys/log/smtpd:

jrmu9.inter9.org Sep 27 18:34:39 ehlo from 104.167.242.140 as jrmu9.inter9.org
jrmu9.inter9.org Sep 27 18:34:39 started TLS with jrmu9.inter9.org
jrmu9.inter9.org Sep 27 18:34:39 ehlo from 104.167.242.140 as jrmu9.inter9.org
jrmu9.inter9.org Sep 27 18:34:39 auth(CRAM-MD5, (protected)) from jrmu9.inter9.org
jrmu9.inter9.org Sep 27 18:34:40 ++[jrmu9.inter9.org/104.167.242.140] blocked: mail refused:  from 'jrmu9.inter9.org!jrmu'

and in /sys/log/mail:

jrmu9.inter9.org Sep 27 18:34:40 error ircnow.org!jrmu From jrmu9.inter9.org!jrmu Fri Sep 27 18:34:39 -0700 2024
error+  from 'jrmu9.inter9.org!jrmu'
error+ to 'ircnow.org!jrmu'
error+ failed with error 'qer: creating data file /mail/queue/none/D.000431: permission denied: '/mail/queue/none'
error+ '.
error+ The mailer `/mail/lib/qmail 'jrmu9.inter9.org!jrmu' 'net!ircnow.org'' returned error status 71.
error+ 
error+ 

Here are the relevant files.

cpu% cat /bin/service/tcp587
#!/bin/rc

user=`{cat /dev/user}

exec upas/smtpd -d -c /sys/lib/tls/acmed/jrmu9.inter9.org.crt -e -s -n $3

cpu% cat /mail/lib/blocked
#
#	addresses that we refuse to accept messages from
#

dial	152.166.0.0/15, 152.168.0.0/14		#aol modems
dial	152.172.0.0/15, 152.174.0.0/16
allow	104.167.242.0/24	#host.ircnow.org
allow	63.12.0.0/16				#uunet modems (63.0.0.0-63.31.255.255 not 12)
dial	63.0.0.0/11				#uunet modems (63.0.0.0-63.31.255.255 not 12)

#
#	sites
#
*block	cyberpromo.com!*
block	255.255.255.255/32

#
#	users
#

*block	*!freeporn*

#
#	accounts
#

*block	aol.com!makemoneyfast
*allow	cse.psu.edu!owner-9fans			#hi scott

cpu% cat /mail/lib/smtpd.conf
#
#	sample smtpd configuration options for inside connections
#

#
#	replace jrmu9.inter9.org with the name of your domain
#	replace 10.0.0.0 with the IP address range of your networks

defaultdomain		jrmu9.inter9.org
norelay			off	#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 104.167.242.0/24

ourdomains *.inter9.org, *.ircnow.org, breadofgod.org

cpu% cat /mail/lib/remotemail
#!/bin/rc
shift
sender=$1
shift
addr=$1
shift
fd=`{/bin/upas/aliasmail -f $sender}
switch($fd){
case *.*
	fd=jrmu9.inter9.org;
case *
	fd=jrmu9.inter9.org
}
exec /bin/upas/smtp -C -s -h $fd $addr $sender $*

I do not have ratfs running.

-- 
jrmu
IRCNow (https://ircnow.org)

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

* Re: [9front] Unable to relay email with upas/smtpd
  2024-09-28  3:30 [9front] Unable to relay email with upas/smtpd jrmu
@ 2024-09-28 19:13 ` william
  0 siblings, 0 replies; 2+ messages in thread
From: william @ 2024-09-28 19:13 UTC (permalink / raw)
  To: 9front

I could be wrong but you need to set relay to on?
norelay on #allow relaying

# if norelay is on, you need to set the networks allowed to relay through. However I did comment out my 'ournets' so hmmm.

It's on for my system at least. 

I also added -d for more debug?
exec /bin/upas/smtp -d -h $fd $addr $sender $*

I get this stuff wrong but let's hope the experts jump in. upas mail relay is a pain.

Quoth jrmu <jrmu@ircnow.org>:
> Greetings,
> 
> I am trying to connect to my mail server jrmu9.inter9.org running upas/smtpd
> using mutt (on IP 104.167.242.140, domain breadofgod.org) to send email. I
> am able to connect using imap4d but I can't seem to relay any mail.
> 
> Any suggestions would be greatly appreciated.
> 
> Here is the error message I see on mutt:
> 
> [2024-09-27 18:34:48] SMTP session failed: 554 5.7.1 mail refused:  from 'jrmu9.inter9.org!jrmu'
> 
> And here is the error message I see in /sys/log/smtpd:
> 
> jrmu9.inter9.org Sep 27 18:34:39 ehlo from 104.167.242.140 as jrmu9.inter9.org
> jrmu9.inter9.org Sep 27 18:34:39 started TLS with jrmu9.inter9.org
> jrmu9.inter9.org Sep 27 18:34:39 ehlo from 104.167.242.140 as jrmu9.inter9.org
> jrmu9.inter9.org Sep 27 18:34:39 auth(CRAM-MD5, (protected)) from jrmu9.inter9.org
> jrmu9.inter9.org Sep 27 18:34:40 ++[jrmu9.inter9.org/104.167.242.140] blocked: mail refused:  from 'jrmu9.inter9.org!jrmu'
> 
> and in /sys/log/mail:
> 
> jrmu9.inter9.org Sep 27 18:34:40 error ircnow.org!jrmu From jrmu9.inter9.org!jrmu Fri Sep 27 18:34:39 -0700 2024
> error+  from 'jrmu9.inter9.org!jrmu'
> error+ to 'ircnow.org!jrmu'
> error+ failed with error 'qer: creating data file /mail/queue/none/D.000431: permission denied: '/mail/queue/none'
> error+ '.
> error+ The mailer `/mail/lib/qmail 'jrmu9.inter9.org!jrmu' 'net!ircnow.org'' returned error status 71.
> error+ 
> error+ 
> 
> Here are the relevant files.
> 
> cpu% cat /bin/service/tcp587
> #!/bin/rc
> 
> user=`{cat /dev/user}
> 
> exec upas/smtpd -d -c /sys/lib/tls/acmed/jrmu9.inter9.org.crt -e -s -n $3
> 
> cpu% cat /mail/lib/blocked
> #
> #	addresses that we refuse to accept messages from
> #
> 
> dial	152.166.0.0/15, 152.168.0.0/14		#aol modems
> dial	152.172.0.0/15, 152.174.0.0/16
> allow	104.167.242.0/24	#host.ircnow.org
> allow	63.12.0.0/16				#uunet modems (63.0.0.0-63.31.255.255 not 12)
> dial	63.0.0.0/11				#uunet modems (63.0.0.0-63.31.255.255 not 12)
> 
> #
> #	sites
> #
> *block	cyberpromo.com!*
> block	255.255.255.255/32
> 
> #
> #	users
> #
> 
> *block	*!freeporn*
> 
> #
> #	accounts
> #
> 
> *block	aol.com!makemoneyfast
> *allow	cse.psu.edu!owner-9fans			#hi scott
> 
> cpu% cat /mail/lib/smtpd.conf
> #
> #	sample smtpd configuration options for inside connections
> #
> 
> #
> #	replace jrmu9.inter9.org with the name of your domain
> #	replace 10.0.0.0 with the IP address range of your networks
> 
> defaultdomain		jrmu9.inter9.org
> norelay			off	#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 104.167.242.0/24
> 
> ourdomains *.inter9.org, *.ircnow.org, breadofgod.org
> 
> cpu% cat /mail/lib/remotemail
> #!/bin/rc
> shift
> sender=$1
> shift
> addr=$1
> shift
> fd=`{/bin/upas/aliasmail -f $sender}
> switch($fd){
> case *.*
> 	fd=jrmu9.inter9.org;
> case *
> 	fd=jrmu9.inter9.org
> }
> exec /bin/upas/smtp -C -s -h $fd $addr $sender $*
> 
> I do not have ratfs running.
> 
> -- 
> jrmu
> IRCNow (https://ircnow.org)
> 


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

end of thread, other threads:[~2024-09-28 19:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-28  3:30 [9front] Unable to relay email with upas/smtpd jrmu
2024-09-28 19:13 ` william

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