编辑postfix 的配置文件 /etc/main.cf 中有个 mynetworks 字段,默认情况下它只写着本地subnet,即 127.0.0.0/8,所以本地的 Squirrelmail 收发正常。 为了支持外部邮件程序,应该在这里添加外网的subnet,即本地服务器真实IP地址的 subn ...
分类:
数据库 时间:
2020-07-01 18:42:28
阅读次数:
76
在conftest.py中实现 # coding:utf-8 import pytest from datetime import datetime from py._xmlgen import html import pytest @pytest.mark.optionalhook def pyt ...
分类:
Web程序 时间:
2020-06-29 00:20:17
阅读次数:
212
1、删除一个大文件 我在生产服务器上有一个很大的200GB的日志文件需要删除。我的rm和ls命令已经崩溃,我担心这是由于巨大的磁盘IO造成的,要删除这个大文件,输入: > /path/to/file.log # 或使用如下格式 : > /path/to/file.log # 然后删除它 rm /pa ...
分类:
其他好文 时间:
2020-06-28 00:23:01
阅读次数:
75
IDEA中的模板可以定义一些常用代码字母的缩写,输入缩写时可以出现预定义的固定模式的代码,我们可以在下面两个地方找到模板 两者的区别在于:Postfix Completion中定义的的模板不可以修改,Live Templates中的模板可以根据自己的使用习惯进行修改下面介绍一下常用的模板: main ...
分类:
其他好文 时间:
2020-06-27 13:21:48
阅读次数:
96
添加本地域名解析 sudo gedit /etc/hosts 127.0.0.1 mail .test.lab test sudo gedit /etc/hostname test 重启后用以下命令检测是否生效hostnamehostname -f 安装postfix sudo apt-get in ...
分类:
其他好文 时间:
2020-06-24 20:09:02
阅读次数:
58
一、安装依赖包sudoyuminstall-ycurlpolicycoreutils-pythonopenssh-serverpostfix二、开启相关服务及放行防火墙#启动sshd并配置开机启动sudosystemctlenablesshdsudosystemctlstartsshd#启动postfix并配置开机启动sudosystemctlenablepostfixsudosystemctls
分类:
其他好文 时间:
2020-06-17 11:06:18
阅读次数:
57
部署社区版gitlab安装前准备:内存:至少4G1.安装依赖检查依赖包是否安装yuminstall-ycurlopenssh-serveropenssh-clientspostfixcroniepolicycoreutils-python2.启动postfix,并设置为开机启动systemctlstartpostfixsystemctlenablepostfix3.设置防火墙(可暂时关闭防火墙)f
分类:
其他好文 时间:
2020-06-17 10:30:12
阅读次数:
98
import yamail# import yagmail 这个模块,发中文附件是乱码user = '2472xxxxx@qq.com' #邮箱账号password ='irsfdvzkwxbrdjfj' #邮箱密码 #如果是163,qq,126等申请的免费邮箱的话, 密码就是授权码,授权码一般在邮 ...
分类:
编程语言 时间:
2020-06-12 00:52:03
阅读次数:
65
邮件服务器搭建 前言 本篇参考 https://blog.51cto.com/5001660/2377785 一个电子邮件系统应具有的三个主要组成构件,这就是用户代理、邮件服务器 ,以及邮件发送协议(如SMTP)和邮件读取协议(如POP3)。POP3是邮局协议 (Post Office Protoc ...
分类:
其他好文 时间:
2020-05-30 21:31:53
阅读次数:
130
git解决 fatal: not in a git directory 问题描述:执行下面语句时报错:fatal: not in a git directorygit config --global user.name "yourName" //注意,--和global之间没有空格git confi ...
分类:
其他好文 时间:
2020-05-30 17:14:01
阅读次数:
548