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
    ruggeriartelegno.it
    denissiegato.com

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

    from outside (gmail yahoo etc) it works.. i can recieve to รน
    ruggeriartelegno.it and denissiegato.com

    here my configuration:

    postconf -n
    postconf: warning: /etc/postfix/main.cf, 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, mail.denissiegato.com, localhost.denissiegato.com, localhost
    myhostname = mail.denissiegato.com
    mynetworks = 168.100.189.0/28, 127.0.0.0/8
    myorigin = /etc/mailname
    readme_directory = no
    recipient_delimiter = ;
    relayhost = mail.denissiegato.com:587
    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/mail.denissiegato.com/fullchain.pem
    smtpd_tls_key_file = /etc/letsencrypt/live/mail.denissiegato.com/privkey.pem
    smtpd_use_tls = yes
    virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf
    virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
    virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
    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 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..
    thanks..
     
    Th0m likes this.

Share This Page