Relay access denied (in reply to RCPT TO command)

Discussion in 'Installation/Configuration' started by CleberDantas, Jul 13, 2007.

  1. CleberDantas

    CleberDantas New Member

    I installed all Ok. But i no receive external mails.


    This is the Postfix program at host mail7.click21.com.br.

    I'm sorry to have to inform you that your message could not be
    be delivered to one or more recipients. It's attached below.

    For further assistance, please send mail to <postmaster>

    If you do so, please include this problem report. You can
    delete your own text from the attached returned message.

    The Postfix program

    <[email protected]>: host pm.ap.gov.br[MY_IP_HERE] said: 554
    <[email protected]>: Relay access denied (in reply to RCPT TO command)
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Is the exact domain "aa.ap.gov.br" (without www) listed in the file /etc/postfix/local-host-names
     
  3. CleberDantas

    CleberDantas New Member

    ###################################
    #
    # ISPConfig local-host-names Configuration File
    # Version 1.0
    #
    ###################################
    localhost
    internet.aa.ap.gov.br
    localhost.internet.aa.ap.gov.br
    localhost.aa.ap.gov.br
    localhost.localdomain
    #### MAKE MANUAL ENTRIES BELOW THIS LINE! ####
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    You mus create a website for www.aa.ap.gov.br and make sure that this website has a co-domain aa.ap.gov.br with empty hostname field and then add a email account for [email protected] to this website.
     
  5. CleberDantas

    CleberDantas New Member

    Have this.
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    But it is not listed above, Please check that you have not set the mailserver to external in the website options AND in the co-domain options.
     
  7. CleberDantas

    CleberDantas New Member

    Is seted for local;
     
  8. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    ls -la /root/ispconfig
    ? Any errors in /home/admispconfig/ispconfig/ispconfig.log?
     
  9. hahni

    hahni New Member

    With a domain (only numbers) I have the problem, that the mails are bounced. I found this entries in the /var/log/mail.log:

    Code:
    Apr  3 20:52:17 server postfix/smtpd[2012]: connect from sender.domain.de[xxx.xxx.xxx.xxx]
    Apr  3 20:52:17 server postfix/smtpd[2012]: setting up TLS connection from sender.domain.de[xxx.xxx.xxx.xxx]
    Apr  3 20:52:17 server postfix/smtpd[2012]: Anonymous TLS connection established from sender.domain.de[xxx.xxx.xxx.xxx]: TLSv1 with cipher ADH-AES256-SHA (256/256 bits)
    Apr  3 20:52:17 server postfix/smtpd[2012]: NOQUEUE: reject: RCPT from sender.domain.de[xxx.xxx.xxx.xxx]: 554 5.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<sender.domain.de>
    Apr  3 20:52:17 server postfix/smtpd[2012]: disconnect from sender.domain.de[xxx.xxx.xxx.xxx]
    
    What could be the reason?
     
  10. hahni

    hahni New Member

    The reason was the missing Co-Domain! Is it possible, to create a domain in ISPConfig 2 without the Subdomain "www"? If I clear the entry in the web form, it is after next reload set again.
     
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    The hostname field ahs to be set in ispconfig 2. If it is not set, ispconfig sets it to www automatically.
     

Share This Page