- 工信部备案号 滇ICP备05000110号-1
- 滇公网安备53011102001527号
- 增值电信业务经营许可证 B1.B2-20181647、滇B1.B2-20190004
- 云南互联网协会理事单位
- 安全联盟认证网站身份V标记
- 域名注册服务机构许可:滇D3-20230001
- 代理域名注册服务机构:新网数码
- CN域名投诉举报处理平台:电话:010-58813000、邮箱:service@cnnic.cn
[root@localhost software]# tar -jxvf mailx-12.4.tar.bz2 [root@localhost software]# cd mailx-12.4[root@localhost mailx-12.4]# makeopenssl.c:108: 错误:expected declaration specifiers or ‘...’ before ‘STACK’openssl.c: 在函数‘ssl_select_method’中:openssl.c:215: 警告:赋值丢弃了指针目标类型的限定openssl.c:217: 警告:赋值丢弃了指针目标类型的限定openssl.c:219: 警告:赋值丢弃了指针目标类型的限定openssl.c:223: 警告:赋值丢弃了指针目标类型的限定openssl.c:226: 警告:赋值丢弃了指针目标类型的限定openssl.c: 在函数‘ssl_check_host’中:openssl.c:311: 错误:‘STACK’未声明(在此函数内第一次使用)openssl.c:311: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其openssl.c:311: 错误:所在的函数内也只报告一次。)openssl.c:311: 错误:‘gens’未声明(在此函数内第一次使用)openssl.c: 在文件层:openssl.c:499: 错误:expected declaration specifiers or ‘...’ before ‘STACK’openssl.c: 在函数‘smime_verify’中:openssl.c:508: 错误:‘STACK’未声明(在此函数内第一次使用)openssl.c:508: 错误:‘certs’未声明(在此函数内第一次使用)openssl.c:508: 错误:‘gens’未声明(在此函数内第一次使用)openssl.c:555: 错误:‘chain’未声明(在此函数内第一次使用)openssl.c: 在函数‘cverify?中:openssl.c:617: 错误:‘STACK’未声明(在此函数内第一次使用)openssl.c:617: 错误:‘chain’未声明(在此函数内第一次使用)openssl.c:649: 错误:提供给函数‘smime_verify’的实参太多openssl.c: 在函数‘smime_encrypt’中:openssl.c:690: 错误:‘STACK’未声明(在此函数内第一次使用)openssl.c:690: 错误:‘certs’未声明(在此函数内第一次使用)openssl.c: 在函数‘smime_certsave’中:openssl.c:953: 错误:‘STACK’未声明(在此函数内第一次使用)openssl.c:953: 错误:‘certs’未声明(在此函数内第一次使用)openssl.c:955: 错误:‘chain’未声明(在此函数内第一次使用)Makefile:80: recipe for target 'openssl.o' failedmake: *** [openssl.o] Error 1 |
[root@localhost mailx-12.4]# wget http://www.landui.com/patches/blfs/7.6/mailx-12.4-openssl_1.0.0_build_fix-1.patch[root@localhost mailx-12.4]# patch -Np1 -i mailx-12.4-openssl_1.0.0_build_fix-1.patch patching file makeconfig patching file openssl.c |
[root@localhost mailx-12.4]# make clean #清除历史编译后文件[root@localhost mailx-12.4]# make #再次编绎[root@localhost mailx-12.4]# make install UCBINSTALL=/usr/bin/install/usr/bin/install -c mailx /usr/local/bin/mailxstrip /usr/local/bin/mailxtest -d /usr/local/share/man/man1 || mkdir -p /usr/local/share/man/man1/usr/bin/install -c -m 644 mailx.1 /usr/local/share/man/man1/mailx.1test -d /etc || mkdir -p /etctest -f /etc/nail.rc || /usr/bin/install -c -m 644 nail.rc /etc/nail.rc[root@localhost bin]# vim /etc/nail.rc #编辑nail.rc配置外部SMTP信息set from=xxxx@163.com smtp=smtp.163.comset smtp-auth-user=xxxxx@163.com smtp-auth-password=xxxxx smtp-auth=login[root@localhost mailx-12.4]# service postfix reload #重新加载postfix,可以不用重启的。 |
[root@localhost mailx-12.4]# mail -s "Message" xxxxx@163.com < /tmp/info.message |
[root@localhost mailx-12.4]# whereis mailxmailx: /bin/mailx /usr/bin/mailx /usr/local/bin/mailx /usr/share/man/man1/mailx.1 /usr/share/man/man1/mailx.1.gz /usr/share/man/man1p/mailx.1p.gz |
[root@localhost mailx-12.4]# cd /bin[root@localhost bin]# rm -rf mailx [root@localhost bin]# ln -s /usr/local/bin/mailx mailx [root@localhost bin]# mailx -V [root@localhost bin]# mail -s "Message" xxxxx@163.com < /tmp/info.message |
售前咨询
售后咨询
备案咨询
二维码

TOP