LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-18-2015, 09:32 AM   #1
battles
Member
 
Registered: Apr 2014
Distribution: Debian GNU/Linux 7.5 (wheezy)
Posts: 258

Rep: Reputation: Disabled
Postfix 'loops back to myself' error


I am having this error:
-------------------------------------------
This is the mail system at host mail.myserver.net.

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

<john@mail.myserver.net> (expanded from <admin@myserver.net>): mail for
mail.myserver.net loops back to myself
-------------------------------------------

My postfix aliases file:
-------------------------------------------
# /etc/aliases

mailer-daemon: postmaster
postmaster: john, me@myisp.net
hostmaster: john, me@myisp.net
webmaster: john, me@myisp.net
admin: john, me@myisp.net
abuse: john, me@myisp.net
john: john, me@myisp.net
information: william
-------------------------------------------

Some of my main.cf file:
-------------------------------------------
myhostname = mail.myserver.net
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = myserver.net, localhost, localhost.localdomain
relayhost =
-------------------------------------------

This is the exact setup I have on another server, but I don't get the loop back problem.
Somehow postfix seems to be expanding the user john mail to include the 'mail.' in
the address (john@mail.myserver.net). Not sure what is causing that. My DN points
directly to my own DNS Server. Any suggestions?

Thanks.
 
Old 02-18-2015, 07:42 PM   #2
battles
Member
 
Registered: Apr 2014
Distribution: Debian GNU/Linux 7.5 (wheezy)
Posts: 258

Original Poster
Rep: Reputation: Disabled
This fixed it:
mydestination = myserver.net, localhost, mail.myserver.net

Strange that it worked the other way in my other server.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix : mail for domain.com loops back to myself yobogs Linux - Server 15 09-13-2015 11:03 PM
Postfix mail for mydomain.com loops back to myself Problem stimpack Linux - Server 1 03-20-2013 06:16 AM
[SOLVED] Postfix as a mail delivery server fails (status bounced loops back to myself) Larry James Linux - Server 8 07-18-2011 06:42 PM
Postfix mail loops back to myself iceman42 Linux - Server 3 08-03-2010 05:59 AM
postfix virtual hosting problem - mail for domain.com loops back to myself ddaas Linux - Server 4 12-28-2008 08:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration