postix issue for external domain

Discussion in 'Installation/Configuration' started by denis.siegato, Sep 7, 2020.

  1. denis.siegato

    denis.siegato New Member

    Hi, my issue is this:
    from my vps i can send from wembail or external client email to domain stored on the vps

    i'm using postfix, dovecot and roundcube
    i can send from to and vice versa but i can't send from or to gmail or other domain..

    from outside (gmail yahoo etc) it works.. i can recieve to ù and

    here my configuration:

    postconf -n
    postconf: warning: /etc/postfix/, line 62: overriding earlier entry: smtpd_recipient_restrictions=permit_sasl_authenticated, reject_unauth_destination
    alias_database = hash:/etc/aliases
    alias_maps = hash:/etc/aliases
    append_dot_mydomain = no
    biff = no
    compatibility_level = 2
    inet_interfaces = all
    inet_protocols = all
    mailbox_size_limit = 0
    mydestination = $myhostname,,, localhost
    myhostname =
    mynetworks =,
    myorigin = /etc/mailname
    readme_directory = no
    recipient_delimiter = ;
    relayhost =
    smtp_tls_security_level = may
    smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
    smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks reject_unauth_destination
    smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, defer_unauth_destination
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_path = private/auth
    smtpd_sasl_type = dovecot
    smtpd_tls_auth_only = yes
    smtpd_tls_cert_file = /etc/letsencrypt/live/
    smtpd_tls_key_file = /etc/letsencrypt/live/
    smtpd_use_tls = yes
    virtual_alias_maps = mysql:/etc/postfix/
    virtual_mailbox_domains = mysql:/etc/postfix/
    virtual_mailbox_maps = mysql:/etc/postfix/
    virtual_transport = lmtp:unix:private/dovecot-lmtp

    here an example of issue

    This is the mail system at host mail. denissiegato. com.
    said: 554
    5.4.0 Error: too many hops (in reply to end of DATA command)
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    You are trying to relay email from your own server through your own server. This will result in a loop. I think that if you remove this, it will work.

    Also, please put your configs between code tags next them (Insert -> code), this makes it readable for us :)
    Jesse Norell likes this.
  3. denis.siegato

    denis.siegato New Member

    ok it works..
    Th0m likes this.

Share This Page