Guest User!

You are not Sophos Staff.

[8.171][BUG][CLOSED] Unable to send SMTP Mail from client PC

Hi since 8.171
I have PC's that send email directly through the SMTP Proxy and Smart Host that receive the following error.
"An error occurred while sending mail. The mail server responded:  No RDNS entry for 172.16.20.9. Please check the message recipient ***xx@***xx.com.au and try again."

SMTP log =
2011:06:27-12:21:42 fmain exim-in[6840]: 2011-06-27 12:21:42 SMTP connection from [172.16.20.9]:4755 (TCP/IP connection count = 1)
2011:06:27-12:21:43 fmain exim-in[13534]: 2011-06-27 12:21:43 id="1003" severity="info" sys="SecureMail" sub="smtp" name="email rejected" srcip="172.16.20.9" from="***@netmark.net.au" to="***@netmark.com.au" size="4029" reason="rdns_helo" extra="RDNS missing"
2011:06:27-12:21:43 fmain exim-in[13534]: 2011-06-27 12:21:43 H=([127.0.0.1]) [172.16.20.9]:4755 F= rejected RCPT : No RDNS entry for 172.16.20.9
2011:06:27-12:21:43 fmain exim-in[13534]: 2011-06-27 12:21:43 SMTP connection from ([127.0.0.1]) [172.16.20.9]:4755 closed by DROP in ACL

Also
2011:06:27-10:43:14 fmain exim-in[6840]: 2011-06-27 10:43:14 SMTP connection from [192.168.10.100]:56588 (TCP/IP connection count = 1)
2011:06:27-10:43:14 fmain exim-in[8466]: 2011-06-27 10:43:14 H=(pbx.local) [192.168.10.100]:56588 F= rejected RCPT : Relay not permitted
2011:06:27-10:43:14 fmain exim-in[8466]: 2011-06-27 10:43:14 SMTP connection from (pbx.local) [192.168.10.100]:56588 closed by DROP in ACL



Other Clients that send mail through the Exchange Server are fine, only the Clients that Relay.
I have a number of Domain's and different settings in the SMTP Profiles.

Prior to this release 8.170 all was working.

Mark
  • Astaro Beta Report
    --------------------------------
    Version: 8.171
    Type: BUG
    State: CLOSED
    Reporter: Mark_D
    Contributor: 
    MantisID: 
    Target version: 
    Fixed in version: 
    --------------------------------

  • Mark,

    is this the same problem as described in your other thread [8.170][BUG][OPEN] SMTP unable to send email - Astaro User Bulletin Board?

    The IP addresses the clients are using are apparently not in the relay network/hosts list. Otherwise the RDNS check would be skipped.

    Regards,
    mlenk
  • No this is a different fault.
    If you look at one of the attacked pic's the internal network is added to the Relay Host list. Also adding a Host for the example that I have shown (172.16.20.9) the RDNS error still happens.

    Mark
  • Hi Mark,

    can you please copy&paste the contents of the file /var/chroot-smtp/etc/exim.conf.includes/relays from your ASG?
    Is this the correct and complete list of your configured relay hosts?

    Thanks,
    mlenk
  • Hi mlenk
    Very interesting only two are listed.
    These two are defined as type "Host"
    The two that are defined as "DNS Group" are not included.
    And the two "Networks" defined are not included and are not editable from "SMTP Relaying" page. 

    Below is a copy of the /var/chroot-smtp/etc/exim.conf.includes/relays file.

    fmain:/var/storage/chroot-smtp/etc/exim.conf.includes # more relays 
    172.16.10.20
    172.16.10.22
    relays lines 1-2/2 (END) 

    Even adding or changing anything in Allowed Hosts/Networks Box does not change this file.

    fmain:/var/storage/chroot-smtp/etc/exim.conf.includes # ls -al
    total 72
    drwxr-xr-x 2 root root 4096 2011-06-28 17:10 .
    drwxr-xr-x 7 root root 4096 2011-06-24 10:28 ..
    -rw-r--r-- 1 root root    0 2011-06-24 10:28 cssd_ok
    -rw-r--r-- 1 root root    0 2011-06-28 17:10 ctasd_ok
    -rw-r--r-- 1 root root    1 2011-06-24 10:28 dkim_domains
    -rw-r--r-- 1 root root  690 2011-06-24 10:28 errmsg
    -rw-r--r-- 1 root root  680 2011-06-17 21:06 errmsg-default
    -rw-r--r-- 1 root root    1 2011-06-24 10:28 host_blacklist
    -rw-r--r-- 1 root root   58 2011-06-24 10:28 local_domains
    -rw-r--r-- 1 root root  668 2011-06-24 10:28 macros
    -rw-r--r-- 1 root root 5933 2011-06-24 10:28 REF_CaHosWebadCertiFor2.cert
    -rw-r--r-- 1 root root 3243 2011-06-24 10:28 REF_CaHosWebadCertiFor2.key
    -rw-r--r-- 1 root root   26 2011-06-24 10:28 relays
    -rw-r--r-- 1 root root    1 2011-06-24 10:28 tls_avoid
    -rw-r--r-- 1 root root    1 2011-06-24 10:28 tls_require
    -rw-r--r-- 1 root root    1 2011-06-24 10:28 tls_require_domains
    -rw-r--r-- 1 root root   54 2011-06-24 10:28 upstream_hosts
    -rw-r--r-- 1 root root  853 2011-06-24 10:28 warnmsg
    -rw-r--r-- 1 root root  843 2011-06-17 21:06 warnmsg-default


    Mark
  • Mark,

    please check the confd settings for your SMTP relay hosts. What does the following command (executed as root) output?
    cc get smtp relays

    And can you please for each REF_ string that is listed by the command, run the following command and post its output?
    cc get_object REF_hereYourString


    Maybe your ASG has a problem with resolving DNS names.

    Regards,
    mlenk
  • Hi mlenk
    All the REF link resolved as seen below.
    I did not paste all results in this reply, but the results of the different types.

    Mark

    fmain:/home/login # cc get smtp relays
    smtp->relays = [
              "REF_NetHosHostAsteri",
              "REF_NetDnsHostLaptoDns",
              "REF_NetIntInterLanNetwo",
              "REF_NetIntInterNetwo",
              "REF_NetHosServeZhypeNic",
              "REF_NetHosServeZhypeNic2",
              "REF_NetDnsServerZsql"
            ]

    fmain:/home/login # cc get_object REF_NetDnsServerZsq1
    get_object returned 0
    fmain:/home/login # cc get_object REF_NetDnsServerZsql
    get_object returned {
              'autoname' => 0,
              'class' => 'network',
              'data' => {
                          'addresses' => [
                                           '172.16.10.25'
                                         ],
                          'addresses6' => [],
                          'comment' => '',
                          'hostname' => 'zsql.netmark.com.au',
                          'interface' => '',
                          'name' => 'Server zsql',
                          'resolved' => 1,
                          'resolved6' => 0,
                          'timeout' => 604800
                        },
              'hidden' => 0,
              'lock' => '',
              'nodel' => '',
              'ref' => 'REF_NetDnsServerZsql',
              'type' => 'dns_group'
            }

    fmain:/home/login # cc get_object REF_NetDnsHostLaptoDns
    get_object returned {
              'autoname' => 0,
              'class' => 'network',
              'data' => {
                          'addresses' => [
                                           '172.16.20.9'
                                         ],
                          'addresses6' => [],
                          'comment' => '',
                          'hostname' => 'laptop.ncs.local',
                          'interface' => 'REF_IntEthInternaLan',
                          'name' => 'Host Laptop DNS',
                          'resolved' => 1,
                          'resolved6' => 0,
                          'timeout' => 604800
                        },
              'hidden' => 0,
              'lock' => '',
              'nodel' => '',
              'ref' => 'REF_NetDnsHostLaptoDns',
              'type' => 'dns_group'
            }

    fmain:/home/login # cc get_object REF_NetHosHostAsteri
    get_object returned {
              'autoname' => 0,
              'class' => 'network',
              'data' => {
                          'address' => '192.168.10.100',
                          'address6' => '',
                          'comment' => '',
                          'interface' => 'REF_IntEthInternalvo',
                          'name' => 'Host Asterisk',
                          'resolved' => 1,
                          'resolved6' => 0
                        },
              'hidden' => 0,
              'lock' => '',
              'nodel' => '',
              'ref' => 'REF_NetHosHostAsteri',
              'type' => 'host'
            }

    fmain:/home/login # cc get_object REF_NetIntInterLanNetwo
    get_object returned {
              'autoname' => 0,
              'class' => 'network',
              'data' => {
                          'address' => '172.16.0.0',
                          'address6' => '::',
                          'comment' => 'Attached network of interface "Internal (Lan)"',
                          'name' => 'Internal (Lan) (Network)',
                          'netmask' => 16,
                          'netmask6' => 0,
                          'resolved' => 1,
                          'resolved6' => 0
                        },
              'hidden' => 0,
              'lock' => 'user',
              'nodel' => '',
              'ref' => 'REF_NetIntInterLanNetwo',
              'type' => 'interface_network'
            }
  • mlenk
    I just deleted a network from the relay control interface and checked the relays file the relay file changed with the deletion of the network.
    The only change that has happened on this box is this I have applied patch 8.172.

    So now it appears to be working as it should.

    Mark