直到最近,我的 Postfix 服务器运行良好。然后我实施了一些限制 a) 打击垃圾邮件 b) 禁止以我自己的名义向我发送电子邮件——我已经开始从我自己的电子邮件地址接收电子邮件,要求向某人发送比特币。
我想同时修复 a 和 b。
现在我无法通过我自己的 postfix 服务器发送电子邮件。
Client host rejected: cannot find your reverse hostname, [<my ip here>]
Run Code Online (Sandbox Code Playgroud)
请注意,我将笔记本电脑带到不同的地方和国家,并从这些地方连接到 WiFi。而且我希望能够始终发送电子邮件。
这是我的 Postfix 配置的一部分。对于帐户和域的数据库,我使用 Postgresql。
smtpd_helo_required = yes
smtpd_client_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_unknown_reverse_client_hostname,
reject_unknown_client_hostname,
reject_unauth_pipelining
smtpd_helo_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_invalid_helo_hostname,
### reject_non_fqdn_helo_hostname,
reject_unauth_pipelining
smtpd_sender_restrictions =
permit_mynetworks,
reject_sender_login_mismatch,
permit_sasl_authenticated,
reject_non_fqdn_sender,
reject_unknown_sender_domain,
reject_unauth_pipelining
smtpd_relay_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_non_fqdn_recipient,
reject_unknown_recipient_domain,
reject_unauth_destination
smtpd_recipient_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_non_fqdn_recipient,
reject_unknown_recipient_domain,
reject_unauth_pipelining
smtpd_data_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_multi_recipient_bounce,
reject_unauth_pipelining
# deliver mail …Run Code Online (Sandbox Code Playgroud) 为什么这不起作用?
[my_user@archlinux ~]$ sudo chown -R ${whoami} /my_folder/path1/path2
chown: missing operand after ‘/my_folder/path1/path2’
Try 'chown --help' for more information.
[my_user@archlinux ~]$ sudo chown -R my_user /my_folder/path1/path2
[my_user@archlinux ~]$ ${whoami}
[my_user@archlinux ~]$ $whoami
Run Code Online (Sandbox Code Playgroud)
但:
[my_user@archlinux ~]$ whoami
my_user
Run Code Online (Sandbox Code Playgroud)
如何使用whoamiin的结果sudo chown -R?