This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Outbound email terrifying slow

I have a few concerns about outgoing emial sent from an exchange-server behind Astro. My grilfriend has sent a few emails with photos as attachments but they are sent outbound with about 10Kb/sec. 
I have disabled the [Scan relayed (outgoing) messages]
I have disabled the QoS on the external NIC (that gave a few minor boosts)

Exhcange smtp took about 2,5 hours to sent 6 emails with a total amount of 20MB. This While I have a 1Mbit upload connection.
Why is the outbound connection so terrifying slow? And what can be done to improve the bandwith?


This thread was automatically locked due to age.
  • The first thing that I would do is to check the SMTP log to see what happened with these specific messages.  Need to narrow down if the potential problem is between your exchange and Astaro or Astaro and the remote server.
    __________________
    ACE v8/SCA v9.3

    ...still have a v5 install disk in a box somewhere.

    http://xkcd.com
    http://www.tedgoff.com/mb
    http://www.projectcartoon.com/cartoon/1
  • The first thing that I would do is to check the SMTP log to see what happened with these specific messages.  Need to narrow down if the potential problem is between your exchange and Astaro or Astaro and the remote server.


    Well I have checked double-checked and tripple-checked the outbound SMTP connections on the server / router and Astaro. And I am now almost 100% confinced that the problems are to be found in the Astaro routing settings.

    When I use the Firewall routing situation like this
    Server (198.168.X.1) --> Astaro (Internal - 192.168.X.254) --> Astaro (External 192.168.Y.200) --> Router (192.168.Y.1) --> WAN (194.x.y.z) 
    and portforwarding on Router (192.168.Y.1) --> PORT 25 --> Astaro (192.168.Y.200) (and then routed further--> Exchange server (192.168.X.1))
    Mail will not even leave the Exchange server and is queued till the end of time!!! [:@]

    When I use the direct routing situation like this
    Server (198.168.Y.87) -->  Router (192.168.Y.1) --> WAN (194.x.y.z) 
    and portforwarding on Router (192.168.Y.1) --> PORT 25 --> Exchange server (192.168.Y.1)
    Mail will be sent within 2 minutes at a bandwith of 2000 kbit/s!!!! [:O]

    This problem has started somewhere last week May-12-2011. before this date there where no problems with sending mail with attachments. [:S]
    So the slowness can now be seen as a routing problem.
  • You can check the Astaro route table in WebAdmin.  Support>>Advanced>>Routes Table.
    __________________
    ACE v8/SCA v9.3

    ...still have a v5 install disk in a box somewhere.

    http://xkcd.com
    http://www.tedgoff.com/mb
    http://www.projectcartoon.com/cartoon/1
  • You can check the Astaro route table in WebAdmin.  Support>>Advanced>>Routes Table.


    This is what I get... 
    default via 192.168.178.1 dev eth1  table 200  proto kernel onlink 
    local default dev lo  table 252  scope host 
    127.0.0.0/8 dev lo  scope link 
    192.168.87.0/24 dev eth0  proto kernel  scope link  src 192.168.87.254 
    192.168.178.0/24 dev eth1  proto kernel  scope link  src 192.168.178.200 
    default via 192.168.178.1 dev eth1  table default  proto kernel onlink 
    broadcast 127.0.0.0 dev lo  table local  proto kernel  scope link  src 127.0.0.1 
    local 127.0.0.0/8 dev lo  table local  proto kernel  scope host  src 127.0.0.1 
    local 127.0.0.1 dev lo  table local  proto kernel  scope host  src 127.0.0.1 
    broadcast 127.255.255.255 dev lo  table local  proto kernel  scope link  src 127.0.0.1 
    broadcast 192.168.87.0 dev eth0  table local  proto kernel  scope link  src 192.168.87.254 
    local 192.168.87.254 dev eth0  table local  proto kernel  scope host  src 192.168.87.254 
    broadcast 192.168.87.255 dev eth0  table local  proto kernel  scope link  src 192.168.87.254 
    broadcast 192.168.178.0 dev eth1  table local  proto kernel  scope link  src 192.168.178.200 
    local 192.168.178.200 dev eth1  table local  proto kernel  scope host  src 192.168.178.200 
    broadcast 192.168.178.255 dev eth1  table local  proto kernel  scope link  src 192.168.178.200 
    unreachable default dev lo  table unspec  proto kernel  metric -1  error -101 hoplimit 255
    fe80::/64 dev eth0  proto kernel  metric 256  mtu 1500 advmss 1440 hoplimit 0
    fe80::/64 dev eth1  proto kernel  metric 256  mtu 1500 advmss 1440 hoplimit 0
    unreachable default dev lo  table unspec  proto kernel  metric -1  error -101 hoplimit 255
    local ::1 via :: dev lo  table local  proto none  metric 0  mtu 16436 advmss 16376 hoplimit 0
    ff00::/8 dev eth0  table local  metric 256  mtu 1500 advmss 1440 hoplimit 0
    ff00::/8 dev eth1  table local  metric 256  mtu 1500 advmss 1440 hoplimit 0
    unreachable default dev lo  table unspec  proto kernel  metric -1  error -101 hoplimit 255
     
  • I can assure you the problem is not astaro. You have it misconfigured somehow.
    I have a few concerns about outgoing emial sent from an exchange-server behind Astro...
    ...I have disabled the QoS on the external NIC (that gave a few minor boosts)

    Does this mean you have QoS enabled on internal interface. Disable all QoS and IPS till the problem can be fixed.
    Well I have checked double-checked and tripple-checked the outbound SMTP connections on the server / router and Astaro. And I am now almost 100% confinced that the problems are to be found in the Astaro routing settings.
    So the slowness can now be seen as a routing problem.

    You are double natting an enterprise UTM behind a SOHO router? Double natting brings headaches to the best of us. But if your inbound is working that shouldn't be the problem. 

    If your exchange server is holding mails, the problem is the connection between astaro and your mail server. Make sure the default gateway on your exchange is astaro and also double check your smarthost settings on exchange. 

    If possible could you post the screenshots of your astaro email configuration.

    I wouldn't worry about routing too much. Its not that easy to mess up the routing table on private IPs. One thing I would suggest though is that try using different IP ranges altogether for internal and external interfaces on astaro. If you want internal to be 192.168.xx try putting external on 10.0.xx. Sometimes the routing table gets confused with everything 192.168.x.x with 255.255.255.0 netmask.
  • When I use the direct routing situation like this
    Server (198.168.Y.87) -->  Router (192.168.Y.1) --> WAN (194.x.y.z) 
    and portforwarding on Router (192.168.Y.1) --> PORT 25 --> Exchange server (192.168.Y.1)
    Mail will be sent within 2 minutes at a bandwith of 2000 kbit/s!!!! [:O]

    If your exchange server is holding mails, the problem is the connection between astaro and your mail server. Make sure the default gateway on your exchange is astaro and also double check your smarthost settings on exchange.


    Bingo - I think Billybob whacked that mole! [;)]

    Cheers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • [:(][:S]
    I have never used and/or set-up a smarthost [:S]

    I feel dumb and stupid now.. 

    At this moment I allready have changed the IP-range on the external-side of Astaro to a 10.0.0.x part. The Main IPaddress of the Exchange-server is 192.168.87.1 so this should be the smarthost??
  • If you're using the Astaro's SMTP Proxy, you have to go into the Exchange Manager on your server and set the IP of the Astaro's 'Internal (Address)' as your smarthost.  This is the same IP you should have as the default gateway for the Exchange server.

    Cheers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • If you're using the Astaro's SMTP Proxy, you have to go into the Exchange Manager on your server and set the IP of the Astaro's 'Internal (Address)' as your smarthost.  This is the same IP you should have as the default gateway for the Exchange server.

    Cheers - Bob


    [:O] I just entered the IP of the Astaro's 'Internal (Address)' and it works.. [:O]
    Now I also see the outbound email deliveries in the Mail Manager of the Astaro. 

    Now I have to check if there aren't any flaws in the configuration.

    tnx for now...