Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

status=bounced (mail for ... loops back to myself)

440 views
Skip to first unread message

michalr0

unread,
Aug 2, 2015, 7:53:40 AM8/2/15
to
Hello i have two instance of postfix
one for incoming (p:25) and one for outgoing (p:587)

I use this configuration because in this way i may check DNS and MX records. I have some virtual domains. When I send email to client which changing mail server (from me to other ISP) I sending emails to me server (old) not to new server

and I have one trouble
when I sended email from my server to outside server i working great
when I received mail from outside server is working great

but when i sended from me to me I have many errors
NOQUEUE: reject_warning: RCPT from 1-2-3-4.dynamic.xx[1.2.3.4]: 450 4.1.7 <ad...@mydomain.dd>: Sender address rejected: unverified address: mail for mydomain.dd loops back to myself; from=<ad...@mydomain.dd> to=<te...@mydomain.dd> proto=ESMTP helo=<[192.168.1.140]>
Aug 2 13:20:46 node1 postfix-out/smtp[13651]: warning: host mail.mydomain.dd[6.7.8.9]:25 greeted me with my own hostname node25.myserver.ss
Aug 2 13:20:46 node1 postfix-out/smtp[13651]: warning: host mail.mydomain.dd[6.7.8.9]:25 replied to HELO/EHLO with my own hostname node25.myserver.ss
Aug 2 13:20:46 node1 postfix-out/smtp[13651]: 351E9406A0: to=<ad...@mydomain.dd>, relay=mail.mydomain.dd[6.7.8.9]:25, delay=0.08, delays=0/0/0.08/0, dsn=5.4.6, status=bounced (mail for mydomain.dd loops back to myself)

-- from log --
Aug 2 13:20:45 node1 postfix-out/smtpd[13643]: connect from 1-2-3-4.dynamic.xx[1.2.3.4]
Aug 2 13:20:46 node1 postfix-out/smtpd[13643]: NOQUEUE: reject_warning: RCPT from 1-2-3-4.dynamic.xx[1.2.3.4]: 450 4.1.7 <ad...@mydomain.dd>: Sender address rejected: unverified address: mail for mydomain.dd loops back to myself; from=<ad...@mydomain.dd> to=<te...@mydomain.dd> proto=ESMTP helo=<[192.168.1.140]>
Aug 2 13:20:46 node1 postfix-out/smtpd[13643]: 18BF74067D: client=1-2-3-4.dynamic.xx[1.2.3.4], sasl_method=PLAIN, sasl_username=ad...@mydomain.dd
Aug 2 13:20:46 node1 postfix-out/cleanup[13649]: 18BF74067D: message-id=<55BDFCFD...@mydomain.dd>
Aug 2 13:20:46 node1 postfix-out/qmgr[12600]: 18BF74067D: from=<ad...@mydomain.dd>, size=563, nrcpt=1 (queue active)
Aug 2 13:20:46 node1 postfix/smtpd[13652]: connect from mail.mydomain.dd[6.7.8.9]
Aug 2 13:20:46 node1 postfix-out/smtp[13651]: warning: host mail.mydomain.dd[6.7.8.9]:25 greeted me with my own hostname node25.myserver.ss
Aug 2 13:20:46 node1 postfix-out/smtp[13651]: warning: host mail.mydomain.dd[6.7.8.9]:25 replied to HELO/EHLO with my own hostname node25.myserver.ss
Aug 2 13:20:46 node1 postfix-out/smtp[13651]: 18BF74067D: to=<te...@mydomain.dd>, relay=mail.mydomain.dd[6.7.8.9]:25, delay=0.15, delays=0.07/0/0.08/0, dsn=5.4.6, status=bounced (mail for mydomain.dd loops back to myself)
Aug 2 13:20:46 node1 postfix/smtpd[13652]: disconnect from mail.mydomain.dd[6.7.8.9] ehlo=1 quit=1 commands=2
Aug 2 13:20:46 node1 postfix-out/cleanup[13649]: 351E9406A0: message-id=<201508021120...@node25.myserver.ss>
Aug 2 13:20:46 node1 postfix-out/bounce[13654]: 18BF74067D: sender non-delivery notification: 351E9406A0
Aug 2 13:20:46 node1 postfix-out/qmgr[12600]: 351E9406A0: from=<>, size=2339, nrcpt=1 (queue active)
Aug 2 13:20:46 node1 postfix-out/qmgr[12600]: 18BF74067D: removed
Aug 2 13:20:46 node1 postfix-out/smtpd[13643]: disconnect from 1-2-3-4.dynamic.xx[1.2.3.4] ehlo=2 starttls=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=8
Aug 2 13:20:46 node1 postfix/smtpd[13652]: connect from mail.mydomain.dd[6.7.8.9]
Aug 2 13:20:46 node1 postfix-out/smtp[13651]: warning: host mail.mydomain.dd[6.7.8.9]:25 greeted me with my own hostname node25.myserver.ss
Aug 2 13:20:46 node1 postfix-out/smtp[13651]: warning: host mail.mydomain.dd[6.7.8.9]:25 replied to HELO/EHLO with my own hostname node25.myserver.ss
Aug 2 13:20:46 node1 postfix-out/smtp[13651]: 351E9406A0: to=<ad...@mydomain.dd>, relay=mail.mydomain.dd[6.7.8.9]:25, delay=0.08, delays=0/0/0.08/0, dsn=5.4.6, status=bounced (mail for mydomain.dd loops back to myself)
Aug 2 13:20:46 node1 postfix/smtpd[13652]: disconnect from mail.mydomain.dd[6.7.8.9] ehlo=1 quit=1 commands=2
Aug 2 13:20:46 node1 postfix-out/qmgr[12600]: 351E9406A0: removed
-- from log --


Thanks for help
Michael Rybnik

Wilfrie...@essignetz.de

unread,
Aug 2, 2015, 2:32:18 PM8/2/15
to
Hello,


mail.mydomain.dd[6.7.8.9] is the machine running your two instances?

Looks like your outgoing postfix himself thinks, he is the one for
domain mydomain.dd. Maybe you could give him a transport-table entry like :

mydomain.dd smtp:[1.2.3.4]:25

(Remember to run postmap)


If that doesn't help, please send master.cf and main.cf of both instances.


Willi

Matthew McGehrin

unread,
Aug 2, 2015, 6:29:08 PM8/2/15
to
Hello.

I would also recommend having unique hostnames as well, so that postfix
can keep track. It's perfectly fine to have the same IP.

IE: mail.mydomain.com, mail2.mydomain.com etc

Also, it might not be necessary to have two instances, you can probably
do it with one, as SMTPD is for incoming and SMTP is for outbound in
master.cf

You can specify customer ports in master.cf as well, for example, I have:

My default inbound which has amavis filtering, and I have a second
listener on 127.0.0.2 for internal relay mail.

smtp inet n - n - 25 smtpd
-o content_filter=smtp-amavis:[127.0.0.1]:10024

127.0.0.2:25 inet n - n - 25 smtpd
-o smtp_bind_address=$smtp_bind_override

Viktor Dukhovni

unread,
Aug 2, 2015, 6:33:33 PM8/2/15
to
On Sun, Aug 02, 2015 at 01:53:14PM +0200, michalr0 wrote:

> NOQUEUE: reject_warning: RCPT from 1-2-3-4.dynamic.xx[1.2.3.4]: 450 4.1.7 <ad...@mydomain.dd>: Sender address rejected: unverified address: mail for mydomain.dd loops back to myself; from=<ad...@mydomain.dd> to=<te...@mydomain.dd> proto=ESMTP helo=<[192.168.1.140]>

Don't forward mail to port 25 on the same host. Your recipient
verification probes are incorrectly forwarded via SMTP to the
outbound MTA even when the recipient domain is local.

--
Viktor.

michalr0

unread,
Aug 3, 2015, 3:45:16 AM8/3/15
to
OK thanks for sharing your experience
I'll be changing configurations


> Hello.
>
> I would also recommend having unique hostnames as well, so that postfix
> can keep track. It's perfectly fine to have the same IP.
>
> IE: mail.mydomain.com, mail2.mydomain.com etc
>
> Also, it might not be necessary to have two instances, you can probably
> do it with one, as SMTPD is for incoming and SMTP is for outbound in
> master.cf
>
> You can specify customer ports in master.cf as well, for example, I have:
>
> My default inbound which has amavis filtering, and I have a second
> listener on 127.0.0.2 for internal relay mail.
>
> smtp inet n - n - 25 smtpd
> -o content_filter=smtp-amavis:[127.0.0.1]:10024
>
> 127.0.0.2:25 inet n - n - 25 smtpd
> -o smtp_bind_address=$smtp_bind_override
>
>
>
> michalr0 wrote:
> > Hello i have two instance of postfix
> > one for incoming (p:25) and one for outgoing (p:587)
> >
> > I use this configuration because in this way i may check DNS and MX records. I have some virtual domains. When I send email to client which changing mail server (from me to other ISP) I sending emails to me server (old) not to new server
> >
> > and I have one trouble
> > when I sended email from my server to outside server i working great
> > when I received mail from outside server is working great
> >
> > but when i sended from me to me I have many errors

michalr0

unread,
Aug 3, 2015, 3:21:01 PM8/3/15
to
> Hello.
>
> I would also recommend having unique hostnames as well, so that postfix
> can keep track. It's perfectly fine to have the same IP.
>
> IE: mail.mydomain.com, mail2.mydomain.com etc
This working great, two different hostnames solves the problem
solution of one instance seems to be much better


> Also, it might not be necessary to have two instances, you can probably
> do it with one, as SMTPD is for incoming and SMTP is for outbound in
> master.cf
>
> You can specify customer ports in master.cf as well, for example, I have:
>
> My default inbound which has amavis filtering, and I have a second
> listener on 127.0.0.2 for internal relay mail.
>
> smtp inet n - n - 25 smtpd
> -o content_filter=smtp-amavis:[127.0.0.1]:10024
>
> 127.0.0.2:25 inet n - n - 25 smtpd
> -o smtp_bind_address=$smtp_bind_override

In this part I don't have any changes to better
for test I disable auth

master.cf
#smtp inet n - n - - smtpd

1.2.3.4:smtp inet n - n - - smtpd
-o myhostname=xxx.domain.cc

1.2.3.4:587 inet n - - - - smtpd
-o smtpd_client_restrictions=permit

when I added the virtual domain to such tests (gmail.com, facebook.com) e-mails reach out locally rather than according to MX records

0 new messages