Postfix issue: Relay access denied and problem with sending mails

Discussion in 'Installation/Configuration' started by Debianer, Feb 6, 2009.

  1. Debianer

    Debianer New Member

    I've just installed postfix and popa3d - debian packages.

    1. When I try to send an e-mail from Gmail account to me:
    I'm getting error:
    Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 554 554 5.7.1 <[email protected]>: Relay access denied (state 14).
    2. When I try to send an e-mail from Postfix to Gmail it normally, go out, but I am not getting this e-mail on my Gmail account.

    My is:
    myorigin = /etc/mailname #
    smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
    biff = no
    append_dot_mydomain = no
    readme_directory = no
    smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
    smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
    myhostname = my computer static ISP hostname
    mydomain =
    mydestination = $myhostname
    mynetworks =
    inet_interfaces = all
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    disable_dns_lookups = yes
    mailbox_command = procmail -a "$EXTENSION"
    mailbox_size_limit = 0
    recipient_delimiter = +
    What should I do?
  2. falko

    falko Super Moderator ISPConfig Developer

  3. Debianer

    Debianer New Member

    MX Record is my server IP.

    Blacklist check:
    Checking against 123 known blacklists...
    Listed: 2 time(s)
  4. falko

    falko Super Moderator ISPConfig Developer

    The MX record must point to a hostname (e.g. which then points to an IP (using an A record).

    Is your server hosted on a dynamic IP and/or was it abused by spammers?
  5. Debianer

    Debianer New Member

    My server is hosted on static IP and it was not abused by spammers.
    Fixed MX record. Now it points to hostname, which points to server IP.
    ... but still e-mails from Gmail cannot be sent, beacuse there is same error with Relay Access Denied.

    Checked log when sending an e-mail to Gmail and other mail server. Most servers (maybe all) say that I am spammer.

    I am not sure is it spam block or becuase I dont have revDNS configured properly for my domain.
    Found somewhere that configuring revDNS helped for this problem.

    Now have problem with configuring bind9. Installed it then

    Added to named.conf, my IP is
    zone "" {
    type master;
    file "/etc/bind/";
    }; - file
    Code:    IN PTR
    I am not Primary DNS for, it has external default DNS servers.

    I've checked the RevDNS and its still not correct. Here:

    What should be inside of file?
    I've only one line of code as you see.
    Last edited: Feb 8, 2009
  6. falko

    falko Super Moderator ISPConfig Developer

    IT can take up to 72 hours until DNS changes propagate, so you might have to wait a little bit longer.

    Please contact the maintainers of the blacklists and ask them to remove your server.

    A PTR record is important, but it must be created by your ISP/hoster (the one who gave you the IP address).

    Also make sure you have SPF records for your domains.
  7. Debianer

    Debianer New Member

    Still Relay Acces Denied. POP3 port 110 open.
    Dont know why it blocks.

    PTR record must be created by my ISP?
    My hostname is, but my domain is different, so revDNS for my IP do not point to my mail domain.

    About SPF
    Here is my bind9 zone file:
    Code:    IN PTR TXT "v=spf1 ip4: -all"
  8. falko

    falko Super Moderator ISPConfig Developer

    The PTR must point to a domain/hostname that in return points back to the same IP. It doesn't matter if it's your hostname or something like
  9. Debianer

    Debianer New Member

    So revDNS is propably set up correclty. RevDNS for my IP get my hostname created by ISP.
    What about sending from email account to my server account?
    What about SPF is set up correctly in bind9?
  10. falko

    falko Super Moderator ISPConfig Developer

    If you send mails only from the server, then the SPF record is ok.

    Can you send an email to your server and at the same time take a look at the mail log? What happens there?

Share This Page