External Postfix (send and receive)

Post feedback about our hosted demo or your local install. Tell us what you love and/or what you’d like to see added in the future.
9acca9
Posts: 1
Joined: Thu Nov 02, 2017 10:05 pm

External Postfix (send and receive)

Postby 9acca9 » Thu Nov 02, 2017 10:49 pm

Hi. I ask for your help I have followed several tutorials and I do not give what I want.
The scenario is this:

server with Zimbra (192.168.1.10)
server with Postfix (192.168.1.20)

(yes, my boss need postfix in another server (i know that zimbra have his own postfix)

Well, we need Zimbra to send and receive the mails through the postfix server.

This is the configuration:

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

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

With this configuration, the mails that I send from Zimbra go through the postfix and it delivers them to its recipients (gmail, hotmail, etc.) but if someone tries to respond, this error happens.

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

What can i do??? What im doing wrong? What else would I need to configure?

Thanks to all!


Return to “Users”

Who is online

Users browsing this forum: No registered users and 2 guests