1

Topic: I can’t use the SMTP client to send emails, and the server always prom

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
postconf -n

alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
allow_min_user = no
allow_percent_hack = no
always_bcc = manager@ddutech.com
biff = no
body_checks = pcre:/etc/postfix/body_checks.pcre
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
debug_peer_list = 27.110.238.66
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5
disable_vrfy_command = yes
dovecot_destination_recipient_limit = 1
enable_long_queue_ids = yes
enable_original_recipient = no
header_checks = pcre:/etc/postfix/header_checks
inet_interfaces = all
inet_protocols = all
lmtp_tls_mandatory_protocols = !SSLv2 !SSLv3
lmtp_tls_protocols = !SSLv2 !SSLv3
mail_owner = postfix
mailq_path = /usr/bin/mailq
message_size_limit = 15728640
mlmmj_destination_recipient_limit = 1
mydestination = $myhostname, localhost, localhost.localdomain
mydomain = mx.ddutech.com
myhostname = mx.ddutech.com
mynetworks = 127.0.0.1 [::1] 27.110.238.66 116.50.243.122
myorigin = mx.ddutech.com
newaliases_path = /usr/bin/newaliases
postscreen_access_list = permit_mynetworks cidr:/etc/postfix/postscreen_access.cidr
postscreen_blacklist_action = drop
postscreen_dnsbl_action = drop
postscreen_dnsbl_reply_map = texthash:/etc/postfix/postscreen_dnsbl_reply
postscreen_dnsbl_sites = zen.spamhaus.org=127.0.0.[2..11]*3 b.barracudacentral.org=127.0.0.2*2
postscreen_dnsbl_threshold = 2
postscreen_greet_action = drop
proxy_read_maps = $canonical_maps $lmtp_generic_maps $local_recipient_maps $mydestination $mynetworks $recipient_bcc_maps $recipient_canonical_maps $relay_domains $relay_recipient_maps $relocated_maps $sender_bcc_maps $sender_canonical_maps $smtp_generic_maps $smtpd_sender_login_maps $transport_maps $virtual_alias_domains $virtual_alias_maps $virtual_mailbox_domains $virtual_mailbox_maps $smtpd_sender_restrictions $sender_dependent_relayhost_maps
queue_directory = /var/spool/postfix
recipient_bcc_maps =
recipient_delimiter = +
relay_domains =
relay_recipient_maps =
sender_bcc_maps =
sender_dependent_relayhost_maps =
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
show_user_unknown_table_name = no
smtp-amavis_destination_recipient_limit = 1
smtp_tls_CAfile = $smtpd_tls_CAfile
smtp_tls_CApath = /etc/pki/tls/certs
smtp_tls_loglevel = 1
smtp_tls_mandatory_protocols = !SSLv2 !SSLv3
smtp_tls_note_starttls_offer = yes
smtp_tls_protocols = !SSLv2 !SSLv3
smtp_tls_security_level = may
smtpd_command_filter = pcre:/etc/postfix/command_filter.pcre
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:7777
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks check_helo_access pcre:/etc/postfix/helo_access.pcre reject_unknown_helo_hostname
smtpd_recipient_restrictions = reject_non_fqdn_recipient reject_unlisted_recipient permit_mynetworks check_policy_service inet:127.0.0.1:7777 reject_unauth_destination check_policy_service inet:127.0.0.1:12340
smtpd_reject_unlisted_recipient = yes
smtpd_reject_unlisted_sender = yes
smtpd_sasl_local_domain = ddutech.com
smtpd_sasl_path = private/dovecot-auth
smtpd_sasl_type = dovecot
smtpd_sender_login_maps = proxy:ldap:/etc/postfix/ad_sender_login_maps.cf
smtpd_sender_restrictions = reject_non_fqdn_sender reject_unlisted_sender permit_mynetworks check_sender_access pcre:/etc/postfix/sender_access.pcre reject_unknown_sender_domain
smtpd_tls_CAfile = /etc/pki/tls/certs/iRedMail.crt
smtpd_tls_CApath = /etc/pki/tls/certs
smtpd_tls_cert_file = /etc/pki/tls/certs/iRedMail.crt
smtpd_tls_dh1024_param_file = /etc/pki/tls/dh2048_param.pem
smtpd_tls_dh512_param_file = /etc/pki/tls/dh512_param.pem
smtpd_tls_exclude_ciphers = aNULL, eNULL, EXPORT, DES, RC4, MD5, PSK, aECDH, EDH-DSS-DES-CBC3-SHA, EDH-RSA-DES-CDC3-SHA, KRB5-DE5, CBC3-SHA
smtpd_tls_key_file = /etc/pki/tls/private/iRedMail.key
smtpd_tls_loglevel = 1
smtpd_tls_mandatory_protocols = !SSLv2 !SSLv3
smtpd_tls_protocols = !SSLv2 !SSLv3
smtpd_tls_security_level = may
swap_bangpath = no
tls_random_source = dev:/dev/urandom
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_domains =
virtual_alias_maps = proxy:ldap:/etc/postfix/ad_virtual_group_maps.cf
virtual_gid_maps = static:2000
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = ddutech.com
virtual_mailbox_maps = proxy:ldap:/etc/postfix/ad_virtual_mailbox_maps.cf
virtual_minimum_uid = 2000
virtual_transport = dovecot
virtual_uid_maps = static:2000

debug log:
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: warning: hostname host.3.static.wework.com does not resolve to address 27.110.238.66: Name or service not known
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: connect from unknown[27.110.238.66]
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: smtp_stream_setup: maxtime=300 enable_deadline=0
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: match_hostname: unknown ~? 127.0.0.1
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: match_hostaddr: 27.110.238.66 ~? 127.0.0.1
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: match_hostname: unknown ~? [::1]
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: match_hostaddr: 27.110.238.66 ~? [::1]
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: match_hostname: unknown ~? 27.110.238.66
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: match_hostaddr: 27.110.238.66 ~? 27.110.238.66
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: > unknown[27.110.238.66]: 220 mx.ddutech.com ESMTP Postfix
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: watchdog_pat: 0x55f1a4757640
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: < unknown[27.110.238.66]: EHLO smtpclient.apple
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: dict_pcre_lookup: /etc/postfix/command_filter.pcre: EHLO smtpclient.apple
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: match_list_match: unknown: no match
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: match_list_match: 27.110.238.66: no match
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: > unknown[27.110.238.66]: 250-mx.ddutech.com
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: > unknown[27.110.238.66]: 250-PIPELINING
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: > unknown[27.110.238.66]: 250-SIZE 15728640
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: > unknown[27.110.238.66]: 250-ETRN
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: > unknown[27.110.238.66]: 250-STARTTLS
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: > unknown[27.110.238.66]: 250-ENHANCEDSTATUSCODES
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: > unknown[27.110.238.66]: 250-8BITMIME
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: > unknown[27.110.238.66]: 250 DSN
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: watchdog_pat: 0x55f1a4757640
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: < unknown[27.110.238.66]: STARTTLS
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: dict_pcre_lookup: /etc/postfix/command_filter.pcre: STARTTLS
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: > unknown[27.110.238.66]: 220 2.0.0 Ready to start TLS
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: send attr request = seed
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: send attr size = 32
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: private/tlsmgr: wanted attribute: status
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute name: status
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute value: 0
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: private/tlsmgr: wanted attribute: seed
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute name: seed
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute value: WQnP6bbHcy/Bt3xTUxWFeJlMzyZoa09hP1R9F50bfwA=
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: private/tlsmgr: wanted attribute: (list terminator)
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute name: (end)
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: Anonymous TLS connection established from unknown[27.110.238.66]: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: xsasl_dovecot_server_create: SASL service=smtp, realm=ddutech.com
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: name_mask: noanonymous
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: xsasl_dovecot_server_connect: Connecting
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: xsasl_dovecot_server_connect: auth reply: VERSION?1?1
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: xsasl_dovecot_server_connect: auth reply: MECH?PLAIN?plaintext
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: name_mask: plaintext
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: xsasl_dovecot_server_connect: auth reply: MECH?LOGIN?plaintext
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: name_mask: plaintext
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: xsasl_dovecot_server_connect: auth reply: SPID?16611
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: xsasl_dovecot_server_connect: auth reply: CUID?2
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: xsasl_dovecot_server_connect: auth reply: COOKIE?820e021d915cab53b24dabf65fab0405
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: xsasl_dovecot_server_connect: auth reply: DONE
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: xsasl_dovecot_server_mech_filter: keep mechanism: PLAIN
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: xsasl_dovecot_server_mech_filter: keep mechanism: LOGIN
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: watchdog_pat: 0x55f1a4757640
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: < unknown[27.110.238.66]: EHLO smtpclient.apple
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: dict_pcre_lookup: /etc/postfix/command_filter.pcre: EHLO smtpclient.apple
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: match_list_match: unknown: no match
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: match_list_match: 27.110.238.66: no match
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: > unknown[27.110.238.66]: 250-mx.ddutech.com
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: > unknown[27.110.238.66]: 250-PIPELINING
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: > unknown[27.110.238.66]: 250-SIZE 15728640
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: > unknown[27.110.238.66]: 250-ETRN
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: > unknown[27.110.238.66]: 250-AUTH PLAIN LOGIN
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: > unknown[27.110.238.66]: 250-ENHANCEDSTATUSCODES
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: > unknown[27.110.238.66]: 250-8BITMIME
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: > unknown[27.110.238.66]: 250 DSN
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: watchdog_pat: 0x55f1a4757640
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: < unknown[27.110.238.66]: MAIL FROM:<vegit@ddutech.com>
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: dict_pcre_lookup: /etc/postfix/command_filter.pcre: MAIL FROM:<vegit@ddutech.com>
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: extract_addr: input: <vegit@ddutech.com>
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: smtpd_check_addr: addr=vegit@ddutech.com
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: connect to subsystem private/rewrite
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: send attr request = rewrite
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: send attr rule = local
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: send attr address = vegit@ddutech.com
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: private/rewrite socket: wanted attribute: flags
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute name: flags
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute value: 0
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: private/rewrite socket: wanted attribute: address
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute name: address
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute value: vegit@ddutech.com
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: private/rewrite socket: wanted attribute: (list terminator)
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute name: (end)
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: rewrite_clnt: local: vegit@ddutech.com -> vegit@ddutech.com
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: send attr request = resolve
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: send attr sender =
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: send attr address = vegit@ddutech.com
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: private/rewrite socket: wanted attribute: flags
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute name: flags
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute value: 0
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: private/rewrite socket: wanted attribute: transport
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute name: transport
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute value: dovecot
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: private/rewrite socket: wanted attribute: nexthop
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute name: nexthop
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute value: ddutech.com
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: private/rewrite socket: wanted attribute: recipient
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute name: recipient
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute value: vegit@ddutech.com
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: private/rewrite socket: wanted attribute: flags
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute name: flags
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute value: 1024
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: private/rewrite socket: wanted attribute: (list terminator)
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute name: (end)
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: resolve_clnt: `' -> `vegit@ddutech.com' -> transp=`dovecot' host=`ddutech.com' rcpt=`vegit@ddutech.com' flags= class=virtual
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: ctable_locate: install entry key vegit@ddutech.com
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: extract_addr: in: <vegit@ddutech.com>, result: vegit@ddutech.com
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: send attr request = rewrite
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: send attr rule = local
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: send attr address = double-bounce
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: private/rewrite socket: wanted attribute: flags
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute name: flags
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute value: 0
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: private/rewrite socket: wanted attribute: address
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute name: address
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute value: double-bounce@mx.ddutech.com
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: private/rewrite socket: wanted attribute: (list terminator)
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute name: (end)
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: rewrite_clnt: local: double-bounce -> double-bounce@mx.ddutech.com
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: smtpd_check_rewrite: trying: permit_inet_interfaces
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: permit_inet_interfaces: unknown 27.110.238.66
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: fsspace: .: block size 4096, blocks free 129843402
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: smtpd_check_queue: blocks 4096 avail 129843402 min_free 0 msg_size_limit 15728640
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: > unknown[27.110.238.66]: 250 2.1.0 Ok
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: watchdog_pat: 0x55f1a4757640
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: < unknown[27.110.238.66]: RCPT TO:<manager@ddutech.com>
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: dict_pcre_lookup: /etc/postfix/command_filter.pcre: RCPT TO:<manager@ddutech.com>
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: extract_addr: input: <manager@ddutech.com>
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: smtpd_check_addr: addr=manager@ddutech.com
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: send attr request = rewrite
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: send attr rule = local
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: send attr address = manager@ddutech.com
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: private/rewrite socket: wanted attribute: flags
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute name: flags
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute value: 0
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: private/rewrite socket: wanted attribute: address
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute name: address
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute value: manager@ddutech.com
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: private/rewrite socket: wanted attribute: (list terminator)
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute name: (end)
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: rewrite_clnt: local: manager@ddutech.com -> manager@ddutech.com
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: send attr request = resolve
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: send attr sender =
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: send attr address = manager@ddutech.com
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: private/rewrite socket: wanted attribute: flags
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute name: flags
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute value: 0
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: private/rewrite socket: wanted attribute: transport
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute name: transport
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute value: dovecot
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: private/rewrite socket: wanted attribute: nexthop
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute name: nexthop
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute value: ddutech.com
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: private/rewrite socket: wanted attribute: recipient
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute name: recipient
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute value: manager@ddutech.com
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: private/rewrite socket: wanted attribute: flags
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute name: flags
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute value: 1024
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: private/rewrite socket: wanted attribute: (list terminator)
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: input attribute name: (end)
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: resolve_clnt: `' -> `manager@ddutech.com' -> transp=`dovecot' host=`ddutech.com' rcpt=`manager@ddutech.com' flags= class=virtual
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: ctable_locate: install entry key manager@ddutech.com
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: extract_addr: in: <manager@ddutech.com>, result: manager@ddutech.com
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: >>> START Client host RESTRICTIONS <<<
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: generic_checks: name=permit_sasl_authenticated
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: generic_checks: name=permit_sasl_authenticated status=0
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: generic_checks: name=reject
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: NOQUEUE: reject: RCPT from unknown[27.110.238.66]: 554 5.7.1 <unknown[27.110.238.66]>: Client host rejected: Access denied; from=<vegit@ddutech.com> to=<manager@ddutech.com> proto=ESMTP helo=<smtpclient.apple>
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: generic_checks: name=reject status=2
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: >>> END Client host RESTRICTIONS <<<
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: > unknown[27.110.238.66]: 554 5.7.1 <unknown[27.110.238.66]>: Client host rejected: Access denied
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: watchdog_pat: 0x55f1a4757640
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: < unknown[27.110.238.66]: QUIT
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: dict_pcre_lookup: /etc/postfix/command_filter.pcre: QUIT
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: > unknown[27.110.238.66]: 221 2.0.0 Bye
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: match_hostname: unknown ~? 127.0.0.1
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: match_hostaddr: 27.110.238.66 ~? 127.0.0.1
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: match_hostname: unknown ~? [::1]
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: match_hostaddr: 27.110.238.66 ~? [::1]
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: match_hostname: unknown ~? 27.110.238.66
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: match_hostaddr: 27.110.238.66 ~? 27.110.238.66
Jan  6 06:48:45 mx postfix/submission/smtpd[16616]: disconnect from unknown[27.110.238.66]

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: I can’t use the SMTP client to send emails, and the server always prom

27.110.238.66 doesn't have a PTR set, but it is in your local networks?

also, in the logfiles there is never a login, so the email client trys to send an email without authentification and thus gets rejected

it is a problem with your smtp client which trys to use the mailserver as open relay

3

Re: I can’t use the SMTP client to send emails, and the server always prom

i want the same problem i cant send email trough the smtp, i use phpmaIler

i try use port 25 and 587 only show me error in port 25, port 587 do nothing

-<?php
require("../include/class.phpmailer2.php");

    $mail = new PHPMailer();
    //$mail = new SMTP();
    $mail->PluginDir = "../include/";
    $mail->IsSMTP();
    //$mail->IsMail();
    $mail->Host = "xxxxxx.com";
    $mail->Port = "25";
    $mail->SMTPSecure = "tls";
    $mail->SMTPAuth = true;
    $mail->From = "xxxxxx@xxxxx.com";
    $mail->Username = "xxxxx@xxxxx.com";
    $mail->Password = "xxxxxxx!";
    $mail->AddAddress("sistemas@gmail.com");
    $mail->Subject  = "First PHPMailer Message";
    $mail->Body = "Hi! \n\n This is my first e-mail sent through PHPMailer.";
    $mail->WordWrap = 50;
    $mail->SetLanguage("en");
    if(!$mail->Send()) {
          echo 'Mensaje no enviado.';
          echo 'Mailer error: ' . $mail->ErrorInfo;
    } else {
      echo 'Mensaje enviado.';
    }
?>

amavisd dont show me error's

the message fail its

Jan 10 18:21:09 mail20 postfix/smtpd[3108970]: 4JXrvn0TrGz4yhf8: reject: RCPT from www.txxxxx.xx.xx[148.xx.xx.xx]: 554 5.7.1 <sistemas@gmail.com>: Relay access denied; from=<xxxxxx@xxxxx.com.xx> to=<sistemas@gmail.com> proto=ESMTP helo=<www.tmultimod.com.mx>

this is my postconf -n

-alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
allow_min_user = no
allow_percent_hack = no
biff = no
body_checks = pcre:/etc/postfix/body_checks.pcre
command_directory = /usr/sbin
compatibility_level = 2
content_filter = smtp-amavis:[127.0.0.1]:10024
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
disable_vrfy_command = yes
dovecot_destination_recipient_limit = 1
enable_long_queue_ids = yes
enable_original_recipient = no
header_checks = pcre:/etc/postfix/header_checks
html_directory = no
inet_interfaces = all
inet_protocols = all
lmtp_tls_mandatory_protocols = !SSLv2 !SSLv3
lmtp_tls_protocols = !SSLv2 !SSLv3
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
message_size_limit = 26214400
meta_directory = /etc/postfix
mlmmj_destination_recipient_limit = 1
mydestination = $myhostname, localhost, localhost.localdomain
mydomain = mail20.megacarriers.com
myhostname = mail20.megacarriers.com
mynetworks = 127.0.0.1 [::1]
myorigin = mail20.megacarriers.com
newaliases_path = /usr/bin/newaliases.postfix
postscreen_access_list = permit_mynetworks cidr:/etc/postfix/postscreen_access.cidr
postscreen_blacklist_action = drop
postscreen_dnsbl_action = drop
postscreen_dnsbl_reply_map = texthash:/etc/postfix/postscreen_dnsbl_reply
postscreen_dnsbl_sites = zen.spamhaus.org=127.0.0.[2..11]*3 b.barracudacentral.org=127.0.0.2*2
postscreen_dnsbl_threshold = 2
postscreen_dnsbl_whitelist_threshold = -2
postscreen_greet_action = drop
proxy_read_maps = $canonical_maps $lmtp_generic_maps $local_recipient_maps $mydestination $mynetworks $recipient_bcc_maps $recipient_canonical_maps $relay_domains $relay_recipient_maps $relocated_maps $sender_bcc_maps $sender_canonical_maps $smtp_generic_maps $smtpd_sender_login_maps $transport_maps $virtual_alias_domains $virtual_alias_maps $virtual_mailbox_domains $virtual_mailbox_maps $smtpd_sender_restrictions $sender_dependent_relayhost_maps
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix/README_FILES
recipient_bcc_maps = proxy:mysql:/etc/postfix/mysql/recipient_bcc_maps_user.cf proxy:mysql:/etc/postfix/mysql/recipient_bcc_maps_domain.cf
recipient_delimiter = +
relay_domains = $mydestination proxy:mysql:/etc/postfix/mysql/relay_domains.cf
sample_directory = /usr/share/doc/postfix/samples
sender_bcc_maps = proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_user.cf proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_domain.cf
sender_dependent_relayhost_maps = proxy:mysql:/etc/postfix/mysql/sender_dependent_relayhost_maps.cf
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
shlib_directory = /usr/lib64/postfix
show_user_unknown_table_name = no
smtp-amavis_destination_recipient_limit = 1
smtp_tls_CAfile = $smtpd_tls_CAfile
smtp_tls_CApath = /etc/pki/tls/certs
smtp_tls_loglevel = 1
smtp_tls_mandatory_protocols = !SSLv2 !SSLv3
smtp_tls_note_starttls_offer = yes
smtp_tls_protocols = !SSLv2 !SSLv3
smtp_tls_security_level = may
smtpd_command_filter = pcre:/etc/postfix/command_filter.pcre
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:7777
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks permit_sasl_authenticated check_helo_access pcre:/etc/postfix/helo_access.pcre reject_non_fqdn_helo_hostname
smtpd_recipient_restrictions = reject_non_fqdn_recipient reject_unlisted_recipient check_policy_service inet:127.0.0.1:7777 permit_mynetworks permit_sasl_authenticated reject_unauth_destination check_policy_service inet:127.0.0.1:12340
smtpd_reject_unlisted_recipient = yes
smtpd_reject_unlisted_sender = yes
smtpd_sasl_path = private/dovecot-auth
smtpd_sasl_type = dovecot
smtpd_sender_login_maps = proxy:mysql:/etc/postfix/mysql/sender_login_maps.cf
smtpd_sender_restrictions = reject_non_fqdn_sender reject_unlisted_sender permit_mynetworks permit_sasl_authenticated check_sender_access pcre:/etc/postfix/sender_access.pcre reject_unknown_sender_domain
smtpd_tls_CAfile = /etc/pki/tls/certs/iRedMail.crt
smtpd_tls_CApath = /etc/pki/tls/certs
smtpd_tls_cert_file = /etc/pki/tls/certs/iRedMail.crt
smtpd_tls_dh1024_param_file = /etc/pki/tls/dh2048_param.pem
smtpd_tls_dh512_param_file = /etc/pki/tls/dh512_param.pem
smtpd_tls_exclude_ciphers = aNULL, eNULL, EXPORT, DES, RC4, MD5, PSK, aECDH, EDH-DSS-DES-CBC3-SHA, EDH-RSA-DES-CDC3-SHA, KRB5-DE5, CBC3-SHA
smtpd_tls_key_file = /etc/pki/tls/private/iRedMail.key
smtpd_tls_loglevel = 1
smtpd_tls_mandatory_protocols = !SSLv2 !SSLv3
smtpd_tls_protocols = !SSLv2 !SSLv3
smtpd_tls_security_level = may
swap_bangpath = no
tls_random_source = dev:/dev/urandom
transport_maps = proxy:mysql:/etc/postfix/mysql/transport_maps_user.cf proxy:mysql:/etc/postfix/mysql/transport_maps_maillist.cf proxy:mysql:/etc/postfix/mysql/transport_maps_domain.cf
unknown_local_recipient_reject_code = 550
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql/virtual_alias_maps.cf proxy:mysql:/etc/postfix/mysql/domain_alias_maps.cf proxy:mysql:/etc/postfix/mysql/catchall_maps.cf proxy:mysql:/etc/postfix/mysql/domain_alias_catchall_maps.cf
virtual_gid_maps = static:2000
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql/virtual_mailbox_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql/virtual_mailbox_maps.cf
virtual_minimum_uid = 2000
virtual_transport = dovecot
virtual_uid_maps = static:2000


i hjope your help please !!!