SMTP Relay by IP and Domain

Discussion in 'General' started by kinai, Jul 16, 2024.

  1. kinai

    kinai Member

    Hi all,
    I looking for a way to allow relay on my postfix server from a specific domain and from a specific IP (one or range).
    In the postfix documentation, I see this in smtpd_sender_restrictions documentation : check_sender_access and check_sender_a_access

    I also see a smtpd_sender_restrictions in postfix set by ISPConfig with a directive check_sender_access that point to a regex "tag_as_foreign.re"
    My question :
    1. Is it possible to configure this type of relay directly in ISPConfig, if Yes, how ?
    2. If No, has anyone already implemented this type of configuration or do you have any recommandation ?
    Thanks in advance,
    Yannick
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You can relay by domain in ISPConfig, not by domain and IP. See relay settings of the email domain.
     
    ahrasis likes this.
  3. kinai

    kinai Member

    In my memory, we can relay for recipient domain not for sender domain ?
    I was using this functionality to use my server as MX Backup.
     
  4. kinai

    kinai Member

    Based on the postfix documentation, I can set
    smtpd_sender_restrictions = check_sender_a_access hash:/etc/postfix/sender_IP_checks,
    check_sender_access hash:/etc/postfix/sender_checks

    but in this case, I don't have a specific domain and IP control.
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    I think it's the sender domain that you can set in the per domain relay settings of the email domain.
     
    ahrasis likes this.

Share This Page