Hello,
I've gone through the documentation, but somehow I'm not getting it right.
May be I'm missing something.
#########################################################################################
smtp-listener 0/0:25 # listens on all local IPs
<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 unlimited
    smtp-service yes # allow SMTP service
</source>
<source x.x.x.x>
    always-allow-relaying yes
    process-x-virtual-mta yes
    max-message-size unlimited
    smtp-service yes
</source>
<source x.x.x.x>
    always-allow-relaying yes
    process-x-virtual-mta yes
    max-message-size unlimited
    smtp-service yes
</source>
<source x.x.x.x>
    always-allow-relaying yes
    process-x-virtual-mta yes
    max-message-size unlimited
    smtp-service yes
</source>
<source x.x.x.x>
    always-allow-relaying yes
    process-x-virtual-mta yes
    max-message-size unlimited
    smtp-service yes
</source>
<source x.x.x.x>
    always-allow-relaying yes
    process-x-virtual-mta yes
    max-message-size unlimited
    smtp-service yes
</source>
<source x.x.x.x>
    always-allow-relaying yes
    process-x-virtual-mta yes
    max-message-size unlimited
    smtp-service yes
</source>
<source x.x.x.x>
    always-allow-relaying yes
    process-x-virtual-mta yes
    max-message-size unlimited
    smtp-service yes
</source>
<source x.x.x.x>
    always-allow-relaying yes
    process-x-virtual-mta yes
    max-message-size unlimited
    smtp-service yes
    log-connections yes
    log-commands yes
    log-data yes
</source>
<source x.x.x.x>
    always-allow-relaying yes
    process-x-virtual-mta yes
    max-message-size unlimited
    smtp-service yes
</source>
<source x.x.x.x>
    always-allow-relaying yes
    process-x-virtual-mta yes
    max-message-size unlimited
    smtp-service yes
</source>
<source x.x.x.x>
    always-allow-relaying yes
    process-x-virtual-mta yes
    max-message-size unlimited
    smtp-service yes
</source>
<source 0/0> # matches all
    always-allow-relaying no
    log-connections no
    log-commands no # WARNING: verbose!
    log-data no # WARNING: even more verbose!
</source>
<domain aol.com>
    max-msg-per-connection 450
    max-rcpt-per-message 100
</domain>
<domain yahoo.com>
    max-msg-per-connection 20
    mx-connection-attempts 10
</domain>
<domain hotmail.com>
    max-msg-per-connection 100
    smtp-421-means-mx-unavailable yes
</domain>
<domain msn.com>
    max-msg-per-connection 100
</domain>
<domain cox.net>
    max-smtp-out 5
</domain>
<domain att.net>
    max-smtp-out 2
</domain>
<domain comcast.net>
    max-smtp-out 2
    max-msg-per-connection 100
</domain>
<domain adelphia.net>
    max-smtp-out 4
</domain>
<domain bellsouth.net>
    max-smtp-out 10
    max-msg-per-connection 1
    retry-after 5m
</domain>
<domain mac.com>
    ignore-chunking yes
</domain>
<domain orange.fr>
    max-smtp-out 1
    max-msg-rate 1000/m
    max-connect-rate 10/m
    max-msg-per-connection 100
</domain>
<domain wanadoo.fr>
    max-smtp-out 1
    max-msg-rate 1000/m
    max-connect-rate 10/m
    max-msg-per-connection 100
</domain>
<domain *>
    max-smtp-out 20 # max. connections *per domain*
    bounce-after    4d12h    # 4 days, 12 hours
    bounce-after 1d12h # 4 days, 12 hours
    retry-after 10m # 10 minutes
</domain>
<virtual-mta mtaabc2>
    smtp-source-host 10.90.2.128 abc2.asdf.qwerty.com
    <domain *>
    </domain>
</virtual-mta>
<virtual-mta mtaabc3>
    smtp-source-host 10.90.2.129 abc3.asdf.qwerty.com
    <domain *>
    </domain>
</virtual-mta>
<virtual-mta mtaabc4>
    smtp-source-host 10.90.2.130 abc4.asdf.qwerty.com
    <domain *>
        #dk-sign yes
    </domain>
</virtual-mta>
<source mtaabc4>
default-virtual-mta by-smtp-source-ip
</source>
http-mgmt-port 8080
http-access 127.0.0.1 monitor
http-access ::1 monitor
run-as-root no
log-file /var/log/pmta/pmta.log # logrotate is used for rotation
<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 /var/spool/pmta>
    deliver-only no
</spool>
http-log-requests yes
log-auto-rotation yes
#########################################################################################
# where:
# x.x.x.x are the source application server IP's
# 10.90.2.x VMTA IP's [private/internal IP's natted perfectly with public/external IP's]
Questions:
Q1) Can the above config be more optimised.
Q2) Whenever connecting this Pmta server using any VMTA IP, the mail is actually getting delivered using the main/parent IP of the server instead of using the VMTA IP as it's outbound IP. Please suggest solution.
Thanks.