Discussion:
Postfix Error: mail loops back to myself
(too old to reply)
Saqib Ali
2013-01-13 21:45:45 UTC
Permalink
I have installed, configured and run the postfix mail server.

Here is my main.cf file:

myhostname = myhost.mydomain.com
mydomain = mydomain.com
myorigin = $mydomain
inet_interfaces = all
#inet_interfaces = $myhostname
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, mail.$mydomain
mynetworks = 192.168.0.0/24, 127.0.0.0/8
relay_domains =
home_mailbox = Maildir/
But when I use mutt to send a local email from myuser to myuser, I see the following messages in /var/log/maillog.

Jan 13 16:35:45 myhost postfix/pickup[26227]: 498C81851: uid=500 from=<myuser>
Jan 13 16:35:45 myhost postfix/cleanup[26431]: 498C81851: message-id=<***@myhost.compute-1.internal>
Jan 13 16:35:45 myhost postfix/qmgr[26228]: 498C81851: from=<***@mydomain.com>, size=537, nrcpt=1 (queue active)
Jan 13 16:35:45 myhost postfix/smtp[26433]: 498C81851: to=<***@myhost.compute-1.internal>, relay=none, delay=0.06, delays=0.05/0.01/0/0, dsn=5.4.6, status=bounced (mail for myhost.compute-1.internal loops back to myself)
Jan 13 16:35:45 myhost postfix/cleanup[26431]: 561FC1855: message-id=<***@myhost.mydomain.com>
Jan 13 16:35:45 myhost postfix/qmgr[26228]: 561FC1855: from=<>, size=2602, nrcpt=1 (queue active)
Jan 13 16:35:45 myhost postfix/bounce[26434]: 498C81851: sender non-delivery notification: 561FC1855
Jan 13 16:35:45 myhost postfix/qmgr[26228]: 498C81851: removed
Jan 13 16:35:45 myhost postfix/local[26436]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Jan 13 16:35:45 myhost postfix/local[26436]: 561FC1855: to=<***@mydomain.com>, relay=local, delay=0.04, delays=0.01/0.01/0/0.02, dsn=2.0.0, status=sent (delivered to maildir)
Jan 13 16:35:45 myhost postfix/qmgr[26228]: 561FC1855: removed
Why does it say that mail loops back to myself??
Rob Brown
2013-01-14 23:31:49 UTC
Permalink
On 2013-01-13, Saqib Ali <***@gmail.com> wrote:
...
Post by Saqib Ali
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, mail.$mydomain
...
...


Dunno. Could it be because you don't have myhost.compute-1.internal in
mydestingation?
--
Rob Brown ***@gmcl.com
Loading...