• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Qmail error : "Failure : this address no longer accepts mail"

Devow

New Pleskian
Hi everyone,

I have a problem since 2 days with sending emails.
I do not know if this is related but I modified a DNS record there shortly (but absolutely not the MX record).


Server Ubuntu 12.04
Plesk Panel 12.5.30


Log file :

Code:
Jan 29 16:09:02 ns306815 qmail: 1454080142.090553 new msg 56360988
Jan 29 16:09:02 ns306815 qmail: 1454080142.090568 info msg 56360988: bytes 1519 from <> qp 24016 uid 2522
Jan 29 16:09:02 ns306815 qmail: 1454080142.148243 starting delivery 35: msg 56360988 to local [email protected]
Jan 29 16:09:02 ns306815 qmail: 1454080142.148261 status: local 1/10 remote 0/20
Jan 29 16:09:02 ns306815 qmail-local-handlers[24017]: Handlers Filter before-local for qmail started ...
Jan 29 16:09:02 ns306815 qmail-local-handlers[24017]: from=
Jan 29 16:09:02 ns306815 qmail-local-handlers[24017]: to=ns306815.ip-188-165-207.eu-anonymous@ns306815.ip-188-165-207.eu
Jan 29 16:09:02 ns306815 qmail-local-handlers[24017]: mailbox: /var/qmail/mailnames/ns306815.ip-188-165-207.eu
Jan 29 16:09:02 ns306815 qmail-local-handlers[24017]: Unable to get sender domain by sender mailname
Jan 29 16:09:02 ns306815 qmail: 1454080142.185259 delivery 35: failure: This_address_no_longer_accepts_mail./
Jan 29 16:09:02 ns306815 qmail: 1454080142.185309 status: local 0/10 remote 0/20
Jan 29 16:09:02 ns306815 qmail-queue-handlers[24019]: Handlers Filter before-queue for qmail started ...
Jan 29 16:09:02 ns306815 qmail-queue-handlers[24019]: from=#@[]
Jan 29 16:09:02 ns306815 qmail-queue-handlers[24019]: [email protected]
Jan 29 16:09:02 ns306815 qmail-queue-handlers[24019]: handlers_stderr: SKIP
Jan 29 16:09:02 ns306815 qmail-queue-handlers[24019]: SKIP during call 'check-quota' handler
Jan 29 16:09:02 ns306815 qmail-queue-handlers[24019]: starter: submitter[24021] exited normally
Jan 29 16:09:02 ns306815 qmail: 1454080142.272871 bounce msg 56360988 qp 24019
Jan 29 16:09:02 ns306815 qmail: 1454080142.272889 end msg 56360988
Jan 29 16:09:02 ns306815 qmail: 1454080142.273316 new msg 56360986
Jan 29 16:09:02 ns306815 qmail: 1454080142.273335 info msg 56360986: bytes 2020 from <#@[]> qp 24021 uid 2522
Jan 29 16:09:02 ns306815 qmail: 1454080142.330939 starting delivery 36: msg 56360986 to local [email protected]
Jan 29 16:09:02 ns306815 qmail: 1454080142.330957 status: local 1/10 remote 0/20

Thanks for your help :)
 
Hello @trialotto ,

Thank you for your reply and sorry for my late answer, I was out for 2 weeks.

I added an A and NS records to add a webservice :

- ns.ns306815.ip-188-165-207.eu. // A // 188.165.207.24
- ns306815.ip-188-165-207.eu. // NS // ns.ns306815.ip-188-165-207.eu.

Code:
Jan 29 16:09:02 ns306815 qmail-local-handlers[24017]: Handlers Filter before-local for qmail started ...
Jan 29 16:09:02 ns306815 qmail-local-handlers[24017]: from=
Jan 29 16:09:02 ns306815 qmail-local-handlers[24017]: to=ns306815.ip-188-165-207.eu-anonymous@ns306815.ip-188-165-207.eu
Jan 29 16:09:02 ns306815 qmail-local-handlers[24017]: mailbox: /var/qmail/mailnames/ns306815.ip-188-165-207.eu
Jan 29 16:09:02 ns306815 qmail-local-handlers[24017]: Unable to get sender domain by sender mailname
Jan 29 16:09:02 ns306815 qmail: 1454080142.185259 delivery 35: failure: This_address_no_longer_accepts_mail./

I understand that qmail don't receive the "From" parameter. The problem could be in PHP side ?

Thanks.
 
@Devow,

The output you have provided indicates that you are (simply) sending a mail to the domain ns306815.ip-188-165-207.eu.

If that domain is not created on Plesk, you will get this type of standard behaviour: the domain and corresponding mailboxes do not exist.

Anyway, with respect to DNS records, note the following:

- a NS, A and MX record are various types of DNS records,
- a NS record is only required to point at your server, if that server functions as a primary nameserver,
- a MX record points (indirectly) to a subdomain, like mail.<domain>.tld, and a corresponding A record resolves the subdomain to the IP of your server,

and it may become clear by now that your A and NS records are not the most suitable DNS records to enable a "webservice of any kind" and this is quite an understatement.

In essence, in order to have mail delivered to a specific mailbox, a domain should exist on the server, with some A record pointing this domain to the IP of your server.

One exception exists, in the sense that mail can be delivered to the "localhost", but in that case the hostname of the server should be properly set up (with corresponding DNS records).

In your case, it seems to be the case that BOTH DNS records AND hostname settings are incorrect.

In short, you should try to set a proper hostname first.

Note that you should use a FQDN (i.e. Fully Qualified Domain Name): a server with hostname "host" and domain called "test.com" has a FQDN equal to host.test.com.

You could check your /etc/hostname file to check whether a proper hostname is set, otherwise set a new one.

Hope the above helps a bit.

Regards.....
 
@trialotto

Thanks for your explanation about DNS settings, I'm not very informed on the subject :)

I saw in my Plesk DNS configuration :
- A record : mail.ns306815.ip-188-165-207.eu. // A // 188.165.207.XXX
- MX record : ns306815.ip-188-165-207.eu. // MX (10) // mail.ns306815.ip-188-165-207.eu.

In my /etc/hosts file I have the line :
- 188.165.207.XXX ns306815.ip-188-165-207.eu


About that you told me, the declared host is ns306815.ip-188.165.27.eu.
The mail server mail.ns306815.ip-188-165-207.eu is declared for the domain ns306815.ip-188.165.27.eu. [MX]
The nameserver ns306815.ip-188.165.27.eu. correspond to the 188.165.207.XXX [A]

Normally it shouldn't be well configured like this ?


Thanks for your help
 
The problem occurs when I'm sending an internal email.

When I send an email to my Gmail, it's ok. Then I think it's not a DNS misconfiguration...

Strange thing, when I sent an email to an internal email [email protected] :
Feb 16 11:52:11 ns306815 qmail-local-handlers[10127]: to=[email protected]

I didn't see [email protected], only [email protected] even if [email protected] is not in the diffusion list.

I'll search where Qmail collect the "to" parameter ;)
 
Back
Top