• 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

Issue Email forward to wrong domain, even when good one is given in the mail adress

AmaZili Communication

Basic Pleskian
Hi,

Running centos7.2 plesk 12.5, we have an issue on one domain email system acting strangely.

This domain is mydomain.com.
There is also a mydomain.fr which emails are handled through Google Apps.
The domain.fr is declared as an alias domain for thedomain.com in the panel
The email adresses on the .com have corresponding names on .fr domain.
The emails from .com were forwarded to the .fr equivalent adress.
No mailbox hosting defined on the .com adresses, just forwarding.

Everything was running smoothly for years now.
A few days ago we started to have troubles with emails.
When we tried to send emails from a domain hosted on the same server using an outlook client to a [email protected], it got returned with the message :
Code:
I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can delete your own text from the attached returned message.

                   The mail system

<[email protected]> (expanded from
    <[email protected]>): mail forwarding loop for
    [email protected]
and in the message log file we get :
Code:
Oct 11 15:48:27 serveur postfix/pipe[21471]: 40BBDB40165: to=<[email protected]>, orig_to=<[email protected]>, relay=plesk_virtual, delay=0.1, delays=0.06/0/0/0.04, dsn=5.4.6, status=bounced (mail forwarding loop for [email protected])

We tried to disable mail service on the .fr domain alias plesk panel hosting.
Destroyed the alias hosting.
Plesk repair mail

It's only getting worse with the effect that now even when we send to the .fr adress, it get rejected :
Code:
I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can delete your own text from the attached returned message.

                   The mail system

<[email protected]> (expanded from
    <[email protected]>): mail for mydomain.com loops
    back to myself

When we send email from another domain not hosted on the same server, it works fine for the [email protected].

Can someone help on this ?

Thanks
 
Last edited:
Check all redirect settings/mail forwarding settings of the accounts in question. Somewhere the recipient is redirecting back to the sender and the sender is redirecting it to the recipient.
 
Thanks Peter.

First thing, this was working fine for years and nothing has been changed.
Second, domain in .fr never redirect to anything.

This is a real issue, not just misconfiguration
 
Last edited:
Thanks Alex for your help,

I tried all of them.

None solved the problem.
Some commands seems not to apply.

Hereunder are the commands and results from all of the above links you mentionned ( I have change the real domain name to domain and resl address to 1.1.1.1 ) :

Code:
/usr/local/psa/bin/domain -u domain.fr -mail_service false

Unable to find domain with name 'domain.fr'

Code:
host domain.com
domain.com has address 1.1.1.1
domain.com mail is handled by 10 mx1.domain.com.

Code:
host domain.fr
domain.fr has address 1.1.1.1
domain.fr mail is handled by 5 alt1.aspmx.l.google.com.
domain.fr mail is handled by 5 alt2.aspmx.l.google.com.
domain.fr mail is handled by 10 aspmx4.googlemail.com.
domain.fr mail is handled by 1 aspmx.l.google.com.
domain.fr mail is handled by 10 aspmx2.googlemail.com.
domain.fr mail is handled by 1 aspmx3.googlemail.com.
domain.fr mail is handled by 10 aspmx5.googlemail.com.

Code:
ifconfig | grep  1.1.1.1
        inet 1.1.1.1  netmask 255.255.255.255  broadcast 1.1.1.1

Code:
cat: /etc/sysconfig/network-scripts/ifcfg-eth0-range0
        cat: /etc/sysconfig/network-scripts/ifcfg-eth0-range0: Aucun fichier ou dossier de ce type

Code:
cat /var/qmail/mailnames/domain.com/info/.qmail

cat: /var/qmail/mailnames/domain.com/info/.qmail: Aucun fichier ou dossier de ce type

Code:
ls -la /var/qmail/mailnames/

drwxr-x--- 16 popuser popuser 4096 12 oct.  14:41 domain.com
Nothing for the domain.fr

Code:
find  /var/qmail/mailnames/ -type l
the command returns nothing

Code:
ls -la /usr/sbin/sendmail

lrwxrwxrwx 1 root root 21 11 oct.  17:38 /usr/sbin/sendmail -> /etc/alternatives/mta

This is a real clue !
 
Back
Top