두 개의 이메일이 동일한 도메인

두 개의 이메일이 동일한 도메인

1개의 도메인을 기반으로 2개의 이메일을 추가하기 위해 접미사 설정을 변경하는 방법에 대해 혼란스럽습니다. 매뉴얼에 따르면 다음과 같아야 합니다.

 /etc/postfix/main.cf:
     virtual_alias_domains = example.com (...other hosted domains here if needed...)
     virtual_alias_maps = hash:/etc/postfix/virtual

 /etc/postfix/virtual:
     [email protected] postmaster
     [email protected]       joe
     [email protected]      jane
     (...virtual aliases for more domains...)

현재 작업 중인 접미어 설정은 여기에 있습니다(이것은[이메일 보호됨]):

/etc/postfix/main.cf:

    smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
    biff = no
    append_dot_mydomain = no
    readme_directory = no
    mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = loopback-only
    inet_protocols = all
    smtp_tls_policy_maps = hash:/etc/postfix/tls_policy
    smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
    smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
    smtpd_use_tls=yes
    smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
    smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
    smtp_header_checks = pcre:/etc/postfix/smtp_header_checks
    myhostname = pcelgery
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    mydestination = pcelgery, localhost.com, localhost
    relayhost = smtp.zoho.com:587
    smtp_sasl_auth_enable = yes
    smtp_sasl_password_maps = hash:/etc/postfix/password
    smtp_generic_maps = hash:/etc/postfix/generic
    smtp_sasl_security_options = noanonymous
    smtp_always_send_ehlo = yes
    smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
    smtpd_relay_restrictions = permit_mynetworks,permit_sasl_authenticated,defer_unauth_destination

/etc/postfix/generic:
    root [email protected]

/etc/postfix/password:
    smtp.zoho.com:587 [email protected]:DonaldMcDonaldKangreBurger

/etc/postfix/smtp_header_checks:
    /^From:.*/ REPLACE From:[email protected]

/etc/postfix/tls_policy:
    smtp.zoho.com:587 encrypt

위 구성에 따라 다른 이메일을 추가해야 합니다([이메일 보호됨]) 그것도 smtp.zoho.com:587을 통해 전달됩니다.

그렇다면 위의 구성을 어떻게 조정하여 그렇게 할 수 있습니까? 이를 달성하려면 postfix main.cf에 virtual_maps 및 별칭이 필요합니까?

어떤 조언이라도 대단히 감사하겠습니다.

답변1

도메인에 대해 이미 postfix를 구성했다고 가정합니다.@example.com. 이는 postfix가 호스트에 정의된 모든 사용자에게 이메일을 전달해야 함을 의미합니다.피셀게리. 예:[이메일 보호됨]

그럼, 귀하의 질문에 답변해 드리겠습니다.

도메인에 새 사서함을 추가하는 방법은 무엇입니까?

새로운 OS 사용자를 생성하면 됩니다.

virtual_maps와 별칭이 필요합니까?

아니요, 다른 로컬 또는 원격 도메인으로 이메일을 전달하려는 경우가 아니면 가능합니다.

문제가 명확해지기를 바랍니다.

관련 정보