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-30996

jamieb's questions

Martin Hope
jamieb
Asked: 2012-07-13 15:25:49 +0800 CST

我如何配置 Postfix 以保留通过它发送的所有电子邮件的副本?

  • 17

我的公司目前使用 Google Apps 来处理电子邮件。我可以将 Google Apps 配置为通过中继服务器转发所有外发电子邮件。我还可以将我的 MX 记录指向此服务器,并让它将收到的邮件转发到 Google。因此,我可以将 Postfix 配置为发送给我们用户和从我们用户发送的所有电子邮件的代理。这部分已经完成并且工作正常。但是,我不确定如何保留通过它的每条消息的完整副本。

我有兴趣这样做,以便所有发往/来自客户的电子邮件都可以转储到我们的 CRM 系统中,以便我们公司中可能与客户交谈的每个人都可以搜索它们。最常见的做法是在 Postfix 中指定“始终密件抄送”设置。但是,这只会存档发送给客户的电子邮件,而不是从他们那里收到的电子邮件。有没有人有什么建议?谢谢!

postfix
  • 1 个回答
  • 22338 Views
Martin Hope
jamieb
Asked: 2010-03-14 23:02:45 +0800 CST

我的 linux 服务器需要一个多小时才能启动。建议?

  • 6

我正在构建一个 CentOS 5.4 系统,该系统使用模拟 IDE 驱动器的读卡器启动紧凑型闪存卡。从字面上看,启动大约需要一个小时。超慢部分发生在 Grub 加载内核时。完成后,启动过程的其余部分只需大约一分钟即可进入登录提示。有没有人有什么建议?

我怀疑这可能与 UDMA 有关。我的 BIOS 中与 IDE 相关的所有内容似乎都已检出。读取性能 hdparm 告诉我 1.77 MB/s。哎哟! (但即使以这样的速度,解压和加载内核也不应该花一个小时)

 [root@server ~]# hdparm -tT /dev/hdc

/dev/hdc:
 Timing cached reads:   2444 MB in  2.00 seconds = 1222.04 MB/sec
 Timing buffered disk reads:    6 MB in  3.39 seconds =   1.77 MB/sec

尝试启用 DMA 是不行的:

[root@server ~]# hdparm -d1 /dev/hdc

/dev/hdc:
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Operation not permitted
 using_dma    =  0 (off)

以下是一些可能有帮助的命令输出:

系统

[root@server ~]# uname -a
Linux server.localdomain 2.6.18-164.el5xen #1 SMP Thu Sep 3 04:47:32 EDT 2009 i686 i686 i386 GNU/Linux

PCI信息:

[root@server ~]# lspci -v
00:00.0 Host bridge: Intel Corporation 82945G/GZ/P/PL Memory Controller Hub (rev 02)
        Subsystem: Intel Corporation 82945G/GZ/P/PL Memory Controller Hub
        Flags: bus master, fast devsel, latency 0
        Capabilities: [e0] Vendor Specific Information

00:02.0 VGA compatible controller: Intel Corporation 82945G/GZ Integrated Graphics Controller (rev 02) (prog-if 00 [VGA controller])
        Subsystem: Intel Corporation 82945G/GZ Integrated Graphics Controller
        Flags: bus master, fast devsel, latency 0, IRQ 10
        Memory at fdf00000 (32-bit, non-prefetchable) [size=512K]
        I/O ports at ff00 [size=8]
        Memory at d0000000 (32-bit, prefetchable) [size=256M]
        Memory at fdf80000 (32-bit, non-prefetchable) [size=256K]
        Capabilities: [90] Message Signalled Interrupts: 64bit- Queue=0/0 Enable-
        Capabilities: [d0] Power Management version 2

00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 01) (prog-if 00 [UHCI])
        Subsystem: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1
        Flags: bus master, medium devsel, latency 0, IRQ 16
        I/O ports at fe00 [size=32]

00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 01) (prog-if 00 [UHCI])
        Subsystem: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2
        Flags: bus master, medium devsel, latency 0, IRQ 17
        I/O ports at fd00 [size=32]

00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 01) (prog-if 00 [UHCI])
        Subsystem: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3
        Flags: bus master, medium devsel, latency 0, IRQ 18
        I/O ports at fc00 [size=32]

00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 01) (prog-if 00 [UHCI])
        Subsystem: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4
        Flags: bus master, medium devsel, latency 0, IRQ 19
        I/O ports at fb00 [size=32]

00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01) (prog-if 20 [EHCI])
        Subsystem: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller
        Flags: bus master, medium devsel, latency 0, IRQ 16
        Memory at fdfff000 (32-bit, non-prefetchable) [size=1K]
        Capabilities: [50] Power Management version 2
        Capabilities: [58] Debug port

00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1) (prog-if 01 [Subtractive decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
        I/O behind bridge: 0000d000-0000dfff
        Memory behind bridge: fde00000-fdefffff
        Prefetchable memory behind bridge: 00000000fdd00000-00000000fdd00000
        Capabilities: [50] #0d [0000]

00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
        Subsystem: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge
        Flags: bus master, medium devsel, latency 0
        Capabilities: [e0] Vendor Specific Information

00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) SATA IDE Controller (rev 01) (prog-if 80 [Master])
        Subsystem: Intel Corporation 82801GB/GR/GH (ICH7 Family) SATA IDE Controller
        Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 17
        I/O ports at <unassigned>
        I/O ports at <unassigned>
        I/O ports at <unassigned>
        I/O ports at <unassigned>
        I/O ports at f800 [size=16]
        Capabilities: [70] Power Management version 2

00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
        Subsystem: Intel Corporation 82801G (ICH7 Family) SMBus Controller
        Flags: medium devsel, IRQ 17
        I/O ports at 0500 [size=32]

01:04.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
        Subsystem: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
        Flags: bus master, medium devsel, latency 32, IRQ 18
        I/O ports at de00 [size=256]
        Memory at fdeff000 (32-bit, non-prefetchable) [size=256]
        Capabilities: [50] Power Management version 2

01:06.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
        Subsystem: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
        Flags: bus master, medium devsel, latency 32, IRQ 17
        I/O ports at dc00 [size=256]
        Memory at fdefe000 (32-bit, non-prefetchable) [size=256]
        Capabilities: [50] Power Management version 2

01:07.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
        Subsystem: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
        Flags: bus master, medium devsel, latency 32, IRQ 19
        I/O ports at da00 [size=256]
        Memory at fdefd000 (32-bit, non-prefetchable) [size=256]
        Capabilities: [50] Power Management version 2

hdparm 输出:

[root@server ~]# hdparm  /dev/hdc   

/dev/hdc:
 multcount    =  0 (off)
 IO_support   =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  0 (off)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 8146/16/63, sectors = 8211168, start = 0

[root@server ~]# hdparm -I /dev/hdc

/dev/hdc:

ATA device, with non-removable media
        Model Number:       InnoDisk Corp. - iCF4000 4GB            
        Serial Number:      20091023AACA70000753
        Firmware Revision:  081107  
Standards:
        Supported: 5 
        Likely used: 6
Configuration:
        Logical         max     current
        cylinders       8146    8146
        heads           16      16
        sectors/track   63      63
        --
        CHS current addressable sectors:    8211168
        LBA    user addressable sectors:    8211168
        device size with M = 1024*1024:        4009 MBytes
        device size with M = 1000*1000:        4204 MBytes (4 GB)
Capabilities:
        LBA, IORDY(can be disabled)
        Standby timer values: spec'd by Vendor
        R/W multiple sector transfer: Max = 2   Current = 2
        DMA: mdma0 mdma1 mdma2 udma0 udma1 *udma2 udma3 udma4 
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4 
             Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
        Enabled Supported:
           *    Power Management feature set
           *    WRITE_BUFFER command
           *    READ_BUFFER command
           *    NOP cmd
           *    CFA feature set
           *    Mandatory FLUSH_CACHE
HW reset results:
        CBLID- above Vih
        Device num = 0
CFA power mode 1:
        enabled and required by some commands
        Maximum current = 100ma
Checksum: correct

编辑: 通过“GRUB loading stage 2 ...”消息大约需要 5 分钟。我得出的结论是,问题可能是:引导加载程序、BIOS/固件或硬件问题。我已经玩过所有相关的 BIOS 设置,但没有任何运气,并更换了我的 IDE 电缆,以防万一我有一个坏的。我订购了一张新的紧凑型闪存卡(不同品牌),但要过几天才能到这里。我目前也在运行 Memtest86,看看我的 RAM 是否有奇怪的问题。完成后,我将查看是否有适用于我的主板的固件更新。

performance hard-drive linux centos
  • 4 个回答
  • 3479 Views
Martin Hope
jamieb
Asked: 2010-02-12 19:02:30 +0800 CST

使用 iptables 将传入请求从端口 2525 重定向到端口 25?

  • 1

我是一名在家开发应用程序的开发人员。我的应用程序的功能之一是它发送外发通知电子邮件。我正在尝试通过我们公司的一台公共服务器中继这些消息。我已在所述服务器上配置 sendmail 以接受来自我家 IP 地址的连接。但是,我的 ISP 阻止了到 TCP 端口 25 的传出连接。

我想在公共服务器上使用 iptables 来接受端口 2525 上的传入连接并将它们重定向到端口 25。我该怎么做?谢谢!

linux iptables
  • 2 个回答
  • 3003 Views
Martin Hope
jamieb
Asked: 2010-01-07 17:55:51 +0800 CST

使用 iptables 阻止除一台主机之外的 SMTP?

  • 5

我有一个服务器,它既可以用作邮件服务器,也可以用作 Web 服务器。我想使用 iptables 来允许所有传入和传出连接,传入端口 25 除外。我只希望一个远程主机能够连接到端口 25(以便中继邮件)。

本质上,我想要一个完全开放的服务器,而不会将其变成垃圾邮件中继。有什么建议么?谢谢!

iptables
  • 2 个回答
  • 17604 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