免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2082 | 回复: 0
打印 上一主题 下一主题

[Mail] 请问用sendmail如何给gmail发信? [复制链接]

论坛徽章:
18
辰龙
日期:2014-05-21 21:01:4115-16赛季CBA联赛之深圳
日期:2016-12-23 13:51:3815-16赛季CBA联赛之北控
日期:2016-11-28 18:26:3815-16赛季CBA联赛之佛山
日期:2016-11-03 11:18:5815-16赛季CBA联赛之辽宁
日期:2016-07-10 16:09:4115-16赛季CBA联赛之江苏
日期:2016-02-20 23:09:202015亚冠之塔什干棉农
日期:2015-08-17 19:49:492015年亚洲杯之日本
日期:2015-04-30 01:24:342015年亚洲杯之约旦
日期:2015-04-01 00:37:182015年亚洲杯之沙特阿拉伯
日期:2015-03-02 15:55:40处女座
日期:2014-05-25 10:34:0020周年集字徽章-年
日期:2023-04-23 11:17:52
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-01-04 20:51 |只看该作者 |倒序浏览
大家好!我想在我的Busybox上用sendmail给我的gmail邮箱发信,我看了busybox的sendmail的命令参数如下:
  1. sendmail [OPTIONS] [RECIPIENT_EMAIL]...
  2. Read email from stdin and send it
  3. Standard options:
  4. -t Read additional recipients from message body
  5. -f sender Sender (required)
  6. -o options Various options. -oi implied, others are ignored
  7. Busybox specific options:
  8. -w seconds Network timeout
  9. -H 'PROG ARGS' Run connection helper
  10. Examples:
  11. -H 'exec openssl s_client -quiet -tls1 -starttls smtp-connect smtp.gmail.com:25' <email.txt [4<username_and_passwd.txt | -au<username> -ap<password>]
  12. -H 'exec openssl s_client -quiet -tls1 -connect smtp.gmail.com:465' <email.txt [4<username_and_passwd.txt | -au<username> -ap<password>]
  13. -S server[:port] Server
  14. -au<username> Username for AUTH LOGIN
  15. -ap<password> Password for AUTH LOGIN
  16. -am<method> Authentication method. Ignored. LOGIN is implied
  17. Other options are silently ignored; -oi -t is implied Use makemime applet to create message with attachments
复制代码
我试了一下,却报Segmentation fault,请问这是怎么回事呢?
  1. root@jinx:/tmp# sendmail -S smtp.gmail.com:25 -f user2000@gmail.com -au user2000 -ap pass2000 -t test user2000@gmail.com
  2. 220 mx.google.com ESMTP zc6sm102053747pab.0 - gsmtp
  3. 250 2.0.0 OK zc6sm102053747pab.0 - gsmtp
  4. Segmentation fault
  5. root@jinx:/tmp#
复制代码
应该如何修改命令才能成功发信呢?谢谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP