From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <9front-bounces@9front.inri.net> X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from 9front.inri.net (9front.inri.net [168.235.81.73]) by inbox.vuxu.org (Postfix) with ESMTP id 6DE1327405 for ; Sat, 28 Sep 2024 21:14:17 +0200 (CEST) Received: from maat.thinktankworkspaces.com ([45.79.94.76]) by 9front; Sat Sep 28 15:13:03 -0400 2024 Message-ID: <9E340059527BBBB578CA5694BED1B31B@thinktankworkspaces.com> To: 9front@9front.org Date: Sat, 28 Sep 2024 12:13:00 -0700 From: william@thinktankworkspaces.com In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: abstract YAML over HTML CSS software Subject: Re: [9front] Unable to relay email with upas/smtpd Reply-To: 9front@9front.org Precedence: bulk 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 : > 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) >