relay error on mail after DNS change

Discussion in 'Server Operation' started by hvrossum, Mar 3, 2008.

  1. hvrossum

    hvrossum New Member


    I am trying to change the DNS settings in a way that the mail sent to gets delivered to my own Ubuntu server with Postfix.

    I changed the MX records and other DNS settings but to no succes.
    I get relay error messages when I sent an email message to a [email protected]
    The mailbox does exist (I set it up through ISPconfig)
    The website which I initially setup is perfectly reachable. And the mailbox is seen in Postfix (using Webmin)

    Any idea what I am doing wrong?

    error message:
    ----- The following addresses had permanent fatal errors ----- <[email protected]>
    (reason: 554 5.7.1 <[email protected]>: Relay access denied)

    ----- Transcript of session follows ----- ... while talking to
    >>> DATA
    <<< 554 5.7.1 <[email protected]>: Relay access denied
    554 5.0.0 Service unavailable (554 5.7.1 <[email protected]>: Relay access denied) <<< 554 5.5.1 Error: no valid recipients

    settings with my initial hosting/DNS party are as follows.

    Name TTL Class Type Data
    Built in A records

    Custom A records 86400 IN A
    * 86400 IN A 86400 IN A 86400 IN A

    Built in MX records

    Custom MX records IN MX 10

    Built in CNAME records

    Custom CNAME records
    mail. 86400 IN CNAME
    86400 IN CNAME
    smtp. 86400 IN CNAME
    pop. 86400 IN CNAME
    pop3. 86400 IN CNAME
  2. chipsafts

    chipsafts New Member

    The problem is not with the DNS.
    The error message tells you that relaying is not allowed,
    you will need to lookup the postfix documentation on how to allow for relaying and what safeguards to implement.
  3. hvrossum

    hvrossum New Member

    I don't understand this, because I already have an another domain which mails perfectly arrives at my server. With squirrelmail and Imap this mail can be read by the different users.
  4. hvrossum

    hvrossum New Member

    Problem solved.

    The hint that it was not dns related made do another search. And I missed the right domain in the local-host-names files in the /etc/postfix dir.

    It is working now.

Share This Page