relay error on mail after DNS change

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

  1. hvrossum

    hvrossum New Member

    Hi,

    I am trying to change the DNS settings in a way that the mail sent to mydomain.com 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 mydomain.com.:
    >>> 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
    Mydomain.com 86400 IN A xxx.xxx.xxx.xxx
    *.Mydomain.com 86400 IN A xxx.xxx.xxx.xxx
    www.Mydomain.com 86400 IN A xxx.xxx.xxx.xxx
    mail.Mydomain.com 86400 IN A xxx.xxx.xxx.xxx

    Built in MX records

    Custom MX records
    Mydomain.com IN MX 10 mydomain.com

    Built in CNAME records

    Custom CNAME records
    mail. Mydomain.com 86400 IN CNAME xxx.xxx.xxx.xxx
    www. Mydomain.com
    86400 IN CNAME xxx.xxx.xxx.xxx
    smtp. Mydomain.com 86400 IN CNAME xxx.xxx.xxx.xxx
    pop. Mydomain.com 86400 IN CNAME xxx.xxx.xxx.xxx
    pop3. Mydomain.com 86400 IN CNAME xxx.xxx.xxx.xxx
     
  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