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

Bene's questions

Martin Hope
Bene
Asked: 2016-04-26 10:00:20 +0800 CST

postfix 只允许 localhost 本地用户

  • 1

我有一个小问题。我提供一些客户端访问我的服务器以执行自己的脚本(当然在他们自己的 chroot 环境中,等等......)。今天发生的问题:有些人在端口 25 上获得对 localhost 的 telnet 访问权限,并且正在向世界发送电子邮件,这几乎是一个开放的中继:(

我正在使用后缀,它还需要身份验证:

smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf, reject_unauth_destination

但是本地脚本显然不需要经过 sasl 认证。如果从 permit_mynetworks 中删除 localhost,则某些反垃圾邮件例程不再起作用...

那么如何配置 postfix 以允许本地主机在本地发送邮件而不是在没有身份验证的情况下从外部发送邮件呢?

有什么建议么?

smtp postfix localhost smtpd
  • 2 个回答
  • 5317 Views
Martin Hope
Bene
Asked: 2014-03-08 13:02:03 +0800 CST

win server 2008r2 网络共享错误元素未找到

  • 1

我已经设置了带有 DNS 和 AD 的 Windows Server 2008R2。当我在服务器上定义一个共享文件夹并通过 \domain.lan\folder 连接到它时,我可以看到内容,但是如果我尝试更改文件夹中的某些内容,则会收到错误“找不到元素”。这种行为总是一样的。我尝试直接从服务器连接还是通过 Windows 7 客户端连接都没有关系。但是:如果我通过服务器的 IP 地址访问文件夹,例如 \192.168.0.22\folder 一切正常。所以我猜 Windows DNS 服务器有一个大问题。ping domain.lan 会得到正确的 IP 地址,因此可以正确解析。我不知道问题可能出在哪里。

顺便说一句:我可以用我的 PC 上的虚拟机和不同的名称和 IP 地址完全重现这个问题......

有人猜吗?

windows-server-2008
  • 1 个回答
  • 1480 Views
Martin Hope
Bene
Asked: 2013-09-12 07:58:41 +0800 CST

Debian 软件突袭未同步

  • 0

我在 Debian 下的 Software-Raid 突然说:

Personalities : [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] 

md2 : active raid1 sda3[0](F) sdb3[1]
2917156159 blocks super 1.2 [2/1] [_U]

md1 : active raid1 sda2[0] sdb2[1]
524276 blocks super 1.2 [2/2] [UU]

md0 : active raid1 sda1[0] sdb1[1]
12581816 blocks super 1.2 [2/2] [UU]

但是完整的 6 小时检查确实导致硬盘驱动器功能齐全。所以硬盘没问题。

所以我做了以下事情:

mdadm /dev/md2 --remove /dev/sda3
mdadm /dev/md2 --add /dev/sda3

我认为这一直有效到 50%,但现在 RAID 说:

Personalities : [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] 
md2 : active raid1 sda3[0](S) sdb3[1]
2917156159 blocks super 1.2 [2/1] [_U]
md1 : active raid1 sda2[0] sdb2[1]
524276 blocks super 1.2 [2/2] [UU]
md0 : active raid1 sda1[0] sdb1[1]
12581816 blocks super 1.2 [2/2] [UU]

到底出了什么问题?

编辑:Okey fdisk -l 显示以下内容(磁盘是两个完全相同的 HDD):

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sdb: 3000.6 GB, 3000592982016 bytes
256 heads, 63 sectors/track, 363376 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1      266306  2147483647+  ee  GPT
Partition 1 does not start on physical sector boundary.

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sda: 3000.6 GB, 3000592982016 bytes
256 heads, 63 sectors/track, 363376 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1      266306  2147483647+  ee  GPT
Partition 1 does not start on physical sector boundary.

Disk /dev/md0: 12.9 GB, 12883779584 bytes
2 heads, 4 sectors/track, 3145454 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Disk /dev/md0 doesn't contain a valid partition table

Disk /dev/md1: 536 MB, 536858624 bytes
2 heads, 4 sectors/track, 131069 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Disk /dev/md1 doesn't contain a valid partition table

Disk /dev/md2: 2987.2 GB, 2987167906816 bytes
2 heads, 4 sectors/track, 729289039 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Disk /dev/md2 doesn't contain a valid partition table

编辑2:

root@ICELAND ~ # gdisk -l /dev/sda
GPT fdisk (gdisk) version 0.8.1

Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 5860533168 sectors, 2.7 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): 602051E0-41A7-4BD3-BEBD-0072BF1940A3
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 5860533134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)

Number  Start (sector)    End (sector)  Size       Code  Name
1            4096        25169919   12.0 GiB    FD00  
2        25169920        26218495   512.0 MiB   FD00  
3        26218496      5860533134   2.7 TiB     FD00  
4            2048            4095   1024.0 KiB  EF02  
root@ICELAND ~ # gdisk -l /dev/sdb
GPT fdisk (gdisk) version 0.8.1

Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/sdb: 5860533168 sectors, 2.7 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): 1845979C-A245-48E6-88F7-163163A39A6B
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 5860533134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)

Number  Start (sector)    End (sector)  Size       Code  Name
1            4096        25169919   12.0 GiB    FD00  
2        25169920        26218495   512.0 MiB   FD00  
3        26218496      5860533134   2.7 TiB     FD00  
4            2048            4095   1024.0 KiB  EF02  
root@ICELAND ~ # mdadm --detail /dev/md2
/dev/md2:
    Version : 1.2
Creation Time : Tue Oct 23 19:11:10 2012
 Raid Level : raid1
 Array Size : 2917156159 (2782.02 GiB 2987.17 GB)
Used Dev Size : 2917156159 (2782.02 GiB 2987.17 GB)
Raid Devices : 2
Total Devices : 2
Persistence : Superblock is persistent

Update Time : Wed Sep 11 19:12:03 2013
State : active, degraded
Active Devices : 1
Working Devices : 2
Failed Devices : 0
Spare Devices : 1

       Name : rescue:2
       UUID : d09a5141:6abfc440:358a06e7:9445fbea
     Events : 2256201

Number   Major   Minor   RaidDevice State
   0       0        0        0      removed
   1       8       19        1      active sync   /dev/sdb3

   0       8        3        -      spare   /dev/sda3
root@ICELAND ~ # 
debian
  • 1 个回答
  • 126 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