Bounced emails

Discussion in 'General' started by dayjahone, Mar 7, 2011.

  1. dayjahone

    dayjahone Member

    I added a second IP to ISPConfig and am getting quite a few messages that cannot be sent to people I was able to send them to previoiusly. Below is the error I am getting:

    Code:
    <recipent email address>: host
        recipient mail server[IP address] said: 554 Denied
        [CS] (Mode: normal) (in reply to end of DATA command)
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Are there any errors in your mail log (in the /var/log/ directory)?
     
  3. dayjahone

    dayjahone Member

    I looked in mail.log and didn't find anything, but I noticed some of this person's emails are getting stuck in the queue and just staying there. I see them when I do mailq but not when I do qshape.

    I looked in mail.err and found a bunch that say "queue file write error," but they're all from a different email address. There are also some errors that say "Maximum connection limit reached for ::ffff....."
     
    Last edited: Mar 9, 2011
  4. falko

    falko Super Moderator Howtoforge Staff

  5. dayjahone

    dayjahone Member

    Nope. I checked every IP on the subnet. It was blacklisted a week ago but was quickly removed from all blacklists. My mailq continues to fill up and emails just seem to get stuck in there. all email are sent from "MAILER-DAEMON" or the one user on the second IP address.
     
  6. falko

    falko Super Moderator Howtoforge Staff

    Does the MX record of the domain point to a different IP?

    Did you run
    Code:
    postqueue -p
    ? In the output you should find the reasons why mails aren't delivered.

    Do you have an SPF record for your domain?
     
  7. dayjahone

    dayjahone Member

    I tried to run postqueue -p but it doesn't give me any more information than mailq:

    Code:
    (connect to [recipient email][recipient IP]:25: Connection refused)
    MX record points to the same IP.

    I do not have an SPF record for either IP addresses.
     
  8. falko

    falko Super Moderator Howtoforge Staff

    Hm, I guess your server is somehow blacklisted (maybe the recipient servers use blacklists that are not covered by http://mxtoolbox.com/blacklists.aspx ).

    You should also create SPF records for your domains.
     
  9. dayjahone

    dayjahone Member

    How do I create SPF records?
     
  10. falko

    falko Super Moderator Howtoforge Staff

    The wizard at www.openspf.org/wizard.html tells you what you need to add to your BIND configuration (in case you run your own nameservers).
     
  11. dayjahone

    dayjahone Member

    Thanks, Falko. I followed the steps, and pardon my ignorance, but how do I do this:


    Code:
    If you run BIND
    
    Paste this into your zone file:
    mail.domain.com. IN TXT "v=spf1 a ~all"
     
  12. falko

    falko Super Moderator Howtoforge Staff

    Do you run your own nameservers, or where are your DNS records hosted?
     
  13. dayjahone

    dayjahone Member

    Yes, it's all based on the perfect setup tutorial for ubuntu.
     
  14. falko

    falko Super Moderator Howtoforge Staff

Share This Page