1

Topic: No Mail Received - NOQUEUE - 451 - Server Configuration Problem

Hi all,

First of all thanks for iRedMail :-D

I have just installed the latest stable version on a fresh Ubuntu 10.4 XEN image and I can send mail fine. Everything seems to be working but when I try sending mail to a user (virtual domain) and check mail.log I find this:

Nov 24 17:01:10 mx postfix/smtpd[1683]: NOQUEUE: reject: RCPT from web27102.mail.ukl.yahoo.com[217.146.182.34]: 451 4.3.5 Server configuration problem; from=<[myemail]> to=<[user]@[domain.com]> proto=SMTP helo=<web27102.mail.ukl.yahoo.com>

I've removed my own and the recipients email addresses.

Telnetting into the server:

220 mx.axl.bz ESMTP iRedMail (Ubuntu)
HELO mx.axl.bz
250 mx.axl.bz
MAIL FROM: www@axl.bz
250 2.1.0 Ok
RCPT TO: [myexternalmail]
553 5.7.1 <www@axl.bz>: Sender address rejected: not logged in

Not really sure where else to look.

Any help is much appreciated.

2 (edited by Axel 2010-11-25 02:29:30)

Re: No Mail Received - NOQUEUE - 451 - Server Configuration Problem

I've tried sending another test from my Google Apps account (gmail) to www@axl.bz

When the message hits my server mail.log shows "Sender address rejected: not logged in":

Nov 24 18:25:38 mx postfix/smtpd[2189]: connect from mail-qw0-f47.google.com[209.85.216.47]
Nov 24 18:25:38 mx postfix/smtpd[2189]: NOQUEUE: reject: RCPT from mail-qw0-f47.google.com[209.85.216.47]: 553 5.7.1 <axel@segebrecht.com>: Sender address rejected: not logged in; from=<[mygooglemail]> to=<[myaddress]@axl.bz> proto=ESMTP helo=<mail-qw0-f47.google.com>
Nov 24 18:25:38 mx postfix/smtpd[2189]: disconnect from mail-qw0-f47.google.com[209.85.216.47]

I then get the follow error message in my google mailbox:

553 553 5.7.1 <[mygooglemail]>: Sender address rejected: not logged in (state 14).

Received: by 10.224.45.143 with SMTP id e15mr565032qaf.32.1290623136659; Wed,
24 Nov 2010 10:25:36 -0800 (PST)
Received: by 10.220.76.210 with HTTP; Wed, 24 Nov 2010 10:25:36 -0800 (PST)
Date: Wed, 24 Nov 2010 18:25:36 +0000
Message-ID: <AANLkTi=XUOE=v6DOnkWkqvpTq33kbb5vvW9apiP5fyP1@mail.gmail.com>
Subject: test
From: <[mygooglemail]>
To: hostmaster <[myemail]@axl.bz>

3

Re: No Mail Received - NOQUEUE - 451 - Server Configuration Problem

Axel wrote:

"Sender address rejected: not logged in"

Ok, managed to fix by adding the mail servers IPs I was sending mail from to my box to my postfix main.cf (/etc/postfix/main.cf). Thanks to another post in this forum.

However, I don't believe this is right as I cannot possibly add all IPs from all different mail sending servers out there to mynetworks! Surely there's something else I am missing here?

4

Re: No Mail Received - NOQUEUE - 451 - Server Configuration Problem

Axel wrote:

Nov 24 17:01:10 mx postfix/smtpd[1683]: NOQUEUE: reject: RCPT from web27102.mail.ukl.yahoo.com[217.146.182.34]: 451 4.3.5 Server configuration problem; from=<[myemail]> to=<[user]@[domain.com]> proto=SMTP helo=<web27102.mail.ukl.yahoo.com>

You should post full log instead of only this line. Also, please try to find out related log in dovecot log (/var/log/dovecot.log, /var/log/sieve.log).

5

Re: No Mail Received - NOQUEUE - 451 - Server Configuration Problem

Axel wrote:

553 5.7.1 <www@axl.bz>: Sender address rejected: not logged in

You must auth yourself to send mail with SMTP. Provide username (email) and password first.

6

Re: No Mail Received - NOQUEUE - 451 - Server Configuration Problem

@Axel:
1. The domain you are trying to send from is also setup on you iRedMail server instead of only on google's?
2. Check your Postfix configuration, especially smtpd_recipient_restrictions, smtpd_sender_restrictions, smtpd_helo_restrictions and paste them here.

7

Re: No Mail Received - NOQUEUE - 451 - Server Configuration Problem

Hi maxie_ro

Here's my postfix/main.cf on fixee / pastebin: http://fixee.org/paste/mmqzfcl/

I've read up on this issue on various postfix lists but can't seem to get it to work unless I enter every IP of every mail server that wants to deliver mail to a box on the server!

External mail server (eg Yahoo Mail) -> Postfix on my server -> looking to deliver to a local mail box (eg www@domain.com)

8

Re: No Mail Received - NOQUEUE - 451 - Server Configuration Problem

Try with these first:

smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_sender_login_mismatch
smtpd_recipient_restrictions =
        reject_unknown_sender_domain,
        reject_unknown_recipient_domain,
        reject_non_fqdn_sender,
        reject_non_fqdn_recipient,
        reject_unlisted_recipient,
        permit_mynetworks,
        permit_sasl_authenticated,
        reject_unauth_destination,
        reject_non_fqdn_helo_hostname,
        reject_invalid_helo_hostname

I have not included blacklists, policyd and whatever else.

9

Re: No Mail Received - NOQUEUE - 451 - Server Configuration Problem

Thanks maxie_ro! That'd did it :-D

10

Re: No Mail Received - NOQUEUE - 451 - Server Configuration Problem

Axel wrote:

Thanks maxie_ro! That'd did it :-D

Good to know. Now, reset mynetworks back to default:

mynetworks = 127.0.0.0/24