PowerMTA 多个虚拟 PMTA config 的配置文件实例

#
# $Id: config 2015-03-24 16:00:00 Jack $
# Sample PowerMTA configuration file
# PowerMTA 多个虚拟 PMTA config 的配置文件实例

#
# E-mail address for mailer's administrator (please specify!)
#
postmaster admin@mydomain.com
domain-key my-domain,*,/etc/dkim.key

#
# Settings per source IP address (for incoming SMTP connections)
#
<source 127.0.0.1>
    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 0          # 0 implies no cap, in bytes
    smtp-service yes            # allow SMTP service
    allow-mailmerge yes
</source>

<source 23.45.67.100>           # phplist or oempro installed
    always-allow-relaying yes   # allow feeding from mailer.mydomain.com
    process-x-virtual-mta yes   # allow selection of a virtual MTA
    max-message-size 0          # 0 implies no cap, in bytes
    smtp-service yes            # allow SMTP service
    hide-message-source true
    remove-header Received
    allow-mailmerge yes
</source>

<source 102.202.33.2>
    always-allow-relaying yes   # allow feeding from 102.202.33.2
    process-x-virtual-mta yes   # allow selection of a virtual MTA
    max-message-size 0          # 0 implies no cap, in bytes
    smtp-service yes            # allow SMTP service
    hide-message-source true
    remove-header Received
</source>

<source 102.202.33.3>
    always-allow-relaying yes   # allow feeding from 102.202.33.3
    process-x-virtual-mta yes   # allow selection of a virtual MTA
    max-message-size 0          # 0 implies no cap, in bytes
    smtp-service yes            # allow SMTP service
    hide-message-source true
    remove-header Received
</source>

<source 102.202.33.4>
    always-allow-relaying yes   # allow feeding from 102.202.33.4
    process-x-virtual-mta yes   # allow selection of a virtual MTA
    max-message-size 0          # 0 implies no cap, in bytes
    smtp-service yes            # allow SMTP service
    hide-message-source true
    remove-header Received
</source>

<source 102.202.33.5>
    always-allow-relaying yes   # allow feeding from 102.202.33.5
    process-x-virtual-mta yes   # allow selection of a virtual MTA
    max-message-size 0          # 0 implies no cap, in bytes
    smtp-service yes            # allow SMTP service
    hide-message-source true
    remove-header Received
</source>

<source 102.202.33.6>
    always-allow-relaying yes   # allow feeding from 102.202.33.6
    process-x-virtual-mta yes   # allow selection of a virtual MTA
    max-message-size 0          # 0 implies no cap, in bytes
    smtp-service yes            # allow SMTP service
    hide-message-source true
    remove-header Received
</source>

<source 0/0>                    # matches all
    log-connections no
    log-commands    no          # WARNING: verbose!
    log-data        no          # WARNING: even more verbose!
    allow-unencrypted-plain-auth no
    default-virtual-mta mta-pool
    process-x-virtual-mta yes
    smtp-service yes
    always-allow-api-submission yes
</source>

<virtual-mta mta1>
    auto-cold-virtual-mta 23.45.68.200 mpta.mydomain.com   # MPTA installed
    <domain *>
        max-cold-virtual-mta-msg 100/day
    </domain>
    smtp-source-host 23.45.68.200 mpta.mydomain.com        # MPTA installed
</virtual-mta>

<virtual-mta mta2>
    auto-cold-virtual-mta 102.202.33.2 name2.newdomain.com # config multiple domains/IPs
    domain-key edm-mail,*,/etc/dkim.key
    <domain *>
        max-cold-virtual-mta-msg 100/day
        dkim-sign yes
        dkim-identity @mydomain.com
    </domain>
    smtp-source-host 102.202.33.2 name2.newdomain.com
</virtual-mta>

<virtual-mta mta3>
    auto-cold-virtual-mta 102.202.33.3 name3.newdomain.com # config multiple domains/IPs
    domain-key edm-mail,*,/etc/dkim.key
    <domain *>
        max-cold-virtual-mta-msg 100/day
        dkim-sign yes
        dkim-identity @mydomain.com
    </domain>
    smtp-source-host 102.202.33.3 name3.newdomain.com
</virtual-mta>

<virtual-mta mta4>
    auto-cold-virtual-mta 102.202.33.4 name4.newdomain.com # config multiple domains/IPs
    domain-key edm-mail,*,/etc/dkim.key
    <domain *>
        max-cold-virtual-mta-msg 100/day
        dkim-sign yes
        dkim-identity @mydomain.com
    </domain>
    smtp-source-host 102.202.33.4 name4.newdomain.com
</virtual-mta>

<virtual-mta mta5>
    auto-cold-virtual-mta 102.202.33.5 name5.newdomain.com # config multiple domains/IPs
    domain-key edm-mail,*,/etc/dkim.key
    <domain *>
        max-cold-virtual-mta-msg 100/day
        dkim-sign yes
        dkim-identity @mydomain.com
    </domain>
    smtp-source-host 102.202.33.5 name5.newdomain.com
</virtual-mta>

<virtual-mta mta6>
    auto-cold-virtual-mta 102.202.33.6 name6.newdomain.com # config multiple domains/IPs
    domain-key edm-mail,*,/etc/dkim.key
    <domain *>
        max-cold-virtual-mta-msg 100/day
        dkim-sign yes
        dkim-identity @mydomain.com
    </domain>
    smtp-source-host 102.202.33.6 name6.newdomain.com
</virtual-mta>


<virtual-mta-pool mta-pool>
    virtual-mta mta2
    virtual-mta mta3
    virtual-mta mta4
    virtual-mta mta5
    virtual-mta mta6
</virtual-mta-pool>

#
# SMTP users (authenticated via SMTP AUTH)
#
#<smtp-user API>
#    password "changeme"
#</smtp-user>

<smtp-user user1>
    password R45eoDwZ
    source {auth}
</smtp-user>
<smtp-user user2>
    password R45eoDwZ
    source {auth}
</smtp-user>

<source {auth}>
    always-allow-relaying yes    # allow feeding for defined users
    process-x-virtual-mta yes    # allow selection of a VirtualMTA
    max-message-size 0           # 0 implies no cap, in bytes
    smtp-service yes             # allow SMTP service
    require-auth true
    default-virtual-mta mta-pool
</source>

#
# Settings per outgoing domain
#
#<domain discard.port25.com>
#    max-smtp-out    800
#    route           [192.168.0.1]:2525  # bypasses DNS resolution
#</domain>
#
#<domain test.port25.com>
#    max-smtp-out    1
#    log-connections yes
#    log-commands    yes     # WARNING: verbose!
#    log-resolution  no      # WARNING: verbose!
#    log-data        no      # WARNING: even more verbose!
#</domain>

#
# "{gmImprinter}" is a special queue used for imprinting Goodmail tokens.
#
<domain {gmImprinter}>
    max-events-recorded 150
    log-messages yes
    log-data no              # extremely verbose, for debugging only
    retry-after 15s
</domain>

<domain *>
    max-smtp-out    2        # max. connections *per domain*
    bounce-after    4d12h       # 4 days, 12 hours
    retry-after     60m      # 10 minutes
    max-msg-rate 100/h
    max-msg-per-connection 20
    max-errors-per-connection 10
    smtp-greeting-timeout 1m                # added in v3.2r17
    bounce-upon-no-mx yes
    mx-connection-attempts 3                # added in v3.2r16
    smtp-pattern-list backoff
    backoff-to-normal-after 2h              # added in v3.5
    backoff-max-msg-rate 50/h              # Use with PowerMTA 3.5
    backoff-retry-after 90m
    dk-sign yes
    dkim-sign yes
</domain>

#
# Goodmail imprinter configuration
#
#<gm-imprinter>
#    account-id ID               # replace with value from mailcenter
#    imprinter-id ID             # replace with value from mailcenter
#    imprinter-password PW       # replace with value from mailcenter
#
#    # If the directives below are not specified, defaults are picked as
#    # described in the Goodmail documentation
#
#    default-token-class 1       # optionally set as appropriate
#    default-content-type 1      # optionally set as appropriate
#    default-payer-id ID         # optionally set as appropriate
#    default-obo-id ID           # optionally set as appropriate
#</gm-imprinter>


#
# Port used for HTTP management interface
#
http-mgmt-port 8080

#
# IP addresses allowed to access the HTTP management interface, one
# per line
#
http-access 127.0.0.1 monitor
#http-access 10.1.0.10 none
#http-access 10.1.0/24 admin
http-access 21.34.56.78 admin


#
# Synchronize I/O to disk after receiving the message.  'false' yields
# higher performance, but the message may be lost if the system crashes
# before it can write the data to disk.
#
sync-msg-create false

#
# Synchronize I/O to disk after updating the message (e.g., to mark recipients
# handled).  'false' yields higher performance, but if the system crashes
# before it can write the data to disk, some recipients may receive multiple
# copies of a message.
#
sync-msg-update false

#
# Whether to run the PowerMTA deamon as root
#
run-as-root no

#
# WARNING -- changing the settings below will probably break
#            RPM installation, logrotate, etc.

#
# Logging file name
#
log-file /var/log/pmta/log          # logrotate is used for rotation

#
# Accounting file(s)
#
<acct-file /var/log/pmta/acct.csv>
#    move-to /opt/myapp/pmta-acct   # configure as fit for your application
    move-interval 5m
    max-size 50M
</acct-file>

#
# Spool directories
#
spool /var/spool/pmta

# EOF

<smtp-pattern-list backoff>
#
# A QUEUE IN BACKOFF MODE WILL SEND MORE SLOWLY
# To place a queue back into normal mode, a command similar
# to one of the following will need to be run:
# pmta set queue mode=normal yahoo.com
# or
# pmta set queue mode=normal yahoo.com/vmta1
#
# To use backoff mode, uncomment individual <domain> directives
#
#Yahoo Errors
reply /421 .* Please try again later/ mode=backoff
reply /421 Message temporarily deferred/ mode=backoff
reply /VS3-IP5 Excessive unknown recipients/ mode=backoff
reply /VSS-IP Excessive unknown recipients/ mode=backoff
#
# The following 4 Yahoo errors may be very common
# Using them may result in high use of backoff mode
#
reply /[GL01] Message from/ mode=backoff
reply /[TS01] Messages from/ mode=backoff
reply /[TS02] Messages from/ mode=backoff
reply /[TS03] All messages from/ mode=backoff
#
#Hotmail Errors
reply /exceeded the rate limit/ mode=backoff
reply /exceeded the connection limit/ mode=backoff
reply /Mail rejected by Windows Live Hotmail for policy reasons/ mode=backoff
#
#Adelphia Errors
reply /421 Message Rejected/ mode=backoff
reply /Client host rejected/ mode=backoff
reply /blocked using UCEProtect/ mode=backoff
#
#Road Runner Errors
reply /Mail Refused/ mode=backoff
reply /421 Exceeded allowable connection time/ mode=backoff
reply /amIBlockedByRR/ mode=backoff
reply /block-lookup/ mode=backoff
reply /Too many concurrent connections from source IP/ mode=backoff
#
#General Errors
reply /too many/ mode=backoff
reply /Exceeded allowable connection time/ mode=backoff
reply /Connection rate limit exceeded/ mode=backoff
reply /refused your connection/ mode=backoff
reply /try again later/ mode=backoff
reply /try later/ mode=backoff
reply /550 RBL/ mode=backoff
reply /TDC internal RBL/ mode=backoff
reply /connection refused/ mode=backoff
reply /please see www.spamhaus.org/ mode=backoff
reply /Message Rejected/ mode=backoff
reply /refused by antispam/ mode=backoff
reply /Service not available/ mode=backoff
reply /currently blocked/ mode=backoff
reply /locally blacklisted/ mode=backoff
reply /not currently accepting mail from your ip/ mode=backoff
reply /421.*closing connection/ mode=backoff
reply /421.*Lost connection/ mode=backoff
reply /421 *connection limit exceeded/ mode=backoff
reply /476 connections from your host are denied/ mode=backoff
reply /421 Connection cannot be established/ mode=backoff
reply /421 temporary envelope failure/ mode=backoff
reply /421 4.4.2 Timeout while waiting for command/ mode=backoff
reply /450 Requested action aborted/ mode=backoff
reply /550 Access denied/ mode=backoff
</smtp-pattern-list>

#
# http://postmaster.info.aol.com/
<domain aol.com>
    max-smtp-out 3
    max-msg-per-connection 20
    smtp-pattern-list backoff
    421-means-mx-unavailable yes
    backoff-to-normal-after 4h              # added in v3.5
    # backoff-notify admin@mydomain.com
    backoff-max-msg-rate 20/h              # Use with PowerMTA 3.5
    backoff-retry-after 120m
    dk-sign yes
    dkim-sign yes
</domain>
#
<domain tom.com>
    max-smtp-out 3
    max-msg-per-connection 20
    smtp-pattern-list backoff
    421-means-mx-unavailable yes
    backoff-to-normal-after 2h              # added in v3.5
    backoff-max-msg-rate 20/h               # Use with PowerMTA 3.5
    backoff-retry-after 120m
    # backoff-notify admin@mydomain.com
    dk-sign yes
    dkim-sign yes
</domain>
#
<domain yahoo.com>
    max-smtp-out 3
    max-msg-per-connection 20
    smtp-greeting-timeout 1m                # added in v3.2r17
    mx-connection-attempts 5                # added in v3.2r16
    smtp-pattern-list backoff
    backoff-to-normal-after 2h              # added in v3.5
    backoff-max-msg-rate 50/h              # Use with PowerMTA 3.5
    backoff-retry-after 90m
    # backoff-notify admin@mydomain.com
    dk-sign yes
    dkim-sign yes
</domain>
#
<domain gmail.com>
    max-smtp-out 3
    max-msg-per-connection 50
    smtp-greeting-timeout 1m                # added in v3.2r17
    mx-connection-attempts 5                # added in v3.2r16
    smtp-pattern-list backoff
    backoff-to-normal-after 2h              # added in v3.5
    backoff-max-msg-rate 50/h              # Use with PowerMTA 3.5
    backoff-retry-after 90m
    # backoff-notify admin@mydomain.com
    dk-sign yes
    dkim-sign yes
</domain>
#
<domain hotmail.com>
    max-smtp-out 3
    max-msg-per-connection 50
    421-means-mx-unavailable yes
    smtp-pattern-list backoff
    backoff-to-normal-after 2h              # added in v3.5
    backoff-max-msg-rate 50/h              # Use with PowerMTA 3.5
    backoff-retry-after 90m
    # backoff-notify admin@mydomain.com
    dk-sign yes
    dkim-sign yes
</domain>
#
<domain msn.com>
    max-smtp-out 3
    max-msg-per-connection 50
    smtp-pattern-list backoff
    backoff-to-normal-after 2h              # added in v3.5
    backoff-max-msg-rate 50/h              # Use with PowerMTA 3.5
    backoff-retry-after 90m
    # backoff-notify admin@mydomain.com
    dk-sign yes
    dkim-sign yes
</domain>
#
<domain att.net>
    max-smtp-out 2
    dk-sign yes
    dkim-sign yes
</domain>
#
# may be outdated ?http://security.comcast.net/get-help/comcast-post-master-page.aspx
# recommended usage ?http://postmaster.comcast.net/avoidblocks.html
# http://feedback.comcast.net/
<domain comcast.net>
    dk-sign yes
    dkim-sign yes
    max-smtp-out 2
    max-msg-per-connection 20
</domain>
#
#
# Excite
#
# We have heard reports that Excite.com limits senders to 1,000 emails in a 10 minute period per IP during the day, but is unlimited between 1:00am to 5:00am MDT. While we cannot confirm these reports, here is what can be done in PowerMTA if you are having trouble sending to excite.com. Use the following settings:
#
#
<domain excite.com>
    dk-sign yes
    dkim-sign yes
    backoff-max-msg-rate 100/h              # Use with PowerMTA 3.5
</domain>

#
#The setting backoff-max-msg-per-hour will cause PowerMTA to take the total amount, divide it by 12, and send no more than that amount in 5 minute intervals over the hour. The number of recent delivery attempts is not kept in persistent storage, so re-starting PowerMTA resets the limit, possibly causing it to actually be exceeded. You may want to set it a little lower than 6000 to give yourself a buffer.
##Now for the tricky part.
#You will need to set the server to run the command pmta set queue mode=normal excite.com/* every night at 1am MDT (cron job in Linux or scheduled task in Windows). This will cause PowerMTA to go into normal mode, and send email in an unrestricted manner. At 5am MDT, schedule the command pmta set queue mode=backoff excite.com/* to run. This will put all excite.com email in backoff mode, and the above settings will go back into place.
#
# Comcast
#
#From the following page:
#http://customer.comcast.com/Pages/FAQViewer.aspx?seoid=RL000001
#It seems that Comcast has added some rate limiting based on your SenderScore (https://www.senderscore.org/).
#As such, The following configuration can be used (in conjunction with max-msg-per-connection and max-smtp-out from above), changing the rate based on your score and the data from Comcast抯 site:
#
<domain comcast.net>
    dk-sign yes
    dkim-sign yes
    max-msg-rate 100/h
</domain>
<domain dkimvalidator.com>
    dk-sign yes
    dkim-sign yes
    max-msg-rate 50/h
</domain>

62 thoughts on “PowerMTA 多个虚拟 PMTA config 的配置文件实例

  • Pingback: Install and Config Bulk/Mass Emailing System » Jack Huang – Blog

  • 星期二 五月 5th, 2015 at 08:32
    Permalink

    这个是最佳实战 还是范例啊

    Reply
    • 星期一 五月 25th, 2015 at 17:14
      Permalink

      这是范例,可以工作,但是通常你要根据自己的情况调整下速度限制,开始少发点,以后慢慢增加数量。

      Reply
  • 星期日 五月 10th, 2015 at 05:02
    Permalink

    要是能有国内的qq 163配置就好了

    只能看懂大概 具体还是有点不明白
    max-smtp-out 3
    max-msg-per-connection 20
    smtp-greeting-timeout 1m # added in v3.2r17
    mx-connection-attempts 5 # added in v3.2r16
    smtp-pattern-list backoff
    backoff-to-normal-after 2h # added in v3.5
    backoff-max-msg-rate 50/h # Use with PowerMTA 3.5
    backoff-retry-after 90m
    # backoff-notify admin@mydomain.com
    dk-sign yes
    dkim-sign yes

    这些具体参数 有中文翻译吗

    Reply
    • 星期一 五月 11th, 2015 at 21:22
      Permalink

      我是看 PowerMTA 用户指南英文版的,最近有空会把重要的参数翻译出来

      Reply
  • 星期二 五月 12th, 2015 at 23:37
    Permalink

    谢谢 有些还是不太明白 这个大哥能不能帮忙解释想一下呢
    1.这些每个域的发信数量 并发连接 设置的都是控制一个IP的吗?还是控制所有ip加在一起的最大的并发连接 发送量
    这个关系有点搞不懂啊
    2.建立这些虚拟的mta组 就自动循环使用各自的ip发送了吗

    Reply
    • 星期四 五月 14th, 2015 at 22:12
      Permalink

      1. 每个域的发信数量并发连接 max-smtp-out 是针对所有IP到这个域的总并发连接数。如果想控制每个IP的并发连接,用参数 max-smtp-out-per-source-ip
      2. 是的,pmta会自动循环使用可用的IP发送

      Reply
  • 星期三 五月 13th, 2015 at 04:50
    Permalink

    是不是还缺少反弹规则啊 能不能贴一个出来 让我们学习一下呢

    Reply
    • 星期四 五月 14th, 2015 at 22:35
      Permalink

      smtp-pattern-list 参数后跟的就是反弹规则吧,根据不同的返回信息来判断是否延迟处理发信队列。

      Reply
  • 星期五 五月 22nd, 2015 at 08:12
    Permalink

    Hello,

    I have a PMTA4 and Server with /27, (192.168.10.1, 192.168.10.2, 192.168.10.3…..30) so this all ip in my server as a Additional Ip and main IP of the server is

    192.168.10.0,
    So i want to send a first 5000 email only with ip 192.168.10.9 (bind with domain is ; abcd.com) after completing that email,
    I want to send a Second email with another Ip is 192.168.10.16 (bind with domain is ; Pqrs.com) after completing that email…
    doing So on with all individual IP’s ……

    so i need a 30 smtp with 30ip and 30 domain in PMTA.

    How can i do that with my Powermta4.

    Thank’s

    Reply
    • 星期一 五月 25th, 2015 at 17:02
      Permalink

      I don’t think PMTA has a directive/option for this. You might have to customize the frondend app(Interspire or Oempro) to accomplish this.

      Reply
    • 星期六 九月 5th, 2015 at 10:15
      Permalink

      you can see the user’s guide : 8.4 Selecting a VirtualMTA or VirtualMTA Pool
      there are have 5 methods to select a VirtualMTA

      Reply
  • 星期一 五月 25th, 2015 at 03:11
    Permalink

    max-smtp-out 3
    。。。。。
    。。。。。
    这个是指向hotmail邮箱发送的规则吗?

    Reply
    • 星期一 五月 25th, 2015 at 12:40
      Permalink
      <domain hotmail.com>
      ......
      </domain>

      用于指定针对某个域的发信规则。 Hotmail的限制比较多,我也还未找到比较稳定的参数。

      Reply
  • 星期三 五月 27th, 2015 at 03:36
    Permalink

    您好,老师
    1、开头中postmaster admin@mydomain.com 这个不需要设置吗
    2、这么多IP是同一个服务器拥有的IP吗
    3、Settings per outgoing domain 这个设置是什么?

    Reply
    • 星期五 五月 29th, 2015 at 22:15
      Permalink

      1. postmaster 后面的邮箱当然要换成你自己的
      2. IP都是同一台服务器上的,有些VPS可以买256个IP地址
      3. Settings per outgoing domain 前面有个#号,表示那些代码都注释掉了。这是基于邮箱域名的设置。比如你想对发往 hotmail 的邮件做哪些限制。

      Reply
  • 星期三 五月 27th, 2015 at 03:39
    Permalink

    您好

    max-smtp-out 3
    max-msg-per-connection 50
    smtp-pattern-list backoff
    backoff-to-normal-after 2h # added in v3.5
    backoff-max-msg-rate 50/h # Use with
    backoff-retry-after 90m
    # backoff-notify admin@mydomain.com
    dk-sign yes
    dkim-sign yes

    这个设置中,smtp-pattern-list backoff ,下面几个backoff开头的指令前没有#。我看有些人的配置有#号。有区别吗?新手正在学习中,麻烦您啦

    Reply
    • 星期五 五月 29th, 2015 at 22:18
      Permalink

      # 表示注释,那么相关代码就无效。

      例如,如果你需要设置在 backoff 休息模式下,等待90分钟后重新尝试发送邮件,
      那么 backoff-retry-after 90m 前面就不要加 # 号

      Reply
  • 星期三 六月 3rd, 2015 at 01:55
    Permalink

    您好,还想请教一下
    1.backoff 是延迟发送的意思吗
    2.是整个队列都延迟发送 还是单独的这一个邮箱地址 延迟
    3.为什么我看我的队列 模式都变成backoff了

    Reply
    • 星期日 六月 7th, 2015 at 12:31
      Permalink

      Backoff 通常指相应的MTA进入缓慢发送模式。具体发送速率在 backoff-max-msg-rate 中设置。

      上面示例中设置了 max-msg-rate 100/h ,如果某个MTA发送速度超过这个值,就进入 backoff 模式了。

      Reply
  • 星期一 六月 8th, 2015 at 21:36
    Permalink

    您好,请问下,如果我想设置每小时发送200封邮件,max-smtp-out 200/h,这样设置参数是正确的吗?

    Reply
  • 星期五 六月 12th, 2015 at 16:14
    Permalink

    hello Jack,

    Thank you for wirting such a good article.

    But still i am confused.

    I want to setup powerMTA in load balancing mode which distribute email to relay power MTA server.

    And load balancer server will receive mail from php app.

    Kindly suggest me how can i do this.

    Reply
    • 星期一 六月 22nd, 2015 at 17:29
      Permalink

      Sorry, I don’t have a config for load balancing mode.

      Reply
  • 星期二 六月 16th, 2015 at 03:36
    Permalink

    Hi Jack,
    Can you pls check our categorization patterns for hard bounce, soft bounce and block and suggest any improvements.

    Thx and rgds
    priti

    Reply
  • 星期三 九月 9th, 2015 at 11:25
    Permalink

    多IP mta 再配置virtual-mta-pool,

    在oempro中如何配置,才能轮询调用不同IP发信;或pmta+oempro如何配置才能达到,轮询IP发信;你的中文版翻译好了吗?

    Reply
    • 星期三 九月 9th, 2015 at 22:36
      Permalink

      轮询IP发信是通过pmta的设置来实现的,上面实例中的参数 default-virtual-mta mta-pool 就是让邮件通过 mta-pool 这个池里配置的 mta 来轮询发信。不用在 Oempro 里设置了。
      PMTA 说明书的中文翻译还没去做。

      Reply
  • 星期五 九月 18th, 2015 at 10:11
    Permalink

    Hey guys! Great post.
    you can find a lot of useful information at https://contacthd.com its a community forum about email marketing.
    you can find expert to do the PMAT config and set up

    Reply
  • 星期二 十月 20th, 2015 at 02:03
    Permalink

    Hi,

    Is it possible for you to tell, where to place this configuration file?

    Reply
  • 星期三 十月 28th, 2015 at 15:51
    Permalink

    Hello Jack,
    Thank you for wirting such a good article
    I have a litte problem : i created 2 VMTA (2IP/2domains) but when i send an email , there is always the same IP : event when i send from a diffrent domain.

    Do you have an idea ?

    Reply
    • 星期四 十月 29th, 2015 at 09:39
      Permalink

      The outgoing IP is not based on the sender’s email address/domain. It’s configured using “default-virtual-mta mta-pool”. The VirtualMTAs in the mta-pool are used in round-robin fashion(take turns). Check your default-virtual-mta settings.

      You can also use “default-virtual-mta by-smtp-source-ip”. The VirtualMTA is selected based on which PMTA IP is
      used for the connection. The corresponding VirtualMTA is configured with that outgoing IP.

      Reply
  • 星期二 十一月 10th, 2015 at 14:44
    Permalink

    Hi, is it possible with PMTA to route emails to hotmail.com using external smart server? it’s coz server has good IPs but block banned in Microsoft.

    Reply
  • 星期六 一月 30th, 2016 at 23:43
    Permalink

    virtual-mta mta2
    virtual-mta mta3
    virtual-mta mta4
    virtual-mta mta5
    virtual-mta mta6

    这里不需要mta1么?

    Reply
    • 星期日 一月 31st, 2016 at 11:40
      Permalink

      可以加上。我一般留个主IP不用于发邮件,所以这里没填mta1

      Reply
  • 星期一 二月 8th, 2016 at 03:12
    Permalink

    thank you Jack Huang

    Reply
  • 星期三 三月 23rd, 2016 at 06:10
    Permalink

    你好Jack,这个有些不懂。 通过mail-tester.com发现我配置的pmta+oempro DKIM总是通不过。我的是一个3个二级域名对应3个IP,
    smtp-source-host 142.2.134.444 mail1.domain.com
    domain-key mail1,domain.com,/etc/pmta/dkim/mail1.moledonline.com.pem
    请问这个改怎么改呢? 谢谢

    Reply
    • 星期三 三月 23rd, 2016 at 12:20
      Permalink

      1. 检查主机上是否已经安装了 dkim-milter? 是否已经配置好了?
      2. 检查 /etc/pmta/dkim/mail1.moledonline.com.pem 这个文件是否存在,其中是否包含 PRIVATE KEY 的内容?

      Reply
  • 星期四 四月 7th, 2016 at 17:07
    Permalink

    Jack,

    I’m having an issue with processes on a VPS server, the processes exceed the limit and PMTA is killed. It was suggested to me to change the backoff configuration

    mode=backoff
    change it to mode=normal

    or simply comment the pattern-list backoff, and this way powermta will not report back the connections and will use less processes.

    What is your opinion?

    Reply
  • 星期三 五月 11th, 2016 at 05:24
    Permalink

    Hello Jack, thanks for your informative post.

    I would like to ask if there is a way i could load some Virtual MTA Tags into my “config” file from another file ! I shall explain:

    1. let’s say my file ends with:

    <virtual-mta mta5>

    </virtual-mta>

    2. And i have a file (“includedVMTAs.txt”) that contains the following syntaxe:

    <virtual-mta mta6>

    </virtual-mta>

    3. Is there a way i can make the pmta “config” file load VMTAs from “includedVMTAs.txt” so the final outcome in “config” file looks like this?

    <virtual-mta mta5>

    </virtual-mta>

    <virtual-mta mta6>

    </virtual-mta>

    Thanks in advance .. (y) (y)

    Reply
    • 星期三 五月 11th, 2016 at 09:16
      Permalink

      The “include” directive specifies an additional configuration file to process. This can be used, for example, to facilitate maintenance of the configuration files across multiple hosts, by storing those settings which differ from host to host in a separate file and including it from the main (common) file. Wildcards may be used. An include may be used anywhere including in a SOURCE, DOMAIN, or VIRTAL-MTA tag.

      include /etc/pmta/includedVMTAs.txt
      include /etc/pmta/includes/*

      Reply
      • 星期二 五月 17th, 2016 at 06:36
        Permalink

        Thank you Jack that was very informative.. (y)

        Reply
  • 星期四 七月 21st, 2016 at 07:34
    Permalink

    Hi Jack,

    Thank you! for such a nice explanation. I have configured pmta with interspire. In interspire I have set the bounce email address as bounce@mydmain.com but the bounces are going to the above email address from pmta. Do I have do add any parameter in config file for the bounce to be forwarded to bounce@mydomain.com?

    Reply
    • 星期二 八月 2nd, 2016 at 22:03
      Permalink

      Use MX records to specify the *@mydomain.com email destination.

      Reply
  • 星期六 十月 15th, 2016 at 21:20
    Permalink

    how i can make alogin to my pmta like i want befor you start you will add password and usernam

    Reply
  • 星期日 一月 15th, 2017 at 19:19
    Permalink

    Thanks for the post
    i just want to ask one thing
    I have pmta installed on a server , and when i send, i want pmta to handle the MESSAGE(header and body) and RECIPIENTS(RCPT TO) and RETURN PATH(MAIL FROM) trough variables and pass it to a php file , before deliver it to the final recipient.
    Thank you

    Reply
  • 星期五 二月 17th, 2017 at 09:48
    Permalink

    Hello jack Huang I am trying to get an application to send bulk emails that is copateble with powerMTA algen my can help please ??

    Reply
  • 星期日 二月 26th, 2017 at 07:50
    Permalink

    Hello,

    First, thanks for your help to the world 🙂
      I’m sorry also for the derangement,

    Then my question:
      I want to configure a powerMTA server to send mails en masse but I do not have that to start, I do not have the config, …

    Is what you can help me plz?

    Thank you and sorry

    Reply
  • 星期三 三月 15th, 2017 at 20:54
    Permalink

    Hello
    i have a problem in PMTA, and it’s when it bounce an email, it send it to the returnpath email address
    I want to do : when it bounce the email, delete it from the queue
    Thank you

    Reply
  • 星期三 三月 15th, 2017 at 21:07
    Permalink

    Hello, dear friend
    I have a problem. When connect to smtp to different server Ips i have the same SMTP banner. How to change it to different domains
    Help me, pls

    Reply
  • 星期日 五月 21st, 2017 at 17:13
    Permalink

    Hai Sir,

    I am newbie to pmta.Can we configure pmta with cwp panel or cpanel

    Reply
      • 星期一 六月 26th, 2017 at 12:33
        Permalink

        Sir,Can you help me how to send bulk mails using postfix mail server

        Reply
  • 星期六 六月 10th, 2017 at 01:56
    Permalink

    good evening, excellent information! we are having an issue on sending that the PMTA will slow to a crawl after sending 50% of the queue. no matter what the send amount is. we have noticed that it mainly happens with yahoo and gmail.

    Example if the cnfig file:

    dkim-sign yes
    second-dkim-sign yes
    second-dkim-identity @[website].com
    max-msg-rate 15/m

    We added the following for Yahoo:

    max-msg-per-connection 20
    mx-connection-attempts 10

    Reply
  • 星期三 八月 2nd, 2017 at 16:48
    Permalink

    Excellent post.

    Reply
  • 星期一 八月 21st, 2017 at 09:10
    Permalink

    Hello
    everytime i have to change my ip address thats how i can connect to pmta ?
    there is any solution

    Reply
    • 星期五 九月 1st, 2017 at 11:47
      Permalink

      I’m not sure if I understand correctly but you don’t need to change the IP address to connect to PMTA.

      Reply
    • 星期五 九月 8th, 2017 at 21:20
      Permalink

      Hi Ayoub,

      if you face any problem about powermta. You can contact with me.

      Reply
  • 星期三 九月 20th, 2017 at 19:23
    Permalink

    Hello Jack
    i would like to ask you if there is any PMTA config for collecting bounced email
    i do not ask about regular send where bounced emails are collected in a file
    i’m asking about a sent especially for collecting bounce where you send a false email that interrupted just after we know if the email record exist or not so customer does not get any email and bounced emails stored in a file
    thank you

    Reply
    • 星期五 九月 22nd, 2017 at 17:35
      Permalink

      I don’t think PMTA has a config for this.

      Reply

发表评论

电子邮件地址不会被公开。 必填项已用*标注