메일을 보내도록 PostFix를 설정하는 방법

메일을 보내도록 PostFix를 설정하는 방법

저는 웹사이트에 대한 이메일 확인 작업을 하고 있는데 이 내용이 정말 처음입니다. 그러니 누구든지 메일을 보내기 위해 postfix를 설정하는 방법을 친절하게 보여주세요. 메일만 보내면 됩니다. 일반 텍스트도 괜찮지만 암호화된 메일이 있으면 더 좋습니다. 저는 Java를 사용하여 메일을 보내고 있습니다. 제발 도와주세요

답변1

다른 호스트에서 SMTP 인증과 상호 작용하려면 dovecot이 필요합니다. 아래에 지정된 것과 유사한 샘플 구성을 사용하고 필요에 따라 mydomain 및 myhostname을 수정하십시오. 이는 기본적인 메일 전송 기능을 허용해야 합니다. 이메일 암호화에는 gnupg를 사용하세요. 어딘가에 Java 바인딩이 있어야 할 것 같습니다.

mydomain = yourdomain.com
myhostname = yourdomain.com
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mynetworks = 127.0.0.0/8, 10.0.0.0/24
home_mailbox = Maildir/
header_checks = regexp:/etc/postfix/header_checks
body_checks = regexp:/etc/postfix/body_checks
smtpd_banner = $myhostname ESMTP

# limit an email size 10M
message_size_limit = 10485760
# limit mailbox 1G
mailbox_size_limit = 1073741824

# for SMTP-Auth settings
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
smtpd_client_restrictions = permit_mynetworks,reject_unknown_client,permit
smtpd_recipient_restrictions = permit_mynetworks,permit_auth_destination,permit_sasl_authenticated,reject
smtpd_use_tls = yes
smtpd_tls_cert_file = /etc/pki/tls/certs/server.crt
smtpd_tls_key_file = /etc/pki/tls/certs/server.key
smtpd_tls_session_cache_database = btree:/var/lib/postfix/smtpd_scache

더 많은 정보가 필요하다면 다음의 유용한 링크를 참조하세요. http://www.server-world.info/en/note?os=Fedora_14&p=mail

관련 정보