AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-196732

AJN's questions

Martin Hope
AJN
Asked: 2018-10-28 10:34:28 +0800 CST

Exim4:“连接超时”无论转发 smtp 服务器

  • 1

Exim 在具有公共 IP (scaleway.net) 的公共云提供商的新配置 VM 上配置

目的:

能够从 CLI(或脚本)向公共目标收件人(gmail、yahoo、...)发送邮件

结果:

Exim4 日志文件/var/log/exim4/mainlog显示所有测试服务器(gmail、free.fr、online.net)的“连接超时”

配置细节:

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.5 LTS
Release:    16.04
Codename:   xenial
  • 服务器上没有配置防火墙,也没有来自云提供商的规则。
  • 解析的 smtp 服务器 IP 地址(来自 exim 日志文件)是可 ping 的。

使用不同的 smtp 服务器进行测试:(gmail、free.fr、online.net)

猫 /etc/exim4/update-exim4.conf.conf

# /etc/exim4/update-exim4.conf.conf
#
# Edit this file and /etc/mailname by hand and execute update-exim4.conf
# yourself or use 'dpkg-reconfigure exim4-config'
#
# Please note that this is _not_ a dpkg-conffile and that automatic changes
# to this file might happen. The code handling this will honor your local
# changes, so this is usually fine, but will break local schemes that mess
# around with multiple versions of the file.
#
# update-exim4.conf uses this file to determine variable values to generate
# exim configuration macros for the configuration file.
#
# Most settings found in here do have corresponding questions in the
# Debconf configuration, but not all of them.
#
# This is a Debian specific file

dc_eximconfig_configtype='smarthost'
dc_other_hostnames=''
dc_local_interfaces='127.0.0.1 ; ::1'
dc_readhost=''
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost='smtp.online.net::587'
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='false'
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool

使用 smtp 服务器为每个测试正确配置的帐户和密码:

猫 /etc/exim4/passwd.client

#gmail-smtp.1.google.com:[email protected]:pass1
#smtp.online.net:[email protected]:pass2
smtp.free.fr:[email protected]:pass2

root@scw-5c50c6:~# tail -f /var/log/exim4/mainlog

root@scw-5c50c6:~# tail -f /var/log/exim4/mainlog
2018-10-27 17:32:47 1gGSDM-0002ib-5Y == [email protected] R=smarthost T=remote_smtp_smarthost defer (-53): retry time not reached for any host
2018-10-27 17:32:47 1gGSKT-0002sr-C6 == [email protected] R=smarthost T=remote_smtp_smarthost defer (-53): retry time not reached for any host
2018-10-27 17:32:47 1gGSF6-0002ij-UA == [email protected] R=smarthost T=remote_smtp_smarthost defer (-53): retry time not reached for any host
2018-10-27 17:32:47 1gGSJs-0002no-EM == [email protected] R=smarthost T=remote_smtp_smarthost defer (-53): retry time not reached for any host
2018-10-27 17:32:47 1gGSHC-0002is-0H == [email protected] R=smarthost T=remote_smtp_smarthost defer (-53): retry time not reached for any host
2018-10-27 17:32:47 End queue run: pid=12074
2018-10-27 17:32:53 1gGSQA-00038q-A1 H=smtpauth-dc2.online.net [62.210.16.40] Connection timed out
2018-10-27 17:32:53 1gGSQA-00038q-A1 == [email protected] R=smarthost T=remote_smtp_smarthost defer (110): Connection timed out

2018-10-27 17:47:12 1gGSg4-00039P-CW <= root@localhost U=root P=local S=369
2018-10-27 17:47:12 1gGSg4-00039P-CW == [email protected] R=smarthost T=remote_smtp_smarthost defer (-53): retry time not reached for any host


2018-10-27 18:02:34 1gGSst-0003JZ-5k H=smtp.free.fr [212.27.48.4] Connection timed out
2018-10-27 18:02:34 1gGSst-0003JZ-5k == [email protected] R=smarthost T=remote_smtp_smarthost defer (110): Connection timed out
2018-10-27 18:03:09 1gGSvV-0003KT-9k <= root@localhost U=root P=local S=369
2018-10-27 18:03:09 1gGSvV-0003KT-9k == [email protected] R=smarthost T=remote_smtp_smarthost defer (-53): retry time not reached for any host

我在配置中遗漏了什么吗?

ubuntu
  • 1 个回答
  • 2816 Views
Martin Hope
AJN
Asked: 2016-08-12 04:13:39 +0800 CST

stress-ng:模拟特定的 cpu 百分比

  • 11

Linux环境:Debian、Ubuntu、Centos

目标:
测试设置警报并以不同cpu百分比触发不同警报的监控程序。
例如:(30-50%)、(51-70%) 和 >90%

所以我需要一个可以模拟每个核心的特定 cpu 百分比的 cpu 压力器。
stress-mg看起来是最先进的。

根据其文档http://kernel.ubuntu.com/~cking/stress-ng/可以将负载值设置在 0 到 100% 之间:

-l P --cpu-load P 以 P % 加载 CPU,0=sleep,100=full load(见 -c)

stress-ng -c 1 -p 30

压力-ng:信息:[12650]调度猪:0 I/O-Sync,1 CPU,0 VM-mmap,0 HDD-Write,0 Fork,0 Context-switch,30 Pipe,0 Cache,0 Socket,0 Yield, 0 Fallocate, 0 Flock, 0 Affinity, 0 Timer, 0 Dentry, 0 Urandom, 0 Float, 0 Int, 0 Semaphore, 0 Open, 0 SigQueue, 0 Poll

不希望的结果:
但它似乎不起作用,所有核心都被占用 100%

在此处输入图像描述

任何想法如何实现这一目标?

linux stress-testing cpu-usage
  • 2 个回答
  • 17838 Views
Martin Hope
AJN
Asked: 2016-03-10 05:56:11 +0800 CST

如何使用 OpenSSL 自动读取证书信息

  • 3

要为Apache生成 SSL 证书文件,我使用以下命令:

 openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/apache2/ssl/apache.key -out /etc/apache2/ssl/apache.cert

我用这些参数手动输入它:

国家名称(2 个字母代码)[AU]:AU
州或省名称(全名):Myname
[Some-State]:Some-State
地区名称(例如,城市)[]:城市
组织名称(例如,公司)[ Internet Widgits Pty Ltd]:Internet
组织单位名称(例如,section)[]:Section
Common Name(例如服务器 FQDN 或您的姓名)[]:yourname
电子邮件地址 []:[email protected]

是否可以使用选项从文件或直接从 OpenSSL 命令行输入它们?

OpenSSL 手册页中没有任何提示。

apache-2.4
  • 3 个回答
  • 1383 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve