Posts Tagged ‘ Server ’
各 ISP 的寄件服务器(SMTP)
各 ISP 的寄件服务器(SMTP)
将邮件服务器换成 Postfix + pop-before-smtp *
故名思意,pop-before-smtp 就是在 smtp 前,先用 pop3 的帐号登入,以确保服务器上有你的帐号。以下的步骤,先将 Sendmail 换成 Postfix,再将 smtp 的认証则改用 pop-before-smtp 的方式。
安装 Postfix
apt-get remove sendmail
apt-get install postfix
myhostname -> host.example.com mydomain -> example.com myorigin -> $myhostname inet_interfaces -> all mydestination -> /etc/postfix/local-host-names mynetworks -> 127.0.0.0/8, hash:/etc/postfix/access relay_domains -> $mydestination alias_maps -> hash:/etc/postfix/aliases
example.com mail.example.com host.example.com
postmap hash:/etc/postfix/access postalias hash:/etc/postfix/aliases
service postfix start
安装 pop-before-smtp
顾名思义,pop-before-smtp 就是在寄信前,必须先用 pop3 检查邮件,只要 pop3 登入正确,你就可以用同一台服务器寄信 (30分钟内)。安装步骤如下:
perl -MCPAN -e 'install File::Tail' perl -MCPAN -e 'install Time::HiRes' perl -MCPAN -e 'install Net::Netmask' perl -MCPAN -e 'install Date::Parse'
cd /tmp wget http://www.vixual.net/download/source/postfix/pop-before-smtp-1.33-1.noarch.rpm rpm -ivh pop-before-smtp-1.33-1.noarch.rpm
#$file_tail{'name'} = '/var/log/maillog'; #$grace = 30*60; #$dbfile = '/etc/postfix/pop-before-smtp';
smtpd_recipient_restrictions = permit_mynetworks,reject_non_fqdn_recipient,check_client_access hash:/etc/postfix/pop-before-smtp,check_relay_domains
service pop-before-smtp start service postfix reload
INFORMATION
我们解决了什么问题?我们创造了什么价值?
近期回响