greeted me with my own hostname (mail for mydomain.org.ar loops back to myself)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

greeted me with my own hostname (mail for mydomain.org.ar loops back to myself)

9acca9
Hi to all.
Please help......
im going crazy (i try a lot of thing and nothing) i cand send mails but, i
cant receive.

This is the desing:

local network
(zimbra (192.168.1.5)) --------- (postfix (192.168.1.20))
in different machines (yes i know that zimbra have postfix, but i want
config postfix in a different machine), so i dont have users in the postfix
machine for receive mails.

this is all my config:

main.cf

command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd
$daemon_directory/$process_name $process_id & sleep 5
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydomain = mydomain.org.ar
myhostname = postfix.mydomain.org.ar
myorigin = $mydomain
relay_domains = mydomain.org.ar
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
sample_directory = /usr/share/doc/postfix-2.10.1/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
smtpd_recipient_restrictions =
permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = mydomain.org.ar
smtpd_sasl_path = /etc/sasl2/smtpd.conf
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
unknown_local_recipient_reject_code = 550

----------------------------------------------------------------

master.cf

smtp      inet  n       -       n       -       -       smtpd
pickup    unix  n       -       n       60      1       pickup
cleanup   unix  n       -       n       -       0       cleanup
qmgr      unix  n       -       n       300     1       qmgr
tlsmgr    unix  -       -       n       1000?   1       tlsmgr
rewrite   unix  -       -       n       -       -       trivial-rewrite
bounce    unix  -       -       n       -       0       bounce
defer     unix  -       -       n       -       0       bounce
trace     unix  -       -       n       -       0       bounce
verify    unix  -       -       n       -       1       verify
flush     unix  n       -       n       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       n       -       -       smtp
relay     unix  -       -       n       -       -       smtp
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
retry     unix  -       -       n       -       -       error
discard   unix  -       -       n       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
scache    unix  -       -       n       -       1       scache

------------------------------------------------------------------------------------------------------------------

This is the log error:


Nov  1 12:50:52 postfix postfix/smtpd[6206]: connect from
mail-pg0-f49.google.com[74.125.83.49]
Nov  1 12:50:53 postfix postfix/smtpd[6206]: 292EFAFC09:
client=mail-pg0-f49.google.com[74.125.83.49]
Nov  1 12:50:53 postfix postfix/cleanup[6210]: 292EFAFC09:
message-id=<[hidden email]>
Nov  1 12:50:53 postfix postfix/qmgr[6201]: 292EFAFC09:
from=<[hidden email]>, size=2693, nrcpt=1 (queue active)
Nov  1 12:50:53 postfix postfix/smtpd[6206]: disconnect from
mail-pg0-f49.google.com[74.125.83.49]
Nov  1 12:50:53 postfix postfix/smtpd[6206]: connect from
unknown[172.16.0.1]
Nov  1 12:50:53 postfix postfix/smtp[6211]: warning: host
postfix.mydomain.org.ar[190.2.135.194]:25 greeted me with my own hostname
postfix.mydomain.org.ar
Nov  1 12:50:53 postfix postfix/smtp[6211]: warning: host
postfix.mydomain.org.ar[190.2.135.194]:25 replied to HELO/EHLO with my own
hostname postfix.mydomain.org.ar
Nov  1 12:50:53 postfix postfix/smtp[6211]: 292EFAFC09:
to=<[hidden email]>, relay=postfix.mydomain.org.ar[190.2.135.194]:25,
delay=0.48, delays=0.19/0.01/0.28/0, dsn=5.4.6, status=bounced (mail for
mydomain.org.ar loops back to myself)
Nov  1 12:50:53 postfix postfix/smtpd[6206]: disconnect from
unknown[172.16.0.1]
Nov  1 12:50:53 postfix postfix/cleanup[6210]: 9F392AFC0B:
message-id=<[hidden email]>
Nov  1 12:50:53 postfix postfix/qmgr[6201]: 9F392AFC0B: from=<>, size=4683,
nrcpt=1 (queue active)
Nov  1 12:50:53 postfix postfix/bounce[6212]: 292EFAFC09: sender
non-delivery notification: 9F392AFC0B
Nov  1 12:50:53 postfix postfix/qmgr[6201]: 292EFAFC09: removed
Nov  1 12:51:00 postfix postfix/smtp[6213]: 9F392AFC0B:
to=<[hidden email]>,
relay=gmail-smtp-in.l.google.com[64.233.190.26]:25, delay=6.8,
delays=0/0.01/5.6/1.1, dsn=2.0.0, status=sent (250 2.0.0 OK 1509551885
e64si537222qkc.73 - gsmtp)
Nov  1 12:51:00 postfix postfix/qmgr[6201]: 9F392AFC0B: removed

This is the public ip (190.2.135.194) of postfix... so, yes he is talking to
it self... but why?? why postfix dont send those mails to zimbra??? What im
doing wrong???




--
Sent from: http://postfix.1071664.n5.nabble.com/Postfix-Users-f2.html
Reply | Threaded
Open this post in threaded view
|

Re: greeted me with my own hostname (mail for mydomain.org.ar loops back to myself)

Noel Jones-2
On 11/1/2017 11:02 AM, 9acca9 wrote:
> This is the desing:
>
> local network
> (zimbra (192.168.1.5)) --------- (postfix (192.168.1.20))

> to=<[hidden email]>, relay=postfix.mydomain.org.ar[190.2.135.194]:25,
> delay=0.48, delays=0.19/0.01/0.28/0, dsn=5.4.6, status=bounced (mail for
> mydomain.org.ar loops back to myself)
>
> This is the public ip (190.2.135.194) of postfix... so, yes he is talking to
> it self... but why?? why postfix dont send those mails to zimbra??? What im
> doing wrong???


Sounds like you're missing a transport_maps entry to tell postfix
where to send mail for your domain.

http://www.postfix.org/STANDARD_CONFIGURATION_README.html#firewall



  -- Noel Jones
Reply | Threaded
Open this post in threaded view
|

Re: greeted me with my own hostname (mail for mydomain.org.ar loops back to myself)

9acca9
This are my Dns

mydomain.org.ar. IN MX 10 postfix.mydomain.org.ar.

mydomain.org.ar. IN TXT "v=spf1 a mx a:mydomain.org.ar a:mydomain.ar
a:mydomain.org.ar a:mail.mydomain.org.ar ip4:190.210.185.50
ip4:190.2.135.194 ip4:190.2.135.195 ip4:190.2.135.196 ip4:190.2.135.196
ip4:190.2.135.197 ip4:172.16.0.1 ?all"

_dmarc. IN  TXT "v = DMARC1; p = none; sp = ninguno; fo =; ri = 3600; rua =
mailto: [hidden email]; ruf = mailto: [hidden email] "

*.mydomain.org.ar.       IN A 190.210.185.50
www.mydomain.org.ar.      IN A 190.2.135.194
mail.mydomain.org.ar.      IN A   190.2.119.197
correo.mydomain.org.ar.  IN A   190.2.119.197
email.mydomain.org.ar.  IN A   190.2.119.197
postfix.mydomain.org.ar.  IN A   190.2.135.194

"Sounds like you're missing a transport_maps entry to tell postfix
where to send mail for your domain. " are you sure?? because this is those
kind of error???

Nov  1 12:50:53 postfix postfix/smtp[6211]: warning: host
postfix.mydomain.org.ar[190.2.135.194]:25 *greeted me with my own hostname
postfix.mydomain.org.ar*
Nov  1 12:50:53 postfix postfix/smtp[6211]: *warning: host
postfix.mydomain.org.ar[190.2.135.194]:25 replied to HELO/EHLO with my own
hostname postfix.mydomain.org.ar *


Thanks again!!



--
Sent from: http://postfix.1071664.n5.nabble.com/Postfix-Users-f2.html
Reply | Threaded
Open this post in threaded view
|

Re: greeted me with my own hostname (mail for mydomain.org.ar loops back to myself)

Noel Jones-2
On 11/2/2017 9:55 AM, 9acca9 wrote:

> "Sounds like you're missing a transport_maps entry to tell postfix
> where to send mail for your domain. " are you sure?? because this is those
> kind of error???
>

Yes.  Postfix receives mail for your domain but doesn't know to
forward it to your internal mail server. Without a transport map
entry, postfix looks up the MX, which points to your external IP.

You need a transport_maps entry.



  -- Noel Jones
Reply | Threaded
Open this post in threaded view
|

Re: greeted me with my own hostname (mail for mydomain.org.ar loops back to myself)

9acca9
ok, so for clarify a little more for me.

 with this config the mail arrive to the zimbra, but... now the zimbra mails
dosent go to any other side.

broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd
$daemon_directory/$process_name $process_id & sleep 5
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydomain = mydomain.org.ar
myhostname = postfix.mydomain.org.ar
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
relay_domains = mydomain.org.ar
relayhost = email.$mydomain
sample_directory = /usr/share/doc/postfix-2.10.1/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
smtpd_recipient_restrictions =
permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = mydomain.org.ar
smtpd_sasl_path = /etc/sasl2/smtpd.conf
smtpd_sasl_security_options = noanonymous
unknown_local_recipient_reject_code = 550


The mail arrive because this "relayhost = email.$mydomain"... but does is
not good i think, not just for the error, is also because now when i want to
send a mail from zimbra to other side, zimbra pass that mail to postfix and
postfix give tha mail back to zimbra... i think. im wright??

Thanks, im gonna try the transport command.



--
Sent from: http://postfix.1071664.n5.nabble.com/Postfix-Users-f2.html