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

2015-08-03 Thread michalr0
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.
  
 smtpinet  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
  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=t...@mydomain.dd proto=ESMTP helo=[192.168.1.140]
 
 


 





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

2015-08-03 Thread michalr0
 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.
  
 smtpinet  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   inetn   -   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






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

2015-08-02 Thread michalr0
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=t...@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=t...@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.7050...@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=t...@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=20150802112046.351e940...@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




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

2015-08-02 Thread wilfried.es...@essignetz.de
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



Am 02.08.2015 um 13:53 schrieb michalr0:
 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=t...@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=t...@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.7050...@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=t...@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=20150802112046.351e940...@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
 
 



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

2015-08-02 Thread Viktor Dukhovni
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=t...@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.


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

2015-08-02 Thread Matthew McGehrin

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.


smtpinet  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
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=t...@mydomain.dd proto=ESMTP helo=[192.168.1.140]