Mailinglist Archive: opensuse (3666 mails)

< Previous Next >
Re: [SLE] postfix drop rejected emails
  • From: "Carlos E. R." <robin1.listas@xxxxxxxxxx>
  • Date: Fri, 18 Mar 2005 16:12:25 +0100 (CET)
  • Message-id: <Pine.LNX.4.58.0503181534040.12502@xxxxxxxxxxxxxxxx>

The Friday 2005-03-18 at 15:57 +0200, Andrei Bintintan wrote:

> Ok, I didn't explain my problem clear. It is this way:
> First a mail from mail@xxxxxxxxxxxxxxxxx was sent to klodoma@xxxxxxxxxx This
> email was rejected because I worked in the postfix settings, and I did
> something wrong. Due to this reject an email was sent from to
> mail@xxxxxxxxxxxxxxxxx to announce this reject. This second email which was
> sent from my host( is always rejected(relay), but the email was
> always resend.

Let me see.

> My question was: how can I delete the email from the mail queue after it was
> rejected. So that it is not sent anymore.
> I think I understanded clearly from the logs what happened. ( I hope so).

If an email is queued, it is shown by the command "mailq". Then, after
identifying it, you can delete it with the command:

postsuper -d queue_id

If, before deleting it, you want to read it, use this command:

postcat -q queue_id | less

The option "-q" is relatively new, depends on your version you may or may
not have it. If you don't, you have to find first the queue location.

> Mar 16 04:07:54 linz postfix/smtpd[11405]: NOQUEUE: reject: RCPT from
> unknown[]: 504 <c015836-srv7>: Helo command rejected: need
> fully-qualified hostname; from=<mail@xxxxxxxxxxxxxxxxx> to=<klodoma@xxxxxxxxx>
> proto=ESMTP helo=<c015836-srv7>
> Mar 16 04:07:55 linz postfix/smtpd[11405]: disconnect from
> unknown[]
> This was reject due to the missconfiguration of postfix.

Ok. But notice that the email is rejected at the "Helo" stage, i.e, at the
very beginning, when it is negotiating the connection. Notice also the
"NOQUEUE" token: I understand that is simply not queued in your system.

Therefore, your postfix can not create a rejection message and send it
back, because it doesn't get to read the contents of the email above: it
is rejected before starting. It is the motograndprix server who will be
responsible to bounce back that email, not you.

That's how I read those two log entries above.

If the email was queued somewhere, there would be a log entry saying so.

> Then the other server:
> Mar 17 04:13:55 linz postfix/cleanup[20674]: 0365722D42:
> message-id=<20050317021355.0365722D42@xxxxxxxxx>

This second email (a full day later) is queued as id 0365722D42. mailq
should show it, unless already sent.

> Mar 17 04:13:55 linz postfix/qmgr[12505]: 0365722D42:
> from=<postmaster@xxxxxxxxx>, size=243, nrcpt=1 (queue active)

> Mar 17 04:13:58 linz postfix/smtp[20678]: 0365722D42:
> to=<mail@xxxxxxxxxxxxxxxxx>,[],
> delay=3, status=undeliverable (host[] said:
> 554 <mail@xxxxxxxxxxxxxxxxx>: Relay access denied (in reply to RCPT TO
> command))

Ok. This email is attempted to be sent from postmaster@xxxxxxxxx to
mail@xxxxxxxxxxxxxxxxx, but using an intermediate relay server, I'm not online now, so I can not "whois" it, nor know
if they are the MX server for grandprix.

You must check why you are relaying through them, if you should do so, and
why they reject you if you should be allowed. Perhaps you need to enable

> Mar 17 04:13:58 linz postfix/qmgr[12505]: 0365722D42: removed

That email is removed from the queue. It could appear on another one
(bounce? whatever), but I can not check it.

> Mar 17 04:14:01 linz postfix/smtpd[20670]: NOQUEUE: reject: RCPT from
> unknown[]: 450 <mail@xxxxxxxxxxxxxxxxx>: Sender address rejected:
> undeliverable address: host[] said: 554
> <mail@xxxxxxxxxxxxxxxxx>: Relay access denied (in reply to RCPT TO command);
> from=<mail@xxxxxxxxxxxxxxxxx> to=<klodoma@xxxxxxxxx> proto=ESMTP
> helo=<c015836-srv7>

This is more or less the same as the first one, with a different reason.
I'm confused about this one. You receive from "unknown"
an email from mail@xxxxxxxxxxxxxxxxx to klodoma@xxxxxxxxxx The sender
address is rejected because it is an "undeliverable address". I don't
understand the "Relay access denied" part in this one.

It not queued.

> Mar 17 04:14:01 linz postfix/smtpd[20670]: disconnect from
> unknown[]

I don't think you have multiple resending attempts of the same email. I
think they are different emails being bounced and rejected to and fro.

At least, that is what I gather from the small information I have.

Carlos Robinson

< Previous Next >
Follow Ups