質問編集履歴

2

main.cfの設定追加

2020/03/15 07:26

投稿

osamuya
osamuya

スコア241

test CHANGED
File without changes
test CHANGED
@@ -22,23 +22,83 @@
22
22
 
23
23
  # /etc/postfix/main.cf
24
24
 
25
+ alias_database = hash:/etc/aliases
26
+
27
+ alias_maps = hash:/etc/aliases
28
+
29
+ canonical_classes = envelope_recipient, header_recipient
30
+
31
+ canonical_maps = regexp:/etc/postfix/allmails_to_admin.txt
32
+
33
+ command_directory = /usr/sbin
34
+
35
+ config_directory = /etc/postfix
36
+
25
- mynetworks = 127.0.0.0/8,192.168.0.0/24
37
+ daemon_directory = /usr/libexec/postfix
38
+
39
+ data_directory = /var/lib/postfix
40
+
41
+ debug_peer_level = 2
42
+
43
+ debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5
44
+
45
+ home_mailbox = Maildir/
46
+
47
+ html_directory = no
26
48
 
27
49
  inet_interfaces = all
28
50
 
29
51
  inet_protocols = all
30
52
 
31
- ...
53
+ local_header_rewrite_clients = static:all
32
54
 
33
- smtpd_recipient_restrictions =
55
+ mail_owner = postfix
34
56
 
35
- permit_mynetworks
57
+ mailq_path = /usr/bin/mailq.postfix
36
58
 
37
- ...
59
+ manpage_directory = /usr/share/man
38
60
 
39
- smtpd_client_restrictions =
61
+ mydestination = $mydomain, $myhostname, localhost.$mydomain, localhost
40
62
 
63
+ mydomain = example.com
64
+
65
+ myhostname = post.example.com
66
+
67
+ mynetworks = 127.0.0.0/8,192.168.0.0/24
68
+
69
+ myorigin = $myhostname
70
+
71
+ newaliases_path = /usr/bin/newaliases.postfix
72
+
73
+ queue_directory = /var/spool/postfix
74
+
75
+ readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
76
+
77
+ relayhost = [smtp.sendgrid.net]:587
78
+
79
+ sample_directory = /usr/share/doc/postfix-2.10.1/samples
80
+
81
+ sendmail_path = /usr/sbin/sendmail.postfix
82
+
41
- permit_mynetworks
83
+ setgid_group = postdrop
84
+
85
+ smtp_sasl_auth_enable = yes
86
+
87
+ smtp_sasl_mechanism_filter = plain
88
+
89
+ smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
90
+
91
+ smtp_sasl_tls_security_options = noanonymous
92
+
93
+ smtp_tls_CApath = /etc/pki/tls/certs/ca-bundle.crt
94
+
95
+ smtp_use_tls = yes
96
+
97
+ smtpd_banner = $myhostname ESMTP unknown
98
+
99
+ smtpd_client_restrictions = permit_mynetworks check_sender_access regexp:/etc/postfix/white-list,
100
+
101
+ unknown_local_recipient_reject_code = 550
42
102
 
43
103
  ```
44
104
 

1

smtpd_client_restrictionsを追記しました。

2020/03/15 07:26

投稿

osamuya
osamuya

スコア241

test CHANGED
File without changes
test CHANGED
@@ -36,6 +36,10 @@
36
36
 
37
37
  ...
38
38
 
39
+ smtpd_client_restrictions =
40
+
41
+ permit_mynetworks
42
+
39
43
  ```
40
44
 
41
45
  ポートも空いています。