On Dec 17 09:21:58, gil...@poolp.org wrote:
> On Tue, Dec 17, 2013 at 09:17:27AM +0100, Jan Stary wrote:
> > On Dec 17 08:35:28, gil...@poolp.org wrote:
> > > On Mon, Dec 16, 2013 at 07:08:17PM +0100, Jan Stary wrote:
> > > > I am using smtpd as my mail server on a network
> > > > where the relay server often replies with
> > > > 
> > > >          4.5.3 Too many recipients
> > > > 
> > > > Indeed, I was sending messages with a lot of recipients
> > > > (a group of students).
> > > > 
> > > > Is there a way in the smtpd configuration
> > > > to specify that a message with >N recipients
> > > > should be broken into N individual messages?
> > > > 
> > > 
> > > Why so ?
> > 
> > Because if not, the message is rejected with 4.5.3.
> > Messages with certain number of recipients just
> > cannot be sent through this relay.
> > 
> 
> Oh, the entire message is rejected ?
> That's kind of violent...
> 
> There's a tweak to limit the number of recipients but if we
> could avoid it, it would benefit everyone.
> 
> 
> > > Does it prevent OpenSMTPD from sending
> > > to the recipients it has submitted already ?
> > 
> > The relay disables my mailserver for some fixed time.
> > No messages from me will be accepted during that time.
> > 
> 
> The relay disabling code has been removed, this should no longer
> happen to you with last snapshot.
> 
> We will release 5.4.2 in a few days to fix the first shortcomings
> we experienced from 5.4.1 and this will be part of it.

With the lates snapshot (i386) this is still happening.
After a relay rejects me because of "too many recipients",
my OpenSMTPd disables that route.

Here is the messages for ~120 recipients, accpeted my my OpenSMTPd:

Jan  8 09:19:32 biblio smtpd[6960]: smtp-in: New session 1908b342ff9f6ed5 from 
host localhost [127.0.0.1]
Jan  8 09:19:32 biblio smtpd[6960]: smtp-in: Accepted message 045d1768 on 
session 1908b342ff9f6ed5: from=<jan.st...@fit.cvut.cz>, 
to=<bartu...@fit.cvut.cz>, size=5543, ndest=1, proto=ESMTP
Jan  8 09:19:32 biblio smtpd[6960]: smtp-in: Accepted message 045d1768 on 
session 1908b342ff9f6ed5: from=<jan.st...@fit.cvut.cz>, 
to=<brkam...@fit.cvut.cz>, size=5543, ndest=1, proto=ESMTP
[...]
Jan  8 09:19:32 biblio smtpd[6960]: smtp-in: Accepted message 045d1768 on 
session 1908b342ff9f6ed5: from=<jan.st...@fit.cvut.cz>, 
to=<daniel.vas...@fit.cvut.cz>, size=5543, ndest=1, proto=ESMTP
Jan  8 09:19:32 biblio smtpd[6960]: smtp-in: Closing session 1908b342ff9f6ed5


Here we try to deliver through the relay, and get rejected ...

Jan  8 09:19:32 biblio smtpd[28003]: smtp-out: Connecting to 
smtp://147.32.232.237:25 (relay.fit.cvut.cz) on session 62fe24cfe25a335f...
Jan  8 09:19:32 biblio smtpd[28003]: smtp-out: Connected on session 
62fe24cfe25a335f
Jan  8 09:19:32 biblio smtpd[28003]: relay: TempFail for 045d176837eedf25: 
session=62fe24cfe25a335f, from=<jan.st...@fit.cvut.cz>, 
to=<matys...@fit.cvut.cz>, rcpt=<->, source=147.32.233.137, 
relay=147.32.232.237 (relay.fit.cvut.cz), delay=0s, stat=452 4.5.3 Too many 
recipients
Jan  8 09:19:33 biblio smtpd[28003]: relay: TempFail for 045d17683ba5d943: 
session=62fe24cfe25a335f, from=<jan.st...@fit.cvut.cz>, 
to=<gorne...@fit.cvut.cz>, rcpt=<->, source=147.32.233.137, 
relay=147.32.232.237 (relay.fit.cvut.cz), delay=1s, stat=452 4.5.3 Too many 
recipients
[...]
Jan  8 09:19:45 biblio smtpd[28003]: relay: TempFail for 045d17685d71de97: 
session=62fe24cfe25a335f, from=<jan.st...@fit.cvut.cz>, 
to=<urban...@fit.cvut.cz>, rcpt=<->, source=147.32.233.137, 
relay=147.32.232.237 (relay.fit.cvut.cz), delay=13s, stat=452 4.5.3 Too many 
recipients
Jan  8 09:19:46 biblio smtpd[28003]: relay: TempFail for 045d17685da6a160: 
session=62fe24cfe25a335f, from=<jan.st...@fit.cvut.cz>, 
to=<plyus...@fit.cvut.cz>, rcpt=<->, source=147.32.233.137, 
relay=147.32.232.237 (relay.fit.cvut.cz), delay=14s, stat=452 4.5.3 Too many 
recipients

... resulting in the host being "Temporarily disabled"
(to be sure, is that my OpenSMTP disabling this relay,
or the relay temporarily disabling me?):

Jan  8 09:19:46 biblio smtpd[28003]: relay: TempFail for 045d17680388e458: 
session=62fe24cfe25a335f, from=<jan.st...@fit.cvut.cz>, 
to=<vondr...@fit.cvut.cz>, rcpt=<->, source=147.32.233.137, 
relay=147.32.232.237 (relay.fit.cvut.cz), delay=14s, stat=Host temporarily 
disabled
Jan  8 09:19:46 biblio smtpd[28003]: relay: TempFail for 045d17680c1c0e65: 
session=62fe24cfe25a335f, from=<jan.st...@fit.cvut.cz>, 
to=<zahra...@fit.cvut.cz>, rcpt=<->, source=147.32.233.137, 
relay=147.32.232.237 (relay.fit.cvut.cz), delay=14s, stat=Host temporarily 
disabled
[...]
Jan  8 09:19:46 biblio smtpd[28003]: relay: TempFail for 045d1768fb82541f: 
session=62fe24cfe25a335f, from=<jan.st...@fit.cvut.cz>, 
to=<dudas...@fit.cvut.cz>, rcpt=<->, source=147.32.233.137, 
relay=147.32.232.237 (relay.fit.cvut.cz), delay=14s, stat=Host temporarily 
disabled
Jan  8 09:19:46 biblio smtpd[28003]: relay: TempFail for 045d1768fcf95048: 
session=62fe24cfe25a335f, from=<jan.st...@fit.cvut.cz>, 
to=<tumov...@fit.cvut.cz>, rcpt=<->, source=147.32.233.137, 
relay=147.32.232.237 (relay.fit.cvut.cz), delay=14s, stat=Host temporarily 
disabled


Eventually, OpenSMTP gives up on that route completely for 800s:

Jan  8 09:19:46 biblio smtpd[28003]: smtp-out: Disabling route [] <-> 
147.32.232.237 (relay.fit.cvut.cz) for 800s
Jan  8 09:19:46 biblio smtpd[28003]: smtp-out: Closing session 
62fe24cfe25a335f: 0 message sent.


As that was my only route, now I cannot send anything, right?
At any rate, it seems the route disabling code is still there.

        Thank you for your time

                Jan

Reply via email to