9front - general discussion about 9front
 help / color / mirror / Atom feed
From: jrmu <jrmu@ircnow.org>
To: 9front@9front.org
Subject: [9front] Unable to relay email with upas/smtpd
Date: Fri, 27 Sep 2024 20:30:11 -0700	[thread overview]
Message-ID: <Zvd4KawYwYazsJUD@ircnow.org> (raw)

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)

             reply	other threads:[~2024-09-28  3:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-28  3:30 jrmu [this message]
2024-09-28 19:13 ` william

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Zvd4KawYwYazsJUD@ircnow.org \
    --to=jrmu@ircnow.org \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).