All Working except wont receive mail

Ask questions about your setup or get help installing ZCS server (ZD section below).
Post Reply
Nigel
Posts: 3
Joined: Fri Sep 12, 2014 9:55 pm

All Working except wont receive mail

Post by Nigel »

Hi,
I have installed and got running all the features except I cannot receive email.
The domain is logical.com.au which resolves to 202.142.35.233 and port 25 is Port translated to the Zimbra server on 192.168.0.110. I can see the emails come in when looking at the zimbra.log. It just never gets to the inbox.
Any help will be greatly appreciated!
zimbra.log



Sep 29 14:14:39 logical amavis[8072]: (08072-03) ESMTP::10024
/opt/zimbra/amavisd/tmp/amavis-20050929T123701-08072: ->
Received: SIZE=2780 from logical.com.au ([127.0.0.1]) by localhost (logical.com.au
[127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08072-03 for ; Thu, 29 Sep
2005 14:14:39 +1000 (EST)

Sep 29 14:14:39 logical amavis[8072]: (08072-03) body hash: 1940a774ad7eb26f7caabae0ed93123c

Sep 29 14:14:39 logical amavis[8072]: (08072-03) Checking: rs7hn5necSll [202.142.38.10]
->

Sep 29 14:14:39 logical postfix/smtpd[14105]: disconnect from a.ns.bettacomputers.com.au[202.142.38.10]

Sep 29 14:14:39 logical amavis[8072]: (08072-03) p003 1 Content-Type: multipart/alternative

Sep 29 14:14:39 logical amavis[8072]: (08072-03) p001 1/1 Content-Type: text/plain, size: 3 B, name:

Sep 29 14:14:39 logical amavis[8072]: (08072-03) p002 1/2 Content-Type: text/html, size: 1067 B, name:

Sep 29 14:14:39 logical amavis[8072]: (08072-03) Checking for banned types and filenames

Sep 29 14:14:39 logical amavis[8072]: (08072-03) collect banned table[0]: nigel@logical.com.au, tables:
DEFAULT=>Amavis::Lookup::RE=ARRAY(0x95339f8)

Sep 29 14:14:39 logical amavis[8072]: (08072-03) p.path nigel@logical.com.au:
"P=p003,L=1,M=multipart/alternative | P=p001,L=1/1,M=text/plain,T=asc"

Sep 29 14:14:39 logical amavis[8072]: (08072-03) p.path nigel@logical.com.au:
"P=p003,L=1,M=multipart/alternative | P=p002,L=1/2,M=text/html,T=html"

Sep 29 14:14:39 logical amavis[8072]: (08072-03) Using ClamAV-clamd: (built-in interface)

Sep 29 14:14:39 logical amavis[8072]: (08072-03) Using (ClamAV-clamd) on dir: CONTSCAN
/opt/zimbra/amavisd/tmp/amavis-20050929T123701-08072/parts


Sep 29 14:14:39 logical amavis[8072]: (08072-03) ClamAV-clamd: Connecting to socket 127.0.0.1:3310

Sep 29 14:14:39 logical amavis[8072]: (08072-03) ClamAV-clamd: Sending CONTSCAN
/opt/zimbra/amavisd/tmp/amavis-20050929T123701-08072/parts
to INET socket 127.0.0.1:3310

Sep 29 14:14:39 logical clamd[8364]: SelfCheck: Database status OK.

Sep 29 14:14:39 logical amavis[8072]: (08072-03) ask_av (ClamAV-clamd):
/opt/zimbra/amavisd/tmp/amavis-20050929T123701-08072/parts CLEAN

Sep 29 14:14:39 logical amavis[8072]: (08072-03) ClamAV-clamd result: clean

Sep 29 14:14:39 logical amavis[8072]: (08072-03) spam_scan: hits=1.047
tests=[BAYES_50=0.001,HTML_90_100=0.022,HTML_MESSAGE=0.001,MIME_HTML_MOSTLY=1.023]

Sep 29 14:14:39 logical amavis[8072]: (08072-03) lookup_ldap_attr(amavisspamkilllevel) (WARN: no such
attribute in LDAP entry), "nigel@logical.com.au" result=undef

Sep 29 14:14:39 logical amavis[8072]: (08072-03) lookup_ldap_attr(amavisspamtaglevel) (WARN: no such
attribute in LDAP entry), "nigel@logical.com.au" result=undef

Sep 29 14:14:39 logical amavis[8072]: (08072-03) lookup_ldap_attr(amavisspamtag2level) (WARN: no such
attribute in LDAP entry), "nigel@logical.com.au" result=undef

Sep 29 14:14:39 logical amavis[8072]: (08072-03) SPAM-TAG, ->
, No, hits=1.047 tagged_above=-10 required=6.6 autolearn=no tests=[BAYES_50=0.001,
HTML_90_100=0.022, HTML_MESSAGE=0.001, MIME_HTML_MOSTLY=1.023]

Sep 29 14:14:39 logical postfix/smtpd[22625]: initializing the server-side TLS engine

Sep 29 14:14:39 logical postfix/smtpd[22625]: connect from localhost.localdomain[127.0.0.1]

Sep 29 14:14:39 logical amavis[8072]: (08072-03) AUTH not needed, user='', MTA offers ''

Sep 29 14:14:39 logical postfix/smtpd[22625]: 62E30B186E0: client=localhost.localdomain[127.0.0.1]

Sep 29 14:14:39 logical amavis[8072]: (08072-03) response to RCPT TO for : "250 Ok"

Sep 29 14:14:39 logical postfix/cleanup[22595]: 62E30B186E0:
message-id=

Sep 29 14:14:39 logical postfix/qmgr[21296]: 62E30B186E0: from=, size=3403,
nrcpt=1 (queue active)

Sep 29 14:14:39 logical postfix/smtpd[22625]: disconnect from localhost.localdomain[127.0.0.1]

Sep 29 14:14:39 logical amavis[8072]: (08072-03) FWD via SMTP: ->
, 250 2.6.0 Ok, id=08072-03, from MTA([127.0.0.1]:10025): 250 Ok: queued as
62E30B186E0

Sep 29 14:14:39 logical amavis[8072]: (08072-03) lookup_ldap_attr(amavisspamtag2level) (WARN: no such
attribute in LDAP entry), "nigel@logical.com.au" result=undef

Sep 29 14:14:39 logical amavis[8072]: (08072-03) Passed CLEAN, [202.142.38.10] [202.142.38.82]
-> , Message-ID:
, mail_id: rs7hn5necSll, Hits: 1.047, 376 ms

Sep 29 14:14:39 logical amavis[8072]: (08072-03) TIMING [total 385 ms] - SMTP EHLO: 4 (1%)1, SMTP
pre-MAIL: 2 (0%)1, lookup_ldap: 35 (9%)11, SMTP pre-DATA-flush: 2 (1%)11, SMTP DATA: 4 (1%)12, body_hash:
2 (0%)13, gen_mail_id: 1 (0%)13, mime_decode: 29 (7%)20, get-file-type2: 15 (4%)24, decompose_part: 1
(0%)24, parts_decode: 0 (0%)24, AV-scan-1: 18 (5%)29, spam-wb-list: 5 (1%)30, SA msg read: 1 (0%)31, SA
parse: 3 (1%)31, SA check: 124 (32%)64, update_cache: 3 (1%)64, deal_with_mail_size: 1 (0%)65,
fwd-connect: 35 (9%)74, fwd-mail-from: 7 (2%)76, fwd-rcpt-to: 8 (2%)78, write-header: 6 (1%)79, fwd-data:
1 (0%)79, fwd-data-end: 48 (12%)92, fwd-rundown: 2 (1%)92, main_log_entry: 25 (7%)99, update_snmp: 2
(1%)99, unlink-2-files: 2 (0%)100, rundown: 1 (0%)100

Sep 29 14:14:39 logical postfix/smtp[22615]: F17D2B186DE: to=,
relay=127.0.0.1[127.0.0.1], delay=1, status=sent (250 2.6.0 Ok, id=08072-03, from MTA([127.0.0.1]:10025):
250 Ok: queued as 62E30B186E0)

Sep 29 14:14:39 logical amavis[8072]: (08072-03) extra modules loaded: Net/LDAP/Bind.pm

Sep 29 14:14:39 logical amavis[8072]: (08072-03) load: 0 %, total idle 5856.599 s, busy 1.167 s

Sep 29 14:14:39 logical postfix/qmgr[21296]: F17D2B186DE: removed

Sep 29 14:14:39 logical postfix/lmtp[22626]: 62E30B186E0: to=, relay=none, delay=0,
status=deferred (connect to logical.com.au[202.142.35.233]: Connection refused)

Postfix info



[root@logical postfix]# /opt/zimbra/postfix-2.2.3/sbin/postconf -n

alias_maps = hash:/etc/aliases

allow_mail_to_commands =

allow_mail_to_files =

broken_sasl_auth_clients = yes

command_directory = /opt/zimbra/postfix-2.2.3/sbin

config_directory = /opt/zimbra/postfix-2.2.3/conf

content_filter = smtp-amavis:[127.0.0.1]:10024

daemon_directory = /opt/zimbra/postfix-2.2.3/libexec

debug_peer_level = 2

disable_dns_lookups = no

header_checks = pcre:/opt/zimbra/conf/postfix_header_checks

html_directory = no

mail_owner = postfix

mailq_path = /opt/zimbra/postfix-2.2.3/sbin/mailq

manpage_directory = /opt/zimbra/postfix-2.2.3/man

message_size_limit = 10240000

mydestination = localhost.localdomain localhost

newaliases_path = /opt/zimbra/postfix-2.2.3/sbin/newaliases

queue_directory = /opt/zimbra/postfix-2.2.3/spool

readme_directory = no

relayhost =

sample_directory = /opt/zimbra/postfix-2.2.3/conf

sender_canonical_maps = ldap:/opt/zimbra/conf/ldap-scm.cf

sendmail_path = /opt/zimbra/postfix-2.2.3/sbin/sendmail

setgid_group = postdrop

smtpd_client_restrictions = reject_unauth_pipelining

smtpd_data_restrictions = reject_unauth_pipelining

smtpd_helo_required = yes

smtpd_recipient_restrictions = reject_non_fqdn_recipient, permit_sasl_authenticated, permit_mynetworks, reject_invalid_hostname, reject_non_fqdn_hostname, reject_non_fqdn_sender, reject_unauth_destination, permit

smtpd_sasl_auth_enable = yes

smtpd_tls_auth_only = yes

smtpd_tls_cert_file = /opt/zimbra/conf/smtpd.crt

smtpd_tls_key_file = /opt/zimbra/conf/smtpd.key

smtpd_tls_loglevel = 3

smtpd_use_tls = yes

transport_maps = ldap:/opt/zimbra/conf/ldap-transport.cf

unknown_local_recipient_reject_code = 550

virtual_alias_domains = ldap://opt/zimbra/conf/ldap-vad.cf

virtual_alias_maps = ldap:/opt/zimbra/conf/ldap-vam.cf

virtual_mailbox_domains = ldap:/opt/zimbra/conf/ldap-vmd.cf

virtual_mailbox_maps = ldap:/opt/zimbra/conf/ldap-vmm.cf

virtual_transport = error

[root@logical postfix]#

marcmac
Elite member
Elite member
Posts: 2091
Joined: Fri Sep 12, 2014 9:53 pm

All Working except wont receive mail

Post by marcmac »



Sep 29 14:14:39 logical amavis[8072]: (08072-03) extra modules loaded: Net/LDAP/Bind.pm

Sep 29 14:14:39 logical amavis[8072]: (08072-03) load: 0 %, total idle 5856.599 s, busy 1.167 s

Sep 29 14:14:39 logical postfix/qmgr[21296]: F17D2B186DE: removed

Sep 29 14:14:39 logical postfix/lmtp[22626]: 62E30B186E0: to=, relay=none, delay=0,
status=deferred (connect to logical.com.au[202.142.35.233]: Connection refused)


It looks like, after the amavis scan, postfix is attempting to hand the mail back to your public mailserver's IP. Via the admin console, mta tab, turn off DNS lookups on this server, and that should solve the problem for incoming mail. (You'll also want to set a relay_host, for outgoing mail delivery)
Post Reply