我一直在试图设置一个运行postfix的debian邮件服务器,但是当我尝试通过mail [email protected]发送邮件时,收件人将发件人视为hostname.domain.com。 它发送的主机名没有设置A或MXlogging,它只是/ etc / hostname。 如果我通过telnet localhost 25login发送,我可以手动设置发件人为[email protected]。 我的main.cf myorigin = mydomian.com myhostname = mail.mydomain.com mydestination = mail.mydomain.com, mydomain.com, localhost, localhost.localdomain relayhost = mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases smtpd_tls_cert_file=/etc/ssl/certs/mailcert.pem smtpd_tls_key_file=/etc/ssl/private/mail.key smtpd_use_tls=yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtpd_tls_security_level=may smtpd_tls_protocols […]
我已经更新了我的PHP从5.3.3到5.4.31。 我有一个Debian 6 Squeeze。 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/apc.so' – /usr/lib/php5/20100525/apc.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/suhosin.so' – /usr/lib/php5/20100525/suhosin.so: cannot open shared object file: No such file or directory in Unknown […]
我的Debian服务器(3.2.60-1 + deb7u3 x86_64)无法从security.debian.org获取更新。 我认为这是由版本库引起的,因为版本库中只有压缩文件。 我该如何解决? 获取错误 W: Failed to fetch http://security.debian.org/dists/wheezy/updates/main/binary-amd64/Packages 404 Not Found [IP: 212.211.132.32 80] W: Failed to fetch http://security.debian.org/dists/wheezy/updates/main/binary-i386/Packages 404 Not Found [IP: 212.211.132.32 80] 源设置 deb http://ftp.cz.debian.org/debian/ wheezy main deb-src http://ftp.cz.debian.org/debian/ wheezy main deb http://security.debian.org/ wheezy/updates main contrib non-free deb-src http://security.debian.org/ wheezy/updates main contrib non-free deb http://ftp.cz.debian.org/debian/ wheezy-updates main deb-src […]
我想为我的所有域创build一个全局别名来捕获所有的邮件地址,如postmaster@ 我已经将这些行添加到aliases.pcre : /(MAILER-DAEMON|postmaster|abuse|webmaster)@(.*)$/ me@mydomain 和main.cf virtual_alias_maps = pcre:/etc/postfix/aliases.pcre 但它也捕获到外部邮件的邮件,即redirect到我邮件发送到[email protected] 我可以redirect发送到这些地址的所有邮件,但只有当域名在virtual_mailbox_domains ? (没有在aliases.pcre写域名 *更新* 用户,域名,别名..存储在数据库中,使用postfixadmin来pipe理它。 别名表如下所示: mysql> describe alias; +———-+————–+——+—–+———————+——-+ | Field | Type | Null | Key | Default | Extra | +———-+————–+——+—–+———————+——-+ | address | varchar(255) | NO | PRI | NULL | | | goto | text | NO | | NULL […]
是否有可能使grep命令输出文件path与文件修改date如下所示: 12-02-2015 /file/path/to/the/file 16-02-2015 /file/path/to/the/file 25-02-2015 /file/path/to/the/file 03-04-2015 /file/path/to/the/file 要么: /file/path/to/the/file 12-02-2015 /file/path/to/the/file 12-02-2015 /file/path/to/the/file 12-02-2015 /file/path/to/the/file 12-02-2015
最近我用Debian 8 Jessie安装了一个新的盒子(我在其他盒子上使用了Debian 6和7)。 我很失望地看到只有2或3条文本行的启动消息。 没有更多的启动服务列表“确定”或“失败”,或与fsck等文件系统的详细信息。 search了网页,发现从/ etc / default / grub文件中删除了“quiet”选项。 我这样做,恢复了以前版本看到的消息,但也有很多垃圾,使文本滚动如此之快,我什么都看不懂。 我喜欢在重新启动之前查看“光照”消息,以了解箱体的健康状况。 我怎么能把这个重新回到杰西? (检查在较旧的盒子,“安静”的选项是存在的,所以它似乎是不存在的差异)。 我不在乎有一个“美丽”的启animation面,这些只是服务器… 谢谢你的帮助
我一直在尝试在debian服务器中configurationsftp。 sshd_config: Subsystem sftp internal-sftp UsePAM no Match User sftpUser ChrootDirectory /users/sftp/sftpUser ForceCommand internal-sftp AllowTcpForwarding no X11Forwarding no 目录: drwxr-xr-x 3 root root 4096 Oct 20 10:59 users drwxr-xr-x 3 root root 4096 Oct 20 11:00 sftp drwxr-xr-x 2 root root 4096 Oct 20 11:00 sftpUser cat /var/log/auth.log Oct 20 10:58:22 w1 sshd[24634]: Accepted password […]
我在Debian 8上使用networkingpipe理器。我的configuration包含一些自定义的DNS服务器,所以我的/etc/resolv.conf文件由networkingpipe理器生成如下所示: # Generated by NetworkManager search rudloff.pro nameserver 89.234.141.66 nameserver 8.8.8.8 nameserver 2a00:5881:8100:1000::3 这非常好,但几分钟后,resolv.conf文件被replace为: nameserver 2a01:e00::1 nameserver 2a01:e00::2 (这些是我的ISP DNS服务器,由DHCP服务器发送。) 我不知道什么是replace这个文件。 你有什么想法可以做到这一点? 有没有办法看到哪个进程编辑文件?
我们有一个Debian X64服务器,当前有一个tomcat实例,我们在WAR文件中有3个webapps 。 另外,我们有一个Apache web服务器,它有一个CMS系统运行。 最后一个项目是Maintenance Web应用程序,当我们在服务器上工作并且服务不可用时显示。 我们面临的问题是: Tomcat或Apache Web服务器中只有一个始终在Port-80上运行。 对于Tomcat应用程序,应用程序必须通过不同的上下文path进行访问。 我们无法在多个域名下运行所有内容,但在单个服务器下运行。 我想长期做的事情是: 使用Tomcat(首选)或Apache Web服务器作为负载平衡器,它将根据域名来中继请求。 所以,如果有人打电话给url www.xyz.com ,那么它应该调用我们拥有的XYZ webapp。 相同的webapp名称和域名是纯粹的偶然事件。 将Maintenance Web应用程序绑定到整个网格,当任何域不活动或没有响应或忙碌时将会调用该网格。 我创造了一个图片(一个可怕的.. :-(),这更多地说明了这个任务。 正如你现在看到的架构,这里是我的问题。 这是一个好方法吗? 如果没有,请告诉我在哪里,我可以做得更好。 我正在做的任务是什么? 网格configuration,负载平衡? 如何将所有的webapps,网站绑定在一起,可以通过不同的URL来引用,但会指向正确的webapp或网站。 我对Apache Tomcat和Linuxpipe理有很好的理解,而不是那么多的Apache Web服务器。 任何人都可以帮助我解决这个问题,一些规划和我所需要的,所以我可以执行它。 请注意,我们在DNS中注册了所有基于Web的应用程序和基于Web服务器的网站的域名。 我希望我已经添加了足够的信息,如果有任何要求,请让我知道。 你能帮忙的话,我会很高兴。 非常感谢。 🙂
我的操作系统是Debian 7.9。 我的专用服务器只承载PHP(5.4显然)和一些数据库(MySQL)的网站。 还有像iptables , fail2ban等设置的程序。 我最近做了一个更新,看到PHP 5.4被弃用的警告(是的,我迟到了),我需要更新到5.6,最终从Debian 7.x升级到8.x. 我的问题: 我没有让PHP代码在我的网站上运行,所以我想知道如果我应该遵循一个简单的教程如何更新PHP 5.4到5.6,如果明智(解决安全问题),或者如果它会打破我的网站。 他们甚至build议升级到Debian 8,但是我觉得这会比任何事情带来更多麻烦,而且我没有太多的时间来解决所有会出现的新问题(我需要在线上我的网站)。 我该怎么办? 你有什么build议吗?