Skip to content

pmta部署

lupeng0512 edited this page Aug 15, 2017 · 2 revisions

安装

cd /root/source

unzip PMTA.zip

cd /root/source/pmta

rpm -ivh PowerMTA-3.5r16-201012281926.x86_64.rpm

cp /root/source/pmta/pmtad /usr/sbin/pmtad

cp /root/source/pmta/license.linux64 /etc/pmta/license

更改配置文件

host-name mail.eeboard.com

password source {auth-vmta} always-allow-relaying yes process-x-virtual-mta yes #max-message-size 0k smtp-service yes require-auth true remove-received-headers true add-received-header false hide-message-source true pattern-list pmta-pattern mail-from /mail.eeboard.com/ virtual-mta=pmta-vmta host-name mail.eeboard.com smtp-source-host 182.92.237.186 mail.eeboard.com

<domain *>
max-smtp-out 10 # default be nice on concurrent connections
max-msg-per-connection 50 # max 500 mails in one session
max-errors-per-connection 10 # avoid 'too long without data command' error
max-smtp-out 10
max-msg-rate 2000/h
bounce-after 40d12h # default 4d12h
bounce-upon-no-mx yes # proper mail domains should have mx
retry-after 10d # typical greylisting period
#smtp-pattern-list blocking-errors
assume-delivery-upon-data-termination-timeout yes # avoid duplicate deliveries
backoff-max-msg-rate 10/h # send only regular tries during backoff (default unlimited)
backoff-retry-after 999d # retry at least every 20m (default 1h)
backoff-notify "" # disable backoff notifications
backoff-to-normal-after-delivery yes # revert to normal asap (default no)
backoff-to-normal-after 1h # always revert to normal after 1h (default never)
dkim-sign yes
dk-sign yes

always-allow-relaying yes # allow feeding from 127.0.0.1 process-x-virtual-mta yes # allow selection of a virtual MTA #max-message-size 0k # 0 implies no cap, in bytes smtp-service yes # allow SMTP service # matches all allow-unencrypted-plain-auth yes add-received-header false remove-header X-mailer log-connections yes log-commands no # WARNING: verbose! log-data no # WARNING: even more verbose!

http-mgmt-port 8080
http-access 218.4.165.170 monitor
sync-msg-create false
sync-msg-update false
run-as-root no

log-file /var/log/pmta/log

<acct-file /var/log/pmta/acct.csv>
move-interval 1d
max-size 50M

spool /var/spool/pmta

启动

/etc/init.d/pmta start

卸载

rpm -e PowerMTA-3.5r16-201012281926.x86_64

Clone this wiki locally