私はサーバで送信する送信メールを暗号化するためにzeypleを使用します。postfix with zeyple - 中継アクセスが拒否されました
"ZeypleはGPG/PGPで送信メールを自動的に暗号化するPostfixフィルタ/フックです。"
https://github.com/infertux/zeyple
は、私がインストールされ、のみメールを送信するために接尾辞を設定します:/etc/postfix/main.cf で$ sudoのapt-getをpostfixのインストール
General type of mail configuration: Internet Site
System mail name: <hostname>
を
#inet_interfaces = all
inet_interfaces = loopback-only
暗号化されていないメールを送信すると、この時点で正常に動作します。
https://github.com/infertux/zeyple/blob/master/INSTALL.md からチュートリアルをzeypleインストールし、main.cfに
content_filter = zeyple
を設定した後、私は
$日付を "リレーアクセス拒否" を取得|メール-s testmail [email protected]
<[email protected]>: Command died with status 1: "/usr/local/bin/zeyple.py".
Command output: Traceback (most recent call last): File
"/usr/local/bin/zeyple.py", line 274, in <module>
zeyple.process_message(message, recipients) File
"/usr/local/bin/zeyple.py", line 126, in process_message
self._send_message(out_message, recipient) File
"/usr/local/bin/zeyple.py", line 260, in _send_message
smtp.sendmail(message['From'], recipient, message.as_string()) File
"/usr/lib/python2.7/smtplib.py", line 747, in sendmail raise
SMTPRecipientsRefused(senderrs) smtplib.SMTPRecipientsRefused:
{'[email protected]': (454, '4.7.1 <[email protected]>: Relay access
denied')}
$猫/var/log/zeyple.log
2017-07-01 11:43:17,019 29616 INFO Zeyple ready to encrypt outgoing emails
2017-07-01 11:43:17,020 29616 INFO Processing outgoing message <[email protected]<hostname>.dedicated.hosteurope.de>
2017-07-01 11:43:17,020 29616 INFO Recipient: [email protected]
2017-07-01 11:43:17,020 29616 INFO Trying to encrypt for [email protected]
2017-07-01 11:43:17,034 29616 INFO Key ID: <some-key>
2017-07-01 11:43:17,054 29616 INFO Sending message <[email protected]<hostname>.dedicated.hosteurope.de>
$はpostconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
content_filter = zeyple
inet_interfaces = loopback-only
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = <hostname>.dedicated.hosteurope.de, localhost.dedicated.hosteurope.de, , localhost
myhostname = <hostname>.dedicated.hosteurope.de
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost =
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
は、私は任意の助けを感謝しています。
:/var/log/mail.logチェックすることにより