I've uncommented the 'submission' line in master.cf and I can 'telnet example.com 587' on my mail server with no problem but how do I send mail from the command line of the client to the postfix server over port 587?
我已经取消注释了master.cf中的'submission'行,我可以在我的邮件服务器上'telnet example.com 587'没有问题,但如何通过端口587从客户端的命令行发送邮件到postfix服务器?
My server is hosted as a digitalocean droplet (centos instance) on the internet and my client is my home laptop.
我的服务器在互联网上作为digitalocean droplet(centos实例)托管,我的客户端是我的家用笔记本电脑。
Each time I try to deliver a message with the 'mail user@example.com' command I instantly receive a rejection message because my isp blocks port 25.
每次我尝试使用'mail user@example.com'命令发送消息时,我立即收到拒绝消息,因为我的isp会阻塞端口25。
Any help greatly appreciated :)
任何帮助非常感谢:)
1 个解决方案
#1
0
mail
command will drop the mail to the SMTP
server running on your home laptop and the SMTP server running on your home laptop is not configured i guess. So it is trying to deliver the mail by doing an MX lookup (i.e to port 25 of your MX server). If you want to do any smtp tests please try using swaks
tool.
mail命令会将邮件丢弃到家用笔记本电脑上运行的SMTP服务器上,并且我猜你的家用笔记本电脑上运行的SMTP服务器没有配置。所以它试图通过MX查找(即MX服务器的端口25)来传递邮件。如果您想进行任何smtp测试,请尝试使用swaks工具。
# For eg. to authenticate and send mail from your mail server, you will have to use
swaks -f you@example.com -t someone@yahoo.com -s example.com -p 587 --auth-user you@example.com --auth-pass somepass
# -f from
# -t to
# -s server
# -p port
# --auth-user username
# --auth-pass password
More info here Hope that helps.
更多信息在这里希望有所帮助。
#1
0
mail
command will drop the mail to the SMTP
server running on your home laptop and the SMTP server running on your home laptop is not configured i guess. So it is trying to deliver the mail by doing an MX lookup (i.e to port 25 of your MX server). If you want to do any smtp tests please try using swaks
tool.
mail命令会将邮件丢弃到家用笔记本电脑上运行的SMTP服务器上,并且我猜你的家用笔记本电脑上运行的SMTP服务器没有配置。所以它试图通过MX查找(即MX服务器的端口25)来传递邮件。如果您想进行任何smtp测试,请尝试使用swaks工具。
# For eg. to authenticate and send mail from your mail server, you will have to use
swaks -f you@example.com -t someone@yahoo.com -s example.com -p 587 --auth-user you@example.com --auth-pass somepass
# -f from
# -t to
# -s server
# -p port
# --auth-user username
# --auth-pass password
More info here Hope that helps.
更多信息在这里希望有所帮助。