Problem with Postfix // iRedmail configuration


  • Donator

    Hi guys,

    I have a Centos 7 which has an iRedmail web mail server in order the users to send local email each-other The Postfix has configured in order to send mail to internal users not external, as the below. My question is how to configure postfix to send email outside (External) from one specific domain. For example:

    I have create a domain at iRedmail test.com with multiple email addresses ([email protected],[email protected] etc).My question is how to allow this specific domain (@test.com) to send to external emails.

    vim /etc/postfix/main.cf
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_security_options = noanonymous
    smtpd_sasl_local_domain = $myhostname
    broken_sasl_auth_clients = yes
    smtpd_sasl_security_options = noanonymous


    smtpd_recipient_restrictions =
    permit_sasl_authenticated,
    permit_mynetworks,
    check_relay_domains


    myhostname = localhost
    mydomain = localdomain
    mydestination = $myhostname, localhost.$mydomain, localhost


    default_transport = error:outside mail is not deliverable


  • Donator

    Hello again,

    I have found a temporary solution as per below. The email accounts that i want to use , only for internal purposes, added into a specific class (internal_only). All the other domain- account, can send to external emails. Don't forget to postmap interna_senders & internal domain.

    smtpd_sender_restrictions =

    check_sender_access hash:/etc/postfix/internal_senders

    reject_non_fqdn_sender

    reject_unlisted_sender

    permit_mynetworks

    permit_sasl_authenticated

    check_sender_access pcre:/etc/postfix/sender_access.pcre

    smtpd_restriction_classes = internal_only

    internal_only = check_recipient_access hash:/etc/postfix/internal_domain reject


Log in to reply