«

»

Aug 26 2011

Postfix error – mail for domain loops back to myself

I am hosting multiple domains on my box, using this guide on howtoforge.com, and after creating the first mailbox on one of them, yesterday i encountered an error :

mail for domain scariinterioare.net loops back to myself

Details received by sending mail client.

Error message received by mail client :

This is the mail system at host thebox.evilbox.ro.

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]>: mail for scariinterioare.net loops back to myself

Looking into the log file mail.log i saw this :

Aug 25 15:01:13 thebox postfix/smtpd[6940]: 36CA5C3EB2: client=localhost[127.0.0.1]
Aug 25 15:01:13 thebox postfix/cleanup[6931]: 36CA5C3EB2: message-id=<[email protected]>
Aug 25 15:01:13 thebox postfix/qmgr[28230]: 36CA5C3EB2: from=<[email protected]>, size=1608, nrcpt=2 (queue active)
Aug 25 15:01:13 thebox postfix/smtpd[6940]: disconnect from localhost[127.0.0.1]
Aug 25 15:01:13 thebox amavis[28235]: (28235-02) Passed CLEAN, [213.233.85.7] [213.233.85.7] <[email protected]> -> <[email protected]>, Message-ID:
Aug 25 15:01:13 thebox postfix/smtp[6932]: 14880C1345: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=13, delays=0.59/0.01/0.01/12
Aug 25 15:01:13 thebox postfix/qmgr[28230]: 14880C1345: removed
Aug 25 15:01:13 thebox postfix/smtpd[6927]: connect from unknown[192.168.0.1]
Aug 25 15:01:13 thebox postfix/smtp[6941]: warning: host mail.scariinterioare.net[89.90.91.92]:25 greeted me with my own hostname thebox.evilbox.ro
Aug 25 15:01:13 thebox postfix/smtp[6941]: warning: host mail.scariinterioare.net[89.90.91.92]:25 replied to HELO/EHLO with my own hostname thebox.evilbox.ro
Aug 25 15:01:13 thebox postfix/smtp[6941]: 36CA5C3EB2: to=<[email protected]>, relay=mail.scariinterioare.net[89.90.91.92]:25, delay=0.67, delays=0.13/0.02
Aug 25 15:01:13 thebox postfix/smtpd[6927]: disconnect from unknown[192.168.0.1]

Because my mail server uses virtual domains, the first two solutions that i found, do not apply :

/etc/postfix/local-host-names should contain mail.scariinterioare.net 
OR
/etc/postfix/main.cf , mydestination should include mail.scariinterioare.net

In my case the problem was, that i forgot to edit the mysql database and add the domain name scariinterioare.net to the domains table.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*