質問するログイン新規登録

質問編集履歴

2

main.cfの設定追加

2020/03/15 07:26

投稿

osamuya
osamuya

スコア241

title CHANGED
File without changes
body CHANGED
@@ -10,15 +10,45 @@
10
10
 
11
11
  ```/etc/postfix/main.cf
12
12
  # /etc/postfix/main.cf
13
+ alias_database = hash:/etc/aliases
14
+ alias_maps = hash:/etc/aliases
15
+ canonical_classes = envelope_recipient, header_recipient
16
+ canonical_maps = regexp:/etc/postfix/allmails_to_admin.txt
17
+ command_directory = /usr/sbin
18
+ config_directory = /etc/postfix
13
- mynetworks = 127.0.0.0/8,192.168.0.0/24
19
+ daemon_directory = /usr/libexec/postfix
20
+ data_directory = /var/lib/postfix
21
+ debug_peer_level = 2
22
+ debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5
23
+ home_mailbox = Maildir/
24
+ html_directory = no
14
25
  inet_interfaces = all
15
26
  inet_protocols = all
27
+ local_header_rewrite_clients = static:all
28
+ mail_owner = postfix
29
+ mailq_path = /usr/bin/mailq.postfix
30
+ manpage_directory = /usr/share/man
31
+ mydestination = $mydomain, $myhostname, localhost.$mydomain, localhost
16
- ...
32
+ mydomain = example.com
33
+ myhostname = post.example.com
34
+ mynetworks = 127.0.0.0/8,192.168.0.0/24
35
+ myorigin = $myhostname
36
+ newaliases_path = /usr/bin/newaliases.postfix
37
+ queue_directory = /var/spool/postfix
38
+ readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
39
+ relayhost = [smtp.sendgrid.net]:587
40
+ sample_directory = /usr/share/doc/postfix-2.10.1/samples
41
+ sendmail_path = /usr/sbin/sendmail.postfix
42
+ setgid_group = postdrop
43
+ smtp_sasl_auth_enable = yes
44
+ smtp_sasl_mechanism_filter = plain
45
+ smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
46
+ smtp_sasl_tls_security_options = noanonymous
47
+ smtp_tls_CApath = /etc/pki/tls/certs/ca-bundle.crt
48
+ smtp_use_tls = yes
49
+ smtpd_banner = $myhostname ESMTP unknown
50
+ smtpd_client_restrictions = permit_mynetworks check_sender_access regexp:/etc/postfix/white-list,
17
- smtpd_recipient_restrictions =
51
+ unknown_local_recipient_reject_code = 550
18
- permit_mynetworks
19
- ...
20
- smtpd_client_restrictions =
21
- permit_mynetworks
22
52
  ```
23
53
  ポートも空いています。
24
54
  こちらに紹介されているようなホワイトリストにも登録してみましたが、効果はありませんでした。

1

smtpd_client_restrictionsを追記しました。

2020/03/15 07:26

投稿

osamuya
osamuya

スコア241

title CHANGED
File without changes
body CHANGED
@@ -17,6 +17,8 @@
17
17
  smtpd_recipient_restrictions =
18
18
  permit_mynetworks
19
19
  ...
20
+ smtpd_client_restrictions =
21
+ permit_mynetworks
20
22
  ```
21
23
  ポートも空いています。
22
24
  こちらに紹介されているようなホワイトリストにも登録してみましたが、効果はありませんでした。