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

SMTP relay not allowing anything in

First of all the error:

554 554 5.7.1 : Relay access denied (state 14).

The above is the error I get when trying to send externally to an internal address. (for example from gmail to a company address)

I've configured all the domains we use as well as set a static host list and pointed it to our exchange server at 192.168.0.1.

Is there any setting that might cause this to occur?

I had this occur on me whilst doing a live test today (end of day when everyone has gone home, plugged in the astaro 220 got everything working but incoming email.. obviously moved it back to the old firewall)

I'll do some further tests at work tomorrow (obviously), but any suggestions on where I might be going wrong are more than welcome.


This thread was automatically locked due to age.
  • Guys, i've just been examining the SMTP proxy log file and it gave this after just about everything:

    2008:10:16-08:52:42 (none) exim[6245]: [1\32] 2008-10-16 08:52:42 1KqNex-0001cj-2h H=service8.mimecast.com [123.123.123.123]:59341 F= temporarily rejected after DATA: Temporary local problem, please try again!

    Of special mention: temporarily rejected after DATA: Temporary local problem, please try again!. It's rejecting the mail as soon as it goes to DATA.

    I've compressed a few samples from the actual log itself from a user who complained about the 554 errors.

    See here.

    Are there any ideas from the Astaro folks why this might be happening?
  • Reading up this appears that it might be an issue with exim and clamav?

    Was this fixed in 7.303? (I'll be testing the firewall with 7.303 tomorrow morning)

    I'll also make sure to disable the anti-spam/virus features anyway since we use a package on the email server itself for that kind of thing. Hopefully it'll work fine then.
  • @markcasey: as long as you have non-working MX records specified in DNS, mail to your domain may sporadically fail no matter what you do on the ASG, because it arrives on machines that will REJECT all messages to jadeprint.com. 

    whizbang ~ # host -t mx jadeprint.com
    jadeprint.com mail is handled by 100 relay-1.mail.demon.net.
    jadeprint.com mail is handled by 100 relay-2.mail.demon.net.
    jadeprint.com mail is handled by 10 mailgate.jadeprint.com.

    If you do not know how to do this, please ask your ISP or domain service provider to REMOVE the relay-1.mail.demon.net and relay-2.mail.demon.net from your DNS configuration.

    NB: The "temporary" rejects in the ASG logs are related to greylisting (which is a feature). You can turn it off.
  • Mark, our policy for our clients is that they should use layers of anti-virus at the perimeter, at the server and on each workstation.  We prefer to have at least two different suppliers for those three layers.

    One of our clients receives about 50,000 emails a day.  95-97% of these are spam rejected before they enter their network.  Early in the SMTP transaction, before the email is accepted, 40% of the items are rejected by RBL and 40% by RDNS/HELO.  That means that 80% of spam is rejected with very little load on the Astaro.

    An additional 10% of the total is blackholed at SMTP time because the Content Filter has recognized it as 'Confirmed Spam'.  You probably already have things configured for your server-based anti-spam product, so it's probably easier for you to just leave the 'Spam action' set to 'Off' in the 'Spam filter' section of the 'Anti-Spam' tab.

    Cheers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • Mark, our policy for our clients is that they should use layers of anti-virus at the perimeter, at the server and on each workstation.  We prefer to have at least two different suppliers for those three layers.

    One of our clients receives about 50,000 emails a day.  95-97% of these are spam rejected before they enter their network.  Early in the SMTP transaction, before the email is accepted, 40% of the items are rejected by RBL and 40% by RDNS/HELO.  That means that 80% of spam is rejected with very little load on the Astaro.

    An additional 10% of the total is blackholed at SMTP time because the Content Filter has recognized it as 'Confirmed Spam'.  You probably already have things configured for your server-based anti-spam product, so it's probably easier for you to just leave the 'Spam action' set to 'Off' in the 'Spam filter' section of the 'Anti-Spam' tab.

    Cheers - Bob


    Disabling the anti-spam/virus on the firewall did the trick. The user didn't get the 554 error.

    Also, we use three anti-virus engines here. Two on the server side scanning engine and the third on the workstation clients, if any viruses get past the first two then the third picks it up.

    And frankly I've got it set-up to quarantine any emails with certain attachments anyway, for example exe, passworded zip files etc.

    We also use RBL's, Bayesian filtering etc too. (GFI MailEssentials)

    All I need to do now is get the firewall correctly allowing traffic to the web server and remote terminal services access to the servers for myself. Which is something for tomorrow morning.
  • The "554 5.7.1" rejects occurred at SMTP time, probably because the sender doesn't have their own DNS records configured correctly.  The Astaro was right to catch this.  I'm going to guess that you had already excepted email from TL Risk Solutions from RDNS checks in MailEssentials.

    However, it does make good sense that the quickest way to get started is turning off everything on the 'Anti-Spam' tab.  You could leave the Anti-Virus on.  You might also want to take advantage of advanced features like encryption.

    Cheers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • The "554 5.7.1" rejects occurred at SMTP time, probably because the sender doesn't have their own DNS records configured correctly.  The Astaro was right to catch this.  I'm going to guess that you had already excepted email from TL Risk Solutions from RDNS checks in MailEssentials.

    However, it does make good sense that the quickest way to get started is turning off everything on the 'Anti-Spam' tab.  You could leave the Anti-Virus on.  You might also want to take advantage of advanced features like encryption.

    Cheers - Bob


    I've got MailEssentials configured to automatically whitelist any addresses that have been sent to. So, for example if I were to send an email to joe.bloggs@anyplace.com then he'd automatically be excepted from spam filtering. (but not virus checking)

    Well, as to the anti-virus.. frankly that costs extra and I'm on a tight budget. I recently managed to convince my boss for us to go over to a leased line which is costing plenty of money. Personally I would love it if we went with two 220's in HA with all the bells and whistles, a 10 meg leased line and a partridge in a pear tree. But that would cost a lot more than I've been able to beg and plead money wise.

    We're not that large a company.